Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored May 20, 2024
1 parent 003ee02 commit 8cc7d02
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions src/resources/chat/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string>;

/**
* Determines the number of most likely tokens to return at each token position log
Expand Down Expand Up @@ -245,7 +245,7 @@ export namespace CompletionCreateParams {
/**
* The schema of the response format.
*/
schema?: unknown;
schema?: Record<string, string>;

/**
* The type of the response format.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string>;

/**
* Determines the number of most likely tokens to return at each token position log
Expand Down
4 changes: 2 additions & 2 deletions tests/api-resources/chat/completions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/api-resources/completions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('resource completions', () => {
prompt: '<s>[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,
Expand Down

0 comments on commit 8cc7d02

Please sign in to comment.