bugfix/MAke Opey widget recevite responses at GUI

This commit is contained in:
Marko Milić 2025-08-11 15:36:23 +02:00 committed by Nemo Godebski-Pedersen
parent e9c6de1105
commit cd1d5c8ec3

View File

@ -337,8 +337,7 @@ export const useChat = defineStore('chat', {
}
// Assistant token streaming (legacy and new)
if ((data.type === 'token' || data.type === 'assistant_token') && data.content) {
if (data.type === 'assistant_complete' && data.content) {
this.currentAssistantMessage.loading = false;
// Append content to the current assistant message
this.currentAssistantMessage.content += data.content;