🐞 fix: add LocalAI to GET /voices (#2837)

This commit is contained in:
bsu3338 2024-05-22 21:42:27 -05:00 committed by GitHub
parent b3e03b75d0
commit 6cf1c85363
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,6 +31,9 @@ async function getVoices(req, res) {
case 'elevenlabs':
voices = ttsSchema.elevenlabs?.voices;
break;
case 'localai':
voices = ttsSchema.localai?.voices;
break;
default:
throw new Error('Invalid provider');
}