mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-04-17 18:18:11 +00:00
Handle OpenAI whisper transcription edge case (#2621)
remove openai whisper transcription provider response_format option
This commit is contained in:
parent
e41a9beaae
commit
cf3b085a3a
1 changed files with 1 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue