Skip to content

Commit 369445b

Browse files
feat(api): OpenAPI spec update via Stainless API (#5)
1 parent ea99911 commit 369445b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 15
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2FTogetherAI-628b11c5046d63f1f609888e5c537b2891f39ba27c74b267736fb6694713dfe4.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2FTogetherAI-ab60dcafb04015e34b38c2991f76f78f35eeb0860fe02ee4033c4161c297b3bc.yml

src/resources/chat/completions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export interface CompletionCreateParamsBase {
140140
* The `logit_bias` parameter allows us to adjust the likelihood of specific tokens
141141
* appearing in the generated output.
142142
*/
143-
logit_bias?: Record<string, string>;
143+
logit_bias?: Record<string, unknown>;
144144

145145
/**
146146
* Determines the number of most likely tokens to return at each token position log

src/resources/completions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export interface CompletionCreateParamsBase {
135135
* The `logit_bias` parameter allows us to adjust the likelihood of specific tokens
136136
* appearing in the generated output.
137137
*/
138-
logit_bias?: Record<string, string>;
138+
logit_bias?: Record<string, unknown>;
139139

140140
/**
141141
* Determines the number of most likely tokens to return at each token position log

tests/api-resources/chat/completions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('resource completions', () => {
3737
model: 'mistralai/Mixtral-8x7B-Instruct-v0.1',
3838
echo: true,
3939
frequency_penalty: 0,
40-
logit_bias: { '105': 'string', '1024': 'string' },
40+
logit_bias: { '105': 21.4, '1024': -10.5 },
4141
logprobs: 0,
4242
max_tokens: 0,
4343
min_p: 0,

tests/api-resources/completions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('resource completions', () => {
2929
prompt: '<s>[INST] What is the capital of France? [/INST]',
3030
echo: true,
3131
frequency_penalty: 0,
32-
logit_bias: { '105': 'string', '1024': 'string' },
32+
logit_bias: { '105': 21.4, '1024': -10.5 },
3333
logprobs: 0,
3434
max_tokens: 0,
3535
min_p: 0,

0 commit comments

Comments
 (0)