Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

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

Danny Avila6aa4bb5a4a1e
diff --git a/api/server/controllers/agents/client.js b/api/server/controllers/agents/client.js
index 8708e2f8bc..412ff6802b 100644
--- a/api/server/controllers/agents/client.js
+++ b/api/server/controllers/agents/client.js
@@ -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} */