mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-23 20:00:15 +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);
|
console.log('Fetching audio...', navigator.userAgent);
|
||||||
const response = await fetch('/api/files/tts', {
|
const response = await fetch('/api/files/speech/tts', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${token}` },
|
headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${token}` },
|
||||||
body: JSON.stringify({ messageId: latestMessage?.messageId, runId: activeRunId, voice }),
|
body: JSON.stringify({ messageId: latestMessage?.messageId, runId: activeRunId, voice }),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue