From 86d9301e78dbe80e56f8e9a4ac3d87f895a81eaa Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Mon, 13 Jan 2025 16:19:45 +0000 Subject: [PATCH] chore(internal): streaming refactors --- src/streaming.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/streaming.ts b/src/streaming.ts index da96a6b7f..3dde542c6 100644 --- a/src/streaming.ts +++ b/src/streaming.ts @@ -38,9 +38,7 @@ export class Stream implements AsyncIterable { if (sse.data.startsWith('[DONE]')) { done = true; continue; - } - - if (sse.event === null) { + } else { let data; try {