mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 01:10:14 +01:00
🐞 fix: add LocalAI to GET /voices (#2837)
This commit is contained in:
parent
b3e03b75d0
commit
6cf1c85363
1 changed files with 3 additions and 0 deletions
|
|
@ -31,6 +31,9 @@ async function getVoices(req, res) {
|
||||||
case 'elevenlabs':
|
case 'elevenlabs':
|
||||||
voices = ttsSchema.elevenlabs?.voices;
|
voices = ttsSchema.elevenlabs?.voices;
|
||||||
break;
|
break;
|
||||||
|
case 'localai':
|
||||||
|
voices = ttsSchema.localai?.voices;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Error('Invalid provider');
|
throw new Error('Invalid provider');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue