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] 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,