Skip to content

Commit e9a89ab

Browse files
fix: fix create audio transcription endpoint
1 parent 98ba7d3 commit e9a89ab

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/openai/resources/audio/transcriptions.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def create(
7878
*,
7979
file: FileTypes,
8080
model: Union[str, AudioModel],
81+
chunking_strategy: Optional[transcription_create_params.ChunkingStrategy] | NotGiven = NOT_GIVEN,
8182
include: List[TranscriptionInclude] | NotGiven = NOT_GIVEN,
8283
response_format: Literal["verbose_json"],
8384
language: str | NotGiven = NOT_GIVEN,
@@ -98,6 +99,7 @@ def create(
9899
*,
99100
file: FileTypes,
100101
model: Union[str, AudioModel],
102+
chunking_strategy: Optional[transcription_create_params.ChunkingStrategy] | NotGiven = NOT_GIVEN,
101103
response_format: Literal["text", "srt", "vtt"],
102104
include: List[TranscriptionInclude] | NotGiven = NOT_GIVEN,
103105
language: str | NotGiven = NOT_GIVEN,
@@ -374,11 +376,11 @@ async def create(
374376
model: Union[str, AudioModel],
375377
chunking_strategy: Optional[transcription_create_params.ChunkingStrategy] | NotGiven = NOT_GIVEN,
376378
include: List[TranscriptionInclude] | NotGiven = NOT_GIVEN,
377-
response_format: Union[Literal["json"], NotGiven] = NOT_GIVEN,
378379
language: str | NotGiven = NOT_GIVEN,
379380
prompt: str | NotGiven = NOT_GIVEN,
381+
response_format: Union[Literal["json"], NotGiven] = NOT_GIVEN,
382+
stream: Optional[Literal[False]] | NotGiven = NOT_GIVEN,
380383
temperature: float | NotGiven = NOT_GIVEN,
381-
include: List[TranscriptionInclude] | NotGiven = NOT_GIVEN,
382384
timestamp_granularities: List[Literal["word", "segment"]] | NotGiven = NOT_GIVEN,
383385
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
384386
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -455,6 +457,7 @@ async def create(
455457
*,
456458
file: FileTypes,
457459
model: Union[str, AudioModel],
460+
chunking_strategy: Optional[transcription_create_params.ChunkingStrategy] | NotGiven = NOT_GIVEN,
458461
include: List[TranscriptionInclude] | NotGiven = NOT_GIVEN,
459462
response_format: Literal["verbose_json"],
460463
language: str | NotGiven = NOT_GIVEN,
@@ -475,6 +478,7 @@ async def create(
475478
*,
476479
file: FileTypes,
477480
model: Union[str, AudioModel],
481+
chunking_strategy: Optional[transcription_create_params.ChunkingStrategy] | NotGiven = NOT_GIVEN,
478482
include: List[TranscriptionInclude] | NotGiven = NOT_GIVEN,
479483
response_format: Literal["text", "srt", "vtt"],
480484
language: str | NotGiven = NOT_GIVEN,

0 commit comments

Comments
 (0)