Skip to content

Commit e47c25d

Browse files
committed
fix: 修复r1模型接受数据时输出错乱的bug
1 parent 143b504 commit e47c25d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/deepseekApi.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,12 @@ export async function processDeepSeekResponse(
114114

115115
// 同时输出内容和思考内容
116116
if (options.outputChannel) {
117-
options.outputChannel.append(content + thinkContent);
117+
if (content) {
118+
options.outputChannel.append(content);
119+
}
120+
if (thinkContent) {
121+
options.outputChannel.append(thinkContent);
122+
}
118123
}
119124

120125
// Think 标签结束逻辑

0 commit comments

Comments
 (0)