Skip to content

Commit 2fc632d

Browse files
committed
Fix missing translations response_format enum
1 parent 8a023c6 commit 2fc632d

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

openapi.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11219,16 +11219,7 @@ components:
1121911219
An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should match the audio language.
1122011220
type: string
1122111221
response_format:
11222-
description: |
11223-
The format of the transcript output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`.
11224-
type: string
11225-
enum:
11226-
- json
11227-
- text
11228-
- srt
11229-
- verbose_json
11230-
- vtt
11231-
default: json
11222+
$ref: "#/components/schemas/AudioResponseFormat"
1123211223
temperature:
1123311224
description: |
1123411225
The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit.
@@ -11361,6 +11352,18 @@ components:
1136111352
group: audio
1136211353
example: *verbose_transcription_response_example
1136311354

11355+
AudioResponseFormat:
11356+
description: |
11357+
The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`.
11358+
type: string
11359+
enum:
11360+
- json
11361+
- text
11362+
- srt
11363+
- verbose_json
11364+
- vtt
11365+
default: json
11366+
1136411367
CreateTranslationRequest:
1136511368
type: object
1136611369
additionalProperties: false
@@ -11385,10 +11388,7 @@ components:
1138511388
An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should be in English.
1138611389
type: string
1138711390
response_format:
11388-
description: |
11389-
The format of the transcript output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`.
11390-
type: string
11391-
default: json
11391+
$ref: "#/components/schemas/AudioResponseFormat"
1139211392
temperature:
1139311393
description: |
1139411394
The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit.

0 commit comments

Comments
 (0)