mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 11:20:15 +01:00
refactor: update getAppConfig call to include user role parameter
This commit is contained in:
parent
5eef6ea9e8
commit
647b1bbac6
1 changed files with 3 additions and 1 deletions
|
|
@ -14,7 +14,9 @@ const { getProvider } = require('./TTSService');
|
|||
*/
|
||||
async function getVoices(req, res) {
|
||||
try {
|
||||
const appConfig = await getAppConfig();
|
||||
const appConfig = await getAppConfig({
|
||||
role: req.user?.role,
|
||||
});
|
||||
|
||||
if (!appConfig || !appConfig?.speech?.tts) {
|
||||
throw new Error('Configuration or TTS schema is missing');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue