diff --git a/src/streaming.ts b/src/streaming.ts index 6ce851282..7f9ebe0a0 100644 --- a/src/streaming.ts +++ b/src/streaming.ts @@ -26,6 +26,7 @@ export class Stream implements AsyncIterable { this.controller.abort(); throw new OpenAIError(`Attempted to iterate over a response with no body`); } + const lineDecoder = new LineDecoder(); const iter = readableStreamAsyncIterable(this.response.body);