We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d25f071 commit 82af2d3Copy full SHA for 82af2d3
src/deepseekApi.ts
@@ -110,6 +110,12 @@ export async function processDeepSeekResponse(
110
thinking = true;
111
}
112
113
+ // Think 标签结束逻辑
114
+ if (thinking && content) {
115
+ options.outputChannel?.append("</think>");
116
+ thinking = false;
117
+ }
118
+
119
chunkResponse += content;
120
121
// 同时输出内容和思考内容
@@ -122,12 +128,6 @@ export async function processDeepSeekResponse(
122
128
123
129
124
130
125
- // Think 标签结束逻辑
126
- if (thinking && content) {
127
- options.outputChannel?.append("</think>");
- thinking = false;
- }
-
131
// 执行自定义 chunk 处理
132
if (options.onChunk) {
133
options.onChunk(chunk);
0 commit comments