Mintplex-Labs / anything-llm

The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, and more.
https://anythingllm.com
MIT License
27.47k stars 2.77k forks source link

Fix the problem of failing transcribing when using OpenAiWhisper #2618

Closed fiyen closed 1 week ago

fiyen commented 1 week ago

Pull Request Type

Relevant Issues

resolves #2617

What is in this change?

Once a Transcription API is set to OpenAiWhisper, transcription result is failure whenever I upload a .mp3 file. I find that the code in line 36 of OpenAiWhisper.js in collector directory is return a result like: content: response. I have referred to the docs in openai.com, the example shows that the text content should extract by using response.text. So I change the code to content: response.text, and my question is solved.

Additional Information

Developer Validations

shatfield4 commented 1 week ago

This causes any transcriptions to fail when using OpenAI Whisper.