Skip to content

Commit 907d686

Browse files
authored
Merge pull request #123 from togethercomputer/fix-typescript-type-2
fix AudioTranscriptionRequest file param
2 parents 05d6b73 + 2f13e66 commit 907d686

1 file changed

Lines changed: 6 additions & 22 deletions

File tree

openapi.yaml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4533,8 +4533,6 @@ components:
45334533
oneOf:
45344534
- $ref: '#/components/schemas/AudioFileBinary'
45354535
- $ref: '#/components/schemas/AudioFileUrl'
4536-
discriminator:
4537-
propertyName: type
45384536
description: Audio file upload or public HTTP/HTTPS URL. Supported formats .wav, .mp3, .m4a, .webm, .flac.
45394537
model:
45404538
type: string
@@ -6934,25 +6932,11 @@ components:
69346932
description: Data File ID
69356933

69366934
AudioFileBinary:
6937-
type: object
6938-
required: [type, data]
6939-
properties:
6940-
type:
6941-
type: string
6942-
enum: [binary]
6943-
data:
6944-
type: string
6945-
format: binary
6946-
description: Audio file to transcribe
6935+
type: string
6936+
format: binary
6937+
description: Audio file to transcribe
69476938

69486939
AudioFileUrl:
6949-
type: object
6950-
required: [type, url]
6951-
properties:
6952-
type:
6953-
type: string
6954-
enum: [url]
6955-
url:
6956-
type: string
6957-
format: uri
6958-
description: Public HTTPS URL to audio file
6940+
type: string
6941+
format: uri
6942+
description: Public HTTPS URL to audio file

0 commit comments

Comments
 (0)