🗣️ fix: update API endpoint for fetching audio in StreamAudio (#3307)
This commit is contained in:
@@ -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 }),
|
||||
|
||||
Reference in New Issue
Block a user