Skip to content

Commit 0f8f893

Browse files
authored
Merge pull request #122 from togethercomputer/fix-typescript-type
fix AudioTranscriptionRequest file param type
2 parents 0070d80 + 8705f63 commit 0f8f893

1 file changed

Lines changed: 28 additions & 6 deletions

File tree

openapi.yaml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4525,12 +4525,10 @@ components:
45254525
properties:
45264526
file:
45274527
oneOf:
4528-
- type: string
4529-
format: binary
4530-
description: Audio file to transcribe
4531-
- type: string
4532-
format: uri
4533-
description: Public HTTP/HTTPS URL to audio file
4528+
- $ref: '#/components/schemas/AudioFileBinary'
4529+
- $ref: '#/components/schemas/AudioFileUrl'
4530+
discriminator:
4531+
propertyName: type
45344532
description: Audio file upload or public HTTP/HTTPS URL. Supported formats .wav, .mp3, .m4a, .webm, .flac.
45354533
model:
45364534
type: string
@@ -6918,3 +6916,27 @@ components:
69186916
result_file_id:
69196917
type: string
69206918
description: Data File ID
6919+
6920+
AudioFileBinary:
6921+
type: object
6922+
required: [type, data]
6923+
properties:
6924+
type:
6925+
type: string
6926+
enum: [binary]
6927+
data:
6928+
type: string
6929+
format: binary
6930+
description: Audio file to transcribe
6931+
6932+
AudioFileUrl:
6933+
type: object
6934+
required: [type, url]
6935+
properties:
6936+
type:
6937+
type: string
6938+
enum: [url]
6939+
url:
6940+
type: string
6941+
format: uri
6942+
description: Public HTTPS URL to audio file

0 commit comments

Comments
 (0)