From be1e275cab731baf7c63cd7356e3563fde2aaaf8 Mon Sep 17 00:00:00 2001 From: David Schnurr Date: Sun, 9 Jul 2023 10:56:22 -0700 Subject: [PATCH] v4.0.0-beta.4 --- package.json | 2 +- src/streaming.ts | 2 +- src/version.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 43e32027b..aaae304ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openai", - "version": "4.0.0-beta.3", + "version": "4.0.0-beta.4", "description": "Client library for the OpenAI API", "author": "OpenAI ", "types": "dist/index.d.ts", diff --git a/src/streaming.ts b/src/streaming.ts index 46e93bc3c..38a09a0aa 100644 --- a/src/streaming.ts +++ b/src/streaming.ts @@ -251,7 +251,7 @@ function partition(str: string, delimiter: string): [string, string, string] { * This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1624185965 */ function readableStreamAsyncIterable(stream: any): AsyncIterableIterator { - if (stream[Symbol.asyncIterator]) return stream[Symbol.asyncIterator]; + if (stream[Symbol.asyncIterator]) return stream; const reader = stream.getReader(); return { diff --git a/src/version.ts b/src/version.ts index 6c18f5dc0..f1398ce3c 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.0.0-beta.3'; +export const VERSION = '4.0.0-beta.4';