Skip to content

Commit 851b022

Browse files
Simplified hasThinkingStart to rely solely on known thinking tag formats, dropping the redundant <|channel|>analysis check now handled upstream
1 parent 64156f5 commit 851b022

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tools/server/webui/src/lib/utils/thinking.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,7 @@ export function parseThinkingContent(content: string): {
8282
* @returns True if the content contains an opening thinking tag
8383
*/
8484
export function hasThinkingStart(content: string): boolean {
85-
return (
86-
THINKING_FORMATS.some((format) => content.includes(format.startTag)) ||
87-
content.includes('<|channel|>analysis')
88-
);
85+
return THINKING_FORMATS.some((format) => content.includes(format.startTag));
8986
}
9087

9188
/**

0 commit comments

Comments
 (0)