Skip to content

Commit 671ec39

Browse files
committed
Fix missing translations response_format enum
1 parent 0cad874 commit 671ec39

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
@@ -10900,16 +10900,7 @@ components:
1090010900
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.
1090110901
type: string
1090210902
response_format:
10903-
description: |
10904-
The format of the transcript output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`.
10905-
type: string
10906-
enum:
10907-
- json
10908-
- text
10909-
- srt
10910-
- verbose_json
10911-
- vtt
10912-
default: json
10903+
$ref: "#/components/schemas/AudioResponseFormat"
1091310904
temperature:
1091410905
description: |
1091510906
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.
@@ -11042,6 +11033,18 @@ components:
1104211033
group: audio
1104311034
example: *verbose_transcription_response_example
1104411035

11036+
AudioResponseFormat:
11037+
description: |
11038+
The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`.
11039+
type: string
11040+
enum:
11041+
- json
11042+
- text
11043+
- srt
11044+
- verbose_json
11045+
- vtt
11046+
default: json
11047+
1104511048
CreateTranslationRequest:
1104611049
type: object
1104711050
additionalProperties: false
@@ -11066,10 +11069,7 @@ components:
1106611069
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.
1106711070
type: string
1106811071
response_format:
11069-
description: |
11070-
The format of the transcript output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`.
11071-
type: string
11072-
default: json
11072+
$ref: "#/components/schemas/AudioResponseFormat"
1107311073
temperature:
1107411074
description: |
1107511075
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)