mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
👟 fix: Edge Case of Azure Provider Assignment for Title Run (#8420)
This commit is contained in:
parent
9f44187351
commit
6aa4bb5a4a
1 changed files with 6 additions and 0 deletions
|
|
@ -1048,6 +1048,12 @@ class AgentClient extends BaseClient {
|
||||||
options.llmConfig?.azureOpenAIApiInstanceName == null
|
options.llmConfig?.azureOpenAIApiInstanceName == null
|
||||||
) {
|
) {
|
||||||
provider = Providers.OPENAI;
|
provider = Providers.OPENAI;
|
||||||
|
} else if (
|
||||||
|
endpoint === EModelEndpoint.azureOpenAI &&
|
||||||
|
options.llmConfig?.azureOpenAIApiInstanceName != null &&
|
||||||
|
provider !== Providers.AZURE
|
||||||
|
) {
|
||||||
|
provider = Providers.AZURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @type {import('@librechat/agents').ClientOptions} */
|
/** @type {import('@librechat/agents').ClientOptions} */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue