Skip to content

Commit 1469be2

Browse files
authored
TranscriptionVerbose.duration is a number, not a string
The real API returns numbers, not strings. [The API is also documented here](https://platform.openai.com/docs/api-reference/audio/verbose-json-object). That documentation partially makes the same mistake: it claims that `duration` is a string. However, it also shows this example: `"duration": 8.470000267028809`, in which the duration is a number.
1 parent 813cb44 commit 1469be2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/audio/transcriptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export interface TranscriptionVerbose {
104104
/**
105105
* The duration of the input audio.
106106
*/
107-
duration: string;
107+
duration: number;
108108

109109
/**
110110
* The language of the input audio.

0 commit comments

Comments
 (0)