Skip to content

Commit

Permalink
v4.0.0-beta.4
Browse files Browse the repository at this point in the history
  • Loading branch information
schnerd committed Jul 9, 2023
1 parent f35bbc5 commit be1e275
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <support@openai.com>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(stream: any): AsyncIterableIterator<T> {
if (stream[Symbol.asyncIterator]) return stream[Symbol.asyncIterator];
if (stream[Symbol.asyncIterator]) return stream;

const reader = stream.getReader();
return {
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '4.0.0-beta.3';
export const VERSION = '4.0.0-beta.4';

0 comments on commit be1e275

Please sign in to comment.