From ee14e6ee70d017186e83d87fcf90f9b4dfe5a412 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Mon, 20 May 2024 18:13:17 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API --- .stats.yml | 2 +- src/resources/chat/completions.ts | 4 ++-- src/resources/completions.ts | 2 +- tests/api-resources/chat/completions.test.ts | 4 ++-- tests/api-resources/completions.test.ts | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.stats.yml b/.stats.yml index 42af47a..5776d9a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 15 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2FTogetherAI-906b6142cf0b0ba3ee24f9003624f2526d4636eaddbf86206b39ba23317d33cb.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2FTogetherAI-628b11c5046d63f1f609888e5c537b2891f39ba27c74b267736fb6694713dfe4.yml diff --git a/src/resources/chat/completions.ts b/src/resources/chat/completions.ts index 98d0d9f..edf33d8 100644 --- a/src/resources/chat/completions.ts +++ b/src/resources/chat/completions.ts @@ -140,7 +140,7 @@ export interface CompletionCreateParamsBase { * The `logit_bias` parameter allows us to adjust the likelihood of specific tokens * appearing in the generated output. */ - logit_bias?: unknown; + logit_bias?: Record; /** * Determines the number of most likely tokens to return at each token position log @@ -245,7 +245,7 @@ export namespace CompletionCreateParams { /** * The schema of the response format. */ - schema?: unknown; + schema?: Record; /** * The type of the response format. diff --git a/src/resources/completions.ts b/src/resources/completions.ts index cc5ba38..8cea567 100644 --- a/src/resources/completions.ts +++ b/src/resources/completions.ts @@ -135,7 +135,7 @@ export interface CompletionCreateParamsBase { * The `logit_bias` parameter allows us to adjust the likelihood of specific tokens * appearing in the generated output. */ - logit_bias?: unknown; + logit_bias?: Record; /** * Determines the number of most likely tokens to return at each token position log diff --git a/tests/api-resources/chat/completions.test.ts b/tests/api-resources/chat/completions.test.ts index 16f95a4..223834e 100644 --- a/tests/api-resources/chat/completions.test.ts +++ b/tests/api-resources/chat/completions.test.ts @@ -37,14 +37,14 @@ describe('resource completions', () => { model: 'mistralai/Mixtral-8x7B-Instruct-v0.1', echo: true, frequency_penalty: 0, - logit_bias: { '105': 21.4, '1024': -10.5 }, + logit_bias: { '105': 'string', '1024': 'string' }, logprobs: 0, max_tokens: 0, min_p: 0, n: 1, presence_penalty: 0, repetition_penalty: 0, - response_format: { type: 'json', schema: {} }, + response_format: { type: 'json', schema: { foo: 'string' } }, safety_model: 'safety_model_name', stop: ['string', 'string', 'string'], stream: false, diff --git a/tests/api-resources/completions.test.ts b/tests/api-resources/completions.test.ts index c3ebb37..b81d60b 100644 --- a/tests/api-resources/completions.test.ts +++ b/tests/api-resources/completions.test.ts @@ -29,7 +29,7 @@ describe('resource completions', () => { prompt: '[INST] What is the capital of France? [/INST]', echo: true, frequency_penalty: 0, - logit_bias: { '105': 21.4, '1024': -10.5 }, + logit_bias: { '105': 'string', '1024': 'string' }, logprobs: 0, max_tokens: 0, min_p: 0,