mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2026-06-12 21:25:46 +03:00
Handle OpenAI whisper transcription edge case (#2621)
remove openai whisper transcription provider response_format option
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user