From 4087c3b4cb1752623b0f654e24a1196430d702b4 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Fri, 30 Jan 2026 14:06:44 -0800 Subject: [PATCH] fix:feat: route to config --- litellm/utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/litellm/utils.py b/litellm/utils.py index 15fec357bf2..7c4eec7ba32 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -7914,9 +7914,8 @@ class ProviderConfigManager: @staticmethod def _get_azure_ai_config(model: str) -> BaseConfig: """Get Azure AI config based on model type.""" - if "claude" in model.lower(): - return litellm.AzureAnthropicConfig() - return litellm.AzureAIStudioConfig() + from litellm.llms.azure_ai.common_utils import AzureFoundryModelInfo + return AzureFoundryModelInfo.get_azure_ai_config_for_model(model) @staticmethod def _get_vertex_ai_config(model: str) -> BaseConfig: