mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-23 11:50:14 +01:00
🗣️ fix: update API endpoint for fetching audio in StreamAudio (#3307)
This commit is contained in:
parent
605a8ae8c9
commit
87bdbda10a
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ export default function StreamAudio({ index = 0 }) {
|
|||
}
|
||||
|
||||
console.log('Fetching audio...', navigator.userAgent);
|
||||
const response = await fetch('/api/files/tts', {
|
||||
const response = await fetch('/api/files/speech/tts', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${token}` },
|
||||
body: JSON.stringify({ messageId: latestMessage?.messageId, runId: activeRunId, voice }),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue