Fix streaming start appending undefined to reasoning block

This commit is contained in:
Cohee
2025-01-31 13:30:10 +00:00
parent 67a4d10b75
commit f7eab66026

View File

@@ -3171,7 +3171,7 @@ class StreamingProcessor {
this.sendTextarea.dispatchEvent(new Event('input', { bubbles: true })); this.sendTextarea.dispatchEvent(new Event('input', { bubbles: true }));
} }
else { else {
await saveReply(this.type, text, true); await saveReply(this.type, text, true, '', [], '');
messageId = chat.length - 1; messageId = chat.length - 1;
this.#checkDomElements(messageId); this.#checkDomElements(messageId);
this.showMessageButtons(messageId); this.showMessageButtons(messageId);