mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
Update src/vs/workbench/contrib/chat/common/chatModel.ts
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
parent
7849b0a107
commit
a26816d597
1 changed files with 1 additions and 1 deletions
|
|
@ -371,7 +371,7 @@ export function stripThinkTags(text: string): string {
|
|||
depth++;
|
||||
i += 7; // length of '<think>'
|
||||
} else if (text.startsWith('</think>', i)) {
|
||||
depth--;
|
||||
if (depth > 0) depth--;
|
||||
i += 8; // length of '</think>'
|
||||
} else if (depth === 0) {
|
||||
result += text[i];
|
||||
|
|
|
|||
Loading…
Reference in a new issue