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 { ...@@ -22,7 +22,6 @@ class OpenAiWhisper {
.create({ .create({
file: fs.createReadStream(fullFilePath), file: fs.createReadStream(fullFilePath),
model: this.model, model: this.model,
response_format: "text",
temperature: this.temperature, temperature: this.temperature,
}) })
.then((response) => { .then((response) => {
...@@ -33,7 +32,7 @@ class OpenAiWhisper { ...@@ -33,7 +32,7 @@ class OpenAiWhisper {
}; };
} }
return { content: response, error: null }; return { content: response.text, error: null };
}) })
.catch((error) => { .catch((error) => {
this.#log( 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