Skip to content

Commit 77f363c

Browse files
webui: fix Seed-OSS thinking block
1 parent fb15d64 commit 77f363c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tools/server/public/index.html.gz

17 Bytes
Binary file not shown.

tools/server/webui/src/components/ChatMessage.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ export default function ChatMessage({
6161
if (msg.content === null || msg.role !== 'assistant') {
6262
return { content: msg.content };
6363
}
64-
const REGEX_THINK_OPEN = /<think>|<\|channel\|>analysis<\|message\|>/;
65-
const REGEX_THINK_CLOSE = /<\/think>|<\|end\|>/;
64+
const REGEX_THINK_OPEN =
65+
/<think>|<seed:think>|<\|channel\|>analysis<\|message\|>/;
66+
const REGEX_THINK_CLOSE = /<\/think>|<\/seed:think>|<\|end\|>/;
6667
let actualContent = '';
6768
let thought = '';
6869
let isThinking = false;

0 commit comments

Comments
 (0)