The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(azure_ai): return native Responses config for management ops (model=None)
shivam538a86885d11
diff --git a/litellm/utils.py b/litellm/utils.pyindex 34a083786d9..20d5993e14c 100644--- a/litellm/utils.py+++ b/litellm/utils.py@@ -8226,7 +8226,7 @@ class ProviderConfigManager:azure_ai_supports_native_responses,)- if azure_ai_supports_native_responses(model):+ if model is None or azure_ai_supports_native_responses(model):return litellm.AzureAIResponsesAPIConfig()return Noneelif litellm.LlmProviders.XAI == provider:diff --git a/tests/test_litellm/llms/azure_ai/responses/test_azure_ai_responses_transformation.py b/tests/test_litellm/llms/azure_ai/responses/test_azure_ai_responses_transformation.pyindex b853b114645..1d59773728a 100644--- a/tests/test_litellm/llms/azure_ai/responses/test_azure_ai_responses_transformation.py+++ b/tests/test_litellm/llms/azure_ai/responses/test_azure_ai_responses_transformation.py@@ -65,6 +65,14 @@ def test_azure_ai_resolves_native_responses_config(model):assert isinstance(config, AzureAIResponsesAPIConfig)+def test_azure_ai_resolves_native_config_for_management_ops():+ """Management ops (delete/get/cancel/list) call the lookup with model=None; it must+ still return the native config so those operations can build the right URL after a+ native create succeeds."""+ config = ProviderConfigManager.get_provider_responses_api_config(provider="azure_ai", model=None)+ assert isinstance(config, AzureAIResponsesAPIConfig)++@pytest.mark.parametrize("model", ["claude-3-5-sonnet", "model_router/gpt-5", "agents/my-agent"])def test_azure_ai_non_responses_models_keep_bridge(model):"""Claude / model-router / agents routes have their own surfaces, so they must