Skip to content

Commit da8ead5

Browse files
Merge bb49616 into 0652787
2 parents 0652787 + bb49616 commit da8ead5

6 files changed

Lines changed: 42 additions & 27 deletions

File tree

.castiron.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
schema_version: 1
2-
generation_id: e3616fd3-9690-4581-bbd3-5c06423abf6d
3-
openapi_spec_hash: 8d5c14d02f8cc28de343933fae3a9c28
4-
openapi_transformed_spec_hash: cc042503b90491f4f162ce95fae87c36
2+
generation_id: e1943695-9da0-4ac1-ae5a-cc763f5d90be
3+
openapi_spec_hash: 1faf0319c407c6534ef7c381614afbb6
4+
openapi_transformed_spec_hash: 53eff50caa9d18046e4ff0615bc7512d
55
config_hash: 4617b0962f16d328804312ac81aac630
6-
codegen_sha: ea10a4f6b22f3fb9f72208589a3e8258c640479d
6+
codegen_sha: b97c76f867d26f99d0de01d6283fa6d511044141

api_reference/openapi.transformed.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34062,6 +34062,7 @@ components:
3406234062
file:
3406334063
description: |
3406434064
The audio file object (not file name) to transcribe, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
34065+
The request must include enough format metadata for the file to be identified. We recommend an extension-bearing filename and an appropriate content type.
3406534066
type: string
3406634067
x-oaiTypeLabel: file
3406734068
format: binary
@@ -34369,7 +34370,7 @@ components:
3436934370
properties:
3437034371
file:
3437134372
description: |
34372-
The audio file object (not file name) translate, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
34373+
The audio file object (not file name) translate, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. The request must include enough format metadata for the file to be identified. We recommend an extension-bearing filename and an appropriate content type.
3437334374
type: string
3437434375
x-oaiTypeLabel: file
3437534376
format: binary

src/openai/resources/audio/transcriptions.py

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@ def create(
9494
format, or a stream of transcript events.
9595
9696
Args:
97-
file:
98-
The audio file object (not file name) to transcribe, in one of these formats:
99-
flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
97+
file: The audio file object (not file name) to transcribe, in one of these formats:
98+
flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. The request must include
99+
enough format metadata for the file to be identified. We recommend an
100+
extension-bearing filename and an appropriate content type.
100101
101102
model: ID of the model to use. The options are `gpt-transcribe`, `gpt-4o-transcribe`,
102103
`gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `whisper-1`
@@ -260,9 +261,10 @@ def create(
260261
format, or a stream of transcript events.
261262
262263
Args:
263-
file:
264-
The audio file object (not file name) to transcribe, in one of these formats:
265-
flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
264+
file: The audio file object (not file name) to transcribe, in one of these formats:
265+
flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. The request must include
266+
enough format metadata for the file to be identified. We recommend an
267+
extension-bearing filename and an appropriate content type.
266268
267269
model: ID of the model to use. The options are `gpt-transcribe`, `gpt-4o-transcribe`,
268270
`gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `whisper-1`
@@ -380,9 +382,10 @@ def create(
380382
format, or a stream of transcript events.
381383
382384
Args:
383-
file:
384-
The audio file object (not file name) to transcribe, in one of these formats:
385-
flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
385+
file: The audio file object (not file name) to transcribe, in one of these formats:
386+
flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. The request must include
387+
enough format metadata for the file to be identified. We recommend an
388+
extension-bearing filename and an appropriate content type.
386389
387390
model: ID of the model to use. The options are `gpt-transcribe`, `gpt-4o-transcribe`,
388391
`gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `whisper-1`
@@ -593,9 +596,10 @@ async def create(
593596
format, or a stream of transcript events.
594597
595598
Args:
596-
file:
597-
The audio file object (not file name) to transcribe, in one of these formats:
598-
flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
599+
file: The audio file object (not file name) to transcribe, in one of these formats:
600+
flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. The request must include
601+
enough format metadata for the file to be identified. We recommend an
602+
extension-bearing filename and an appropriate content type.
599603
600604
model: ID of the model to use. The options are `gpt-transcribe`, `gpt-4o-transcribe`,
601605
`gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `whisper-1`
@@ -754,9 +758,10 @@ async def create(
754758
format, or a stream of transcript events.
755759
756760
Args:
757-
file:
758-
The audio file object (not file name) to transcribe, in one of these formats:
759-
flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
761+
file: The audio file object (not file name) to transcribe, in one of these formats:
762+
flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. The request must include
763+
enough format metadata for the file to be identified. We recommend an
764+
extension-bearing filename and an appropriate content type.
760765
761766
model: ID of the model to use. The options are `gpt-transcribe`, `gpt-4o-transcribe`,
762767
`gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `whisper-1`
@@ -874,9 +879,10 @@ async def create(
874879
format, or a stream of transcript events.
875880
876881
Args:
877-
file:
878-
The audio file object (not file name) to transcribe, in one of these formats:
879-
flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
882+
file: The audio file object (not file name) to transcribe, in one of these formats:
883+
flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. The request must include
884+
enough format metadata for the file to be identified. We recommend an
885+
extension-bearing filename and an appropriate content type.
880886
881887
model: ID of the model to use. The options are `gpt-transcribe`, `gpt-4o-transcribe`,
882888
`gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `whisper-1`

src/openai/resources/audio/translations.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ def create(
120120
121121
Args:
122122
file: The audio file object (not file name) translate, in one of these formats: flac,
123-
mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
123+
mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. The request must include enough
124+
format metadata for the file to be identified. We recommend an extension-bearing
125+
filename and an appropriate content type.
124126
125127
model: ID of the model to use. Only `whisper-1` (which is powered by our open source
126128
Whisper V2 model) is currently available.
@@ -270,7 +272,9 @@ async def create(
270272
271273
Args:
272274
file: The audio file object (not file name) translate, in one of these formats: flac,
273-
mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
275+
mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. The request must include enough
276+
format metadata for the file to be identified. We recommend an extension-bearing
277+
filename and an appropriate content type.
274278
275279
model: ID of the model to use. Only `whisper-1` (which is powered by our open source
276280
Whisper V2 model) is currently available.

src/openai/types/audio/transcription_create_params.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ class TranscriptionCreateParamsBase(TypedDict, total=False):
2323
file: Required[FileTypes]
2424
"""
2525
The audio file object (not file name) to transcribe, in one of these formats:
26-
flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
26+
flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. The request must include
27+
enough format metadata for the file to be identified. We recommend an
28+
extension-bearing filename and an appropriate content type.
2729
"""
2830

2931
model: Required[Union[str, AudioModel]]

src/openai/types/audio/translation_create_params.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ class TranslationCreateParams(TypedDict, total=False):
1515
file: Required[FileTypes]
1616
"""
1717
The audio file object (not file name) translate, in one of these formats: flac,
18-
mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
18+
mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. The request must include enough
19+
format metadata for the file to be identified. We recommend an extension-bearing
20+
filename and an appropriate content type.
1921
"""
2022

2123
model: Required[Union[str, AudioModel]]

0 commit comments

Comments
 (0)