mirror of
https://github.com/OpenBankProject/API-Explorer-II.git
synced 2026-02-06 10:47:04 +00:00
merge chat.ts
This commit is contained in:
commit
6549c3b3d6
@ -337,7 +337,8 @@ export const useChat = defineStore('chat', {
|
||||
|
||||
}
|
||||
|
||||
if (data.type === 'assistant_complete' && data.content) {
|
||||
// Assistant token streaming (legacy and new)
|
||||
if ((data.type === 'token' || data.type === 'assistant_token') && data.content) {
|
||||
this.currentAssistantMessage.loading = false;
|
||||
// Append content to the current assistant message
|
||||
this.currentAssistantMessage.content += data.content;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user