Skip to content

Commit e2797c3

Browse files
committed
fix: add type=text
1 parent 747614c commit e2797c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/src/modules/puterai/lib/Streaming.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class AIChatConstructStream {
3131
class AIChatTextStream extends AIChatConstructStream {
3232
addText (text) {
3333
const json = JSON.stringify({
34-
text,
34+
type: 'text', text,
3535
});
3636
this.chatStream.stream.write(json + '\n');
3737
}

0 commit comments

Comments
 (0)