From e2797c38d0754930033780d5270cc64cbba2c94e Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Tue, 4 Feb 2025 14:02:01 -0500 Subject: [PATCH] fix: add type=text --- src/backend/src/modules/puterai/lib/Streaming.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/src/modules/puterai/lib/Streaming.js b/src/backend/src/modules/puterai/lib/Streaming.js index cb594ed1..e1e27fcb 100644 --- a/src/backend/src/modules/puterai/lib/Streaming.js +++ b/src/backend/src/modules/puterai/lib/Streaming.js @@ -31,7 +31,7 @@ class AIChatConstructStream { class AIChatTextStream extends AIChatConstructStream { addText (text) { const json = JSON.stringify({ - text, + type: 'text', text, }); this.chatStream.stream.write(json + '\n'); }