We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0c4374 commit f0d8c82Copy full SHA for f0d8c82
src/streaming/SSEDecoder.ts
@@ -85,10 +85,12 @@ export class NodeSSEDecoder extends BaseSSEDecoder {
85
if (!response.body) {
86
throw new Error('Response body is null');
87
}
88
+
89
+ console.log('Starting stream', response.body);
90
for await (const chunk of response.body as NodeJS.ReadableStream) {
91
const text = typeof chunk === 'string' ? chunk : chunk.toString('utf-8');
92
buffer += text;
-
93
94
const lines = buffer.split('\n');
95
buffer = lines.pop() || '';
96
0 commit comments