Skip to content

Commit f1bfdf0

Browse files
Merge pull request #115 from togethercomputer/make-timestamp-granularities-accept-list
Whisper: Supporting an array of timestamp granularities
2 parents bc828d1 + 898085d commit f1bfdf0

1 file changed

Lines changed: 32 additions & 10 deletions

File tree

openapi.yaml

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2439,12 +2439,23 @@ components:
24392439
minimum: 0.0
24402440
maximum: 1.0
24412441
timestamp_granularities:
2442-
type: string
2443-
description: Controls level of timestamp detail in verbose_json. Only used when response_format is verbose_json.
2442+
oneOf:
2443+
- type: string
2444+
enum:
2445+
- segment
2446+
- word
2447+
- type: array
2448+
items:
2449+
type: string
2450+
enum:
2451+
- segment
2452+
- word
2453+
uniqueItems: true
2454+
minItems: 1
2455+
maxItems: 2
2456+
description: Controls level of timestamp detail in verbose_json. Only used when response_format is verbose_json. Can be a single granularity or an array to get multiple levels.
24442457
default: segment
2445-
enum:
2446-
- segment
2447-
- word
2458+
example: ["word", "segment"]
24482459

24492460
AudioTranscriptionResponse:
24502461
oneOf:
@@ -2593,12 +2604,23 @@ components:
25932604
minimum: 0.0
25942605
maximum: 1.0
25952606
timestamp_granularities:
2596-
type: string
2597-
description: Controls level of timestamp detail in verbose_json. Only used when response_format is verbose_json.
2607+
oneOf:
2608+
- type: string
2609+
enum:
2610+
- segment
2611+
- word
2612+
- type: array
2613+
items:
2614+
type: string
2615+
enum:
2616+
- segment
2617+
- word
2618+
uniqueItems: true
2619+
minItems: 1
2620+
maxItems: 2
2621+
description: Controls level of timestamp detail in verbose_json. Only used when response_format is verbose_json. Can be a single granularity or an array to get multiple levels.
25982622
default: segment
2599-
enum:
2600-
- segment
2601-
- word
2623+
example: ["word", "segment"]
26022624

26032625
AudioTranslationResponse:
26042626
oneOf:

0 commit comments

Comments
 (0)