diff --git a/.stats.yml b/.stats.yml index 4afc77d..d6835ad 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 7 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-f9e32d675c53d0c72f862e43ce3f7d1be32348120d4ae83abf87affe3f9730f6.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-97f285924b8a293952e67185d5d8a0cef2b7ad6080b34c4c4b233f335d6fb4d2.yml diff --git a/src/resources/audio/transcriptions.ts b/src/resources/audio/transcriptions.ts index 24426e7..1672954 100644 --- a/src/resources/audio/transcriptions.ts +++ b/src/resources/audio/transcriptions.ts @@ -173,10 +173,10 @@ export interface TranscriptionCreateParams { prompt?: string; /** - * The format of the transcript output, in one of these options: `json`, `text`, - * `srt`, `verbose_json`, or `vtt`. + * The format of the transcript output, in one of these options: `json`, `text`, or + * `verbose_json`. */ - response_format?: 'json' | 'text' | 'srt' | 'verbose_json' | 'vtt'; + response_format?: 'json' | 'text' | 'verbose_json'; /** * The sampling temperature, between 0 and 1. Higher values like 0.8 will make the diff --git a/src/resources/audio/translations.ts b/src/resources/audio/translations.ts index 243c2bd..592f4c1 100644 --- a/src/resources/audio/translations.ts +++ b/src/resources/audio/translations.ts @@ -130,9 +130,9 @@ export interface TranslationCreateParams { /** * The format of the transcript output, in one of these options: `json`, `text`, - * `srt`, `verbose_json`, or `vtt`. + * `verbose_json`, or `vtt`. */ - response_format?: string; + response_format?: 'json' | 'text' | 'verbose_json'; /** * The sampling temperature, between 0 and 1. Higher values like 0.8 will make the diff --git a/src/resources/chat/completions.ts b/src/resources/chat/completions.ts index 521c74e..c5557c9 100644 --- a/src/resources/chat/completions.ts +++ b/src/resources/chat/completions.ts @@ -543,9 +543,9 @@ export namespace CompletionCreateParams { } export interface ChatToolChoice { - function?: ChatToolChoice.Function; + function: ChatToolChoice.Function; - type?: string; + type: 'function'; } export namespace ChatToolChoice { @@ -553,21 +553,21 @@ export namespace CompletionCreateParams { /** * The name of the function to call. */ - name?: string; + name: string; } } export interface Tool { - function?: Tool.Function; + function: Tool.Function; - type?: string; + type: 'function'; } export namespace Tool { export interface Function { - description?: string; + name: string; - name?: string; + description?: string; parameters?: Record; } diff --git a/tests/api-resources/audio/translations.test.ts b/tests/api-resources/audio/translations.test.ts index 1ee59cc..12e391e 100644 --- a/tests/api-resources/audio/translations.test.ts +++ b/tests/api-resources/audio/translations.test.ts @@ -28,7 +28,7 @@ describe('resource translations', () => { file: await toFile(Buffer.from('# my file contents'), 'README.md'), model: 'whisper-1', prompt: 'string', - response_format: 'string', + response_format: 'json', temperature: 0, }); }); diff --git a/tests/api-resources/chat/completions.test.ts b/tests/api-resources/chat/completions.test.ts index bc71fa1..f4e5c72 100644 --- a/tests/api-resources/chat/completions.test.ts +++ b/tests/api-resources/chat/completions.test.ts @@ -54,9 +54,9 @@ describe('resource completions', () => { temperature: 0, tool_choice: 'none', tools: [ - { function: { description: 'string', name: 'string', parameters: { foo: 'bar' } }, type: 'string' }, - { function: { description: 'string', name: 'string', parameters: { foo: 'bar' } }, type: 'string' }, - { function: { description: 'string', name: 'string', parameters: { foo: 'bar' } }, type: 'string' }, + { function: { description: 'string', name: 'string', parameters: { foo: 'bar' } }, type: 'function' }, + { function: { description: 'string', name: 'string', parameters: { foo: 'bar' } }, type: 'function' }, + { function: { description: 'string', name: 'string', parameters: { foo: 'bar' } }, type: 'function' }, ], top_logprobs: 0, top_p: 0,