From acba5537c892f29a6a8e3e46cdeba491e2a92e5e Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 22 May 2026 13:11:42 +0000 Subject: [PATCH] fix: use _azure_detection_model in default Azure branch of get_supported_openai_params Co-authored-by: Yassin Kortam --- litellm/litellm_core_utils/get_supported_openai_params.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litellm/litellm_core_utils/get_supported_openai_params.py b/litellm/litellm_core_utils/get_supported_openai_params.py index 46c643f3e37..b8cdc8210fc 100644 --- a/litellm/litellm_core_utils/get_supported_openai_params.py +++ b/litellm/litellm_core_utils/get_supported_openai_params.py @@ -154,7 +154,9 @@ def get_supported_openai_params( # noqa: PLR0915 model=_azure_detection_model ) else: - return litellm.AzureOpenAIConfig().get_supported_openai_params(model=model) + return litellm.AzureOpenAIConfig().get_supported_openai_params( + model=_azure_detection_model + ) elif custom_llm_provider == "openrouter": return litellm.OpenrouterConfig().get_supported_openai_params(model=model) elif custom_llm_provider == "vercel_ai_gateway":