Skip to content

Commit 6549c3b

Browse files
committed
merge chat.ts
2 parents 611bee3 + 810510d commit 6549c3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/stores/chat.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ export const useChat = defineStore('chat', {
337337

338338
}
339339

340-
if (data.type === 'assistant_complete' && data.content) {
340+
// Assistant token streaming (legacy and new)
341+
if ((data.type === 'token' || data.type === 'assistant_token') && data.content) {
341342
this.currentAssistantMessage.loading = false;
342343
// Append content to the current assistant message
343344
this.currentAssistantMessage.content += data.content;

0 commit comments

Comments
 (0)