Skip to content

Commit be1e275

Browse files
committedJul 9, 2023
v4.0.0-beta.4
1 parent f35bbc5 commit be1e275

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openai",
3-
"version": "4.0.0-beta.3",
3+
"version": "4.0.0-beta.4",
44
"description": "Client library for the OpenAI API",
55
"author": "OpenAI <support@openai.com>",
66
"types": "dist/index.d.ts",

‎src/streaming.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ function partition(str: string, delimiter: string): [string, string, string] {
251251
* This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1624185965
252252
*/
253253
function readableStreamAsyncIterable<T>(stream: any): AsyncIterableIterator<T> {
254-
if (stream[Symbol.asyncIterator]) return stream[Symbol.asyncIterator];
254+
if (stream[Symbol.asyncIterator]) return stream;
255255

256256
const reader = stream.getReader();
257257
return {

‎src/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '4.0.0-beta.3';
1+
export const VERSION = '4.0.0-beta.4';

0 commit comments

Comments
 (0)
Please sign in to comment.