From aa3a1782914a4a285263e4d070bca73e72ed47ec Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Sun, 5 Nov 2023 14:15:04 +0000 Subject: [PATCH 1/2] docs(readme): remove redundant whitespace (#427) --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 8f9808973..9de4dccb7 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,6 @@ async function main() { messages: [{ role: 'user', content: 'Say this is a test' }], model: 'gpt-3.5-turbo', }); - - console.log(chatCompletion.choices); } main(); @@ -261,7 +259,6 @@ async function main() { if (err instanceof OpenAI.APIError) { console.log(err.status); // 400 console.log(err.name); // BadRequestError - console.log(err.headers); // {server: 'nginx', ...} } else { throw err; @@ -388,7 +385,7 @@ const { data: chatCompletion, response: raw } = await openai.chat.completions .create({ messages: [{ role: 'user', content: 'Say this is a test' }], model: 'gpt-3.5-turbo' }) .withResponse(); console.log(raw.headers.get('X-My-Header')); -console.log(chatCompletion.choices); +console.log(chatCompletion); ``` ## Customizing the fetch client From c02633c5373b49b04014978b4f18297e6b99d5fc Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Sun, 5 Nov 2023 14:15:23 +0000 Subject: [PATCH 2/2] release: 4.15.4 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 0edf1b38d..64b951803 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.15.3" + ".": "4.15.4" } diff --git a/CHANGELOG.md b/CHANGELOG.md index d3d2743e7..9819c04b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 4.15.4 (2023-11-05) + +Full Changelog: [v4.15.3...v4.15.4](https://github.com/openai/openai-node/compare/v4.15.3...v4.15.4) + +### Documentation + +* **readme:** remove redundant whitespace ([#427](https://github.com/openai/openai-node/issues/427)) ([aa3a178](https://github.com/openai/openai-node/commit/aa3a1782914a4a285263e4d070bca73e72ed47ec)) + ## 4.15.3 (2023-11-04) Full Changelog: [v4.15.2...v4.15.3](https://github.com/openai/openai-node/compare/v4.15.2...v4.15.3) diff --git a/package.json b/package.json index 56e05885c..2b4f9c0a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openai", - "version": "4.15.3", + "version": "4.15.4", "description": "Client library for the OpenAI API", "author": "OpenAI ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index c6d048236..1f90232ea 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.15.3'; // x-release-please-version +export const VERSION = '4.15.4'; // x-release-please-version