Skip to content
Snippets Groups Projects
Unverified Commit cf3b085a authored by Sean Hatfield's avatar Sean Hatfield Committed by GitHub
Browse files

Handle OpenAI whisper transcription edge case (#2621)

remove openai whisper transcription provider response_format option
parent e41a9bea
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment