fix: add type=text

This commit is contained in:
KernelDeimos committed 2025-02-04 14:02:01 -05:00
1 parent 747614c28b
commit e2797c38d0
1 file changed
+1 -1
@@ -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');
}