From e1900f97ee3f4758d47a7eb4659e30abe3750c99 Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Mon, 12 Feb 2024 09:01:28 -0500 Subject: [PATCH 1/2] feat(api): updates (#669) --- src/resources/chat/completions.ts | 6 ++++++ tests/api-resources/chat/completions.test.ts | 1 + 2 files changed, 7 insertions(+) diff --git a/src/resources/chat/completions.ts b/src/resources/chat/completions.ts index 2a5216745..17c279940 100644 --- a/src/resources/chat/completions.ts +++ b/src/resources/chat/completions.ts @@ -708,6 +708,12 @@ export interface ChatCompletionCreateParamsBase { */ functions?: Array; + /** + * An unique identifier to a custom instance to execute the request. The requesting + * organization is required to have access to the instance. + */ + instance_id?: string | null; + /** * Modify the likelihood of specified tokens appearing in the completion. * diff --git a/tests/api-resources/chat/completions.test.ts b/tests/api-resources/chat/completions.test.ts index 49f3562b0..f097f3249 100644 --- a/tests/api-resources/chat/completions.test.ts +++ b/tests/api-resources/chat/completions.test.ts @@ -30,6 +30,7 @@ describe('resource completions', () => { frequency_penalty: -2, function_call: 'none', functions: [{ description: 'string', name: 'string', parameters: { foo: 'bar' } }], + instance_id: 'string', logit_bias: { foo: 0 }, logprobs: true, max_tokens: 0, From c5de8c00236e7d1dd0690946e394246df9cedc0f Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Tue, 13 Feb 2024 00:06:00 -0500 Subject: [PATCH 2/2] release: 4.28.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 2 +- build-deno | 2 +- package.json | 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 6a1f05fcc..2cb1bcea1 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.27.1" + ".": "4.28.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index f0e2d8696..cc193b5a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 4.28.0 (2024-02-13) + +Full Changelog: [v4.27.1...v4.28.0](https://github.com/openai/openai-node/compare/v4.27.1...v4.28.0) + +### Features + +* **api:** updates ([#669](https://github.com/openai/openai-node/issues/669)) ([e1900f9](https://github.com/openai/openai-node/commit/e1900f97ee3f4758d47a7eb4659e30abe3750c99)) + ## 4.27.1 (2024-02-12) Full Changelog: [v4.27.0...v4.27.1](https://github.com/openai/openai-node/compare/v4.27.0...v4.27.1) diff --git a/README.md b/README.md index 91077f209..51c08079a 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ You can import in Deno via: ```ts -import OpenAI from 'https://deno.land/x/openai@v4.27.1/mod.ts'; +import OpenAI from 'https://deno.land/x/openai@v4.28.0/mod.ts'; ``` diff --git a/build-deno b/build-deno index 261bcad07..4e6734b72 100755 --- a/build-deno +++ b/build-deno @@ -14,7 +14,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.27.1/mod.ts"; +import OpenAI from "https://deno.land/x/openai@v4.28.0/mod.ts"; const client = new OpenAI(); \`\`\` diff --git a/package.json b/package.json index cb3323a85..17645e824 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openai", - "version": "4.27.1", + "version": "4.28.0", "description": "The official TypeScript library for the OpenAI API", "author": "OpenAI ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 4474994e5..690b47c3c 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.27.1'; // x-release-please-version +export const VERSION = '4.28.0'; // x-release-please-version