Handle OpenAI whisper transcription edge case ()

remove openai whisper transcription provider response_format option
This commit is contained in:
Sean Hatfield 2024-11-11 17:32:03 -08:00 committed by GitHub
parent e41a9beaae
commit cf3b085a3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(