From 1469be2d8e1220873a19ee7412840726a8c647d3 Mon Sep 17 00:00:00 2001 From: Jim Fisher Date: Fri, 25 Oct 2024 15:15:50 +0100 Subject: [PATCH] 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. --- src/resources/audio/transcriptions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/audio/transcriptions.ts b/src/resources/audio/transcriptions.ts index 902dc9e5f..870f25084 100644 --- a/src/resources/audio/transcriptions.ts +++ b/src/resources/audio/transcriptions.ts @@ -104,7 +104,7 @@ export interface TranscriptionVerbose { /** * The duration of the input audio. */ - duration: string; + duration: number; /** * The language of the input audio.