mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
🔧 fix: Upload Audio as Text missing Param (#9356)
This commit is contained in:
parent
b75b799e34
commit
7742b18c9c
4 changed files with 23 additions and 8 deletions
|
|
@ -616,7 +616,7 @@ const processAgentFileUpload = async ({ req, res, metadata }) => {
|
|||
|
||||
if (shouldUseSTT) {
|
||||
const sttService = await STTService.getInstance();
|
||||
const { text, bytes } = await processAudioFile({ file, sttService });
|
||||
const { text, bytes } = await processAudioFile({ req, file, sttService });
|
||||
return await createTextFile({ text, bytes });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue