Skip to content

fix AudioTranscriptionRequest file param type #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 28 additions & 6 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4525,12 +4525,10 @@ components:
properties:
file:
oneOf:
- type: string
format: binary
description: Audio file to transcribe
- type: string
format: uri
description: Public HTTP/HTTPS URL to audio file
- $ref: '#/components/schemas/AudioFileBinary'
- $ref: '#/components/schemas/AudioFileUrl'
discriminator:
propertyName: type
description: Audio file upload or public HTTP/HTTPS URL. Supported formats .wav, .mp3, .m4a, .webm, .flac.
model:
type: string
Expand Down Expand Up @@ -6918,3 +6916,27 @@ components:
result_file_id:
type: string
description: Data File ID

AudioFileBinary:
type: object
required: [type, data]
properties:
type:
type: string
enum: [binary]
data:
type: string
format: binary
description: Audio file to transcribe

AudioFileUrl:
type: object
required: [type, url]
properties:
type:
type: string
enum: [url]
url:
type: string
format: uri
description: Public HTTPS URL to audio file