Skip to content

Commit bf9d03a

Browse files
feat(api): api update
1 parent 41fd7ce commit bf9d03a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 19
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-8ad13551aeb58d8152b652747e2b6eef38d165242e986458144638aa0b636072.yml
3-
openapi_spec_hash: fa2c4ce28a23071970e3de459223617d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-b9e4efad8d2e79b10988a07cce6fe91d350b41814be51b707b9ffcf0e7fa0981.yml
3+
openapi_spec_hash: a77f390d65c2d25fb1a24e07a9bf8695
44
config_hash: d88b00c7e02331e3e34014631ef36666

src/resources/chat/completions.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,8 @@ export namespace CompletionCreateParams {
428428
>;
429429

430430
/**
431-
* The role of the messages author. Choice between: system, user, or assistant.
431+
* The role of the messages author. Choice between: system, user, assistant, or
432+
* tool.
432433
*/
433434
role: 'system' | 'user' | 'assistant' | 'tool';
434435
}
@@ -461,7 +462,7 @@ export namespace CompletionCreateParams {
461462
/**
462463
* The schema of the response format.
463464
*/
464-
schema?: Record<string, string>;
465+
schema?: Record<string, unknown>;
465466

466467
/**
467468
* The type of the response format.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('resource completions', () => {
3838
n: 1,
3939
presence_penalty: 0,
4040
repetition_penalty: 0,
41-
response_format: { schema: { foo: 'string' }, type: 'json' },
41+
response_format: { schema: { foo: 'bar' }, type: 'json' },
4242
safety_model: 'safety_model_name',
4343
seed: 42,
4444
stop: ['string'],

0 commit comments

Comments
 (0)