We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 611bee3 + 810510d commit 6549c3bCopy full SHA for 6549c3b
src/stores/chat.ts
@@ -337,7 +337,8 @@ export const useChat = defineStore('chat', {
337
338
}
339
340
- if (data.type === 'assistant_complete' && data.content) {
+ // Assistant token streaming (legacy and new)
341
+ if ((data.type === 'token' || data.type === 'assistant_token') && data.content) {
342
this.currentAssistantMessage.loading = false;
343
// Append content to the current assistant message
344
this.currentAssistantMessage.content += data.content;
0 commit comments