fix: add type=text

This commit is contained in:
KernelDeimos
2025-02-04 14:02:01 -05:00
parent 747614c28b
commit e2797c38d0

View File

@@ -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');
}