mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
⚙️ fix: update Azure OpenAI STT/TTS env handling (#4859)
This commit is contained in:
parent
9f25afef91
commit
affcebd48c
2 changed files with 7 additions and 7 deletions
|
|
@ -143,9 +143,9 @@ class TTSService {
|
|||
*/
|
||||
azureOpenAIProvider(ttsSchema, input, voice) {
|
||||
const url = `${genAzureEndpoint({
|
||||
azureOpenAIApiInstanceName: ttsSchema?.instanceName,
|
||||
azureOpenAIApiDeploymentName: ttsSchema?.deploymentName,
|
||||
})}/audio/speech?api-version=${ttsSchema?.apiVersion}`;
|
||||
azureOpenAIApiInstanceName: extractEnvVariable(ttsSchema?.instanceName),
|
||||
azureOpenAIApiDeploymentName: extractEnvVariable(ttsSchema?.deploymentName),
|
||||
})}/audio/speech?api-version=${extractEnvVariable(ttsSchema?.apiVersion)}`;
|
||||
|
||||
if (
|
||||
ttsSchema?.voices &&
|
||||
|
|
@ -157,7 +157,7 @@ class TTSService {
|
|||
}
|
||||
|
||||
const data = {
|
||||
model: ttsSchema?.model,
|
||||
model: extractEnvVariable(ttsSchema?.model),
|
||||
input,
|
||||
voice: ttsSchema?.voices && ttsSchema.voices.length > 0 ? voice : undefined,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue