From cf3b085a3af710f631bbcc08e21b54cbb953c90f Mon Sep 17 00:00:00 2001 From: Sean Hatfield Date: Mon, 11 Nov 2024 17:32:03 -0800 Subject: [PATCH] Handle OpenAI whisper transcription edge case (#2621) remove openai whisper transcription provider response_format option --- collector/utils/WhisperProviders/OpenAiWhisper.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/collector/utils/WhisperProviders/OpenAiWhisper.js b/collector/utils/WhisperProviders/OpenAiWhisper.js index fc163eddf7..e2405b6a9b 100644 --- a/collector/utils/WhisperProviders/OpenAiWhisper.js +++ b/collector/utils/WhisperProviders/OpenAiWhisper.js @@ -22,7 +22,6 @@ class OpenAiWhisper { .create({ file: fs.createReadStream(fullFilePath), model: this.model, - response_format: "text", temperature: this.temperature, }) .then((response) => { @@ -33,7 +32,7 @@ class OpenAiWhisper { }; } - return { content: response, error: null }; + return { content: response.text, error: null }; }) .catch((error) => { this.#log(