👟 fix: Edge Case of Azure Provider Assignment for Title Run (#8420)

This commit is contained in:
Danny Avila 2025-07-12 01:52:17 -04:00 committed by GitHub
parent 9f44187351
commit 6aa4bb5a4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1048,6 +1048,12 @@ class AgentClient extends BaseClient {
options.llmConfig?.azureOpenAIApiInstanceName == null
) {
provider = Providers.OPENAI;
} else if (
endpoint === EModelEndpoint.azureOpenAI &&
options.llmConfig?.azureOpenAIApiInstanceName != null &&
provider !== Providers.AZURE
) {
provider = Providers.AZURE;
}
/** @type {import('@librechat/agents').ClientOptions} */