Skip to content

Commit 11770a0

Browse files
feat(api): api update
1 parent 037bc6e commit 11770a0

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 44
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-335f1c5cd2d7e7bea03eb55e784ec08401ca370c1f45be0fa107cebe4ee70421.yml
3-
openapi_spec_hash: bc9e61f5573e30f26d8df776210173a4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-1c6ce663fedf553574b97bea0a29eead80b3c8e508f5a8ef2a3e7694ad59c23c.yml
3+
openapi_spec_hash: 02565e3bb15204f0b97e7d1a47557353
44
config_hash: 87a5832ab2ecefe567d22108531232f5

src/resources/audio/transcriptions.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,18 @@ export interface TranscriptionCreateParams {
204204
*/
205205
language?: string;
206206

207+
/**
208+
* Maximum number of speakers expected in the audio. Used to improve diarization
209+
* accuracy when the approximate number of speakers is known.
210+
*/
211+
max_speakers?: number;
212+
213+
/**
214+
* Minimum number of speakers expected in the audio. Used to improve diarization
215+
* accuracy when the approximate number of speakers is known.
216+
*/
217+
min_speakers?: number;
218+
207219
/**
208220
* Model to use for transcription
209221
*/

tests/api-resources/audio/transcriptions.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ describe('resource transcriptions', () => {
2626
file: await toFile(Buffer.from('# my file contents'), 'README.md'),
2727
diarize: true,
2828
language: 'en',
29+
max_speakers: 0,
30+
min_speakers: 0,
2931
model: 'openai/whisper-large-v3',
3032
prompt: 'prompt',
3133
response_format: 'json',

0 commit comments

Comments
 (0)