From 5ef8aa8d308f7374dd01d8079cd76e0d96999ec2 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Tue, 8 Oct 2024 13:42:35 +0000 Subject: [PATCH 1/2] chore(internal): pass props through internal parser (#1125) --- src/core.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.ts b/src/core.ts index c104b61d1..d78e9e926 100644 --- a/src/core.ts +++ b/src/core.ts @@ -116,9 +116,9 @@ export class APIPromise extends Promise> { }); } - _thenUnwrap(transform: (data: T) => U): APIPromise { + _thenUnwrap(transform: (data: T, props: APIResponseProps) => U): APIPromise { return new APIPromise(this.responsePromise, async (props) => - _addRequestID(transform(await this.parseResponse(props)), props.response), + _addRequestID(transform(await this.parseResponse(props), props), props.response), ); } From 3efff551b9f18da087c1d41bb72803300695e43c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:42:59 +0000 Subject: [PATCH 2/2] release: 4.67.3 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 2 +- package.json | 2 +- scripts/build-deno | 2 +- src/version.ts | 2 +- 6 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f45113292..e8c54ecee 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.67.2" + ".": "4.67.3" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 72e61a413..710d09ca9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 4.67.3 (2024-10-08) + +Full Changelog: [v4.67.2...v4.67.3](https://github.com/openai/openai-node/compare/v4.67.2...v4.67.3) + +### Chores + +* **internal:** pass props through internal parser ([#1125](https://github.com/openai/openai-node/issues/1125)) ([5ef8aa8](https://github.com/openai/openai-node/commit/5ef8aa8d308f7374dd01d8079cd76e0d96999ec2)) + ## 4.67.2 (2024-10-07) Full Changelog: [v4.67.1...v4.67.2](https://github.com/openai/openai-node/compare/v4.67.1...v4.67.2) diff --git a/README.md b/README.md index 11e1455e2..407933634 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ You can import in Deno via: ```ts -import OpenAI from 'https://deno.land/x/openai@v4.67.2/mod.ts'; +import OpenAI from 'https://deno.land/x/openai@v4.67.3/mod.ts'; ``` diff --git a/package.json b/package.json index 79b73d5cb..e20c1b9c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openai", - "version": "4.67.2", + "version": "4.67.3", "description": "The official TypeScript library for the OpenAI API", "author": "OpenAI ", "types": "dist/index.d.ts", diff --git a/scripts/build-deno b/scripts/build-deno index 46c3f3db3..f59404dbc 100755 --- a/scripts/build-deno +++ b/scripts/build-deno @@ -16,7 +16,7 @@ This is a build produced from https://github.com/openai/openai-node – please g Usage: \`\`\`ts -import OpenAI from "https://deno.land/x/openai@v4.67.2/mod.ts"; +import OpenAI from "https://deno.land/x/openai@v4.67.3/mod.ts"; const client = new OpenAI(); \`\`\` diff --git a/src/version.ts b/src/version.ts index fb7e251f7..174c31111 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.67.2'; // x-release-please-version +export const VERSION = '4.67.3'; // x-release-please-version