We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 747614c commit e2797c3Copy full SHA for e2797c3
src/backend/src/modules/puterai/lib/Streaming.js
@@ -31,7 +31,7 @@ class AIChatConstructStream {
31
class AIChatTextStream extends AIChatConstructStream {
32
addText (text) {
33
const json = JSON.stringify({
34
- text,
+ type: 'text', text,
35
});
36
this.chatStream.stream.write(json + '\n');
37
}
0 commit comments