Skip to content

Commit da23e9b

Browse files
committed
server : filter out harmony thought messages
1 parent dc64c10 commit da23e9b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tools/server/public/index.html.gz

-26 Bytes
Binary file not shown.

tools/server/webui/src/utils/misc.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ export function filterThoughtFromMsgs(messages: APIMessage[]) {
131131
content:
132132
msg.role === 'assistant'
133133
? contentStr
134-
.split(
135-
/<\/think>|<\|start\|>assistant<\|channel\|>final<\|message\|>/
136-
)
134+
.split(/<\/think>|<\|end\|>/)
137135
.at(-1)!
138136
.trim()
139137
: contentStr,

0 commit comments

Comments
 (0)