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(cost-map): stop advertising reasoning_effort max on azure_ai/gpt-6-astra
mateo-berrie8f311429ea9
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex 5b4652d38c7..b659c3b65e5 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -3518,7 +3518,7 @@],"supports_computer_use": true,"supports_function_calling": true,- "supports_max_reasoning_effort": true,+ "supports_max_reasoning_effort": false,"supports_minimal_reasoning_effort": false,"supports_native_streaming": true,"supports_none_reasoning_effort": true,diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 5b4652d38c7..b659c3b65e5 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -3518,7 +3518,7 @@],"supports_computer_use": true,"supports_function_calling": true,- "supports_max_reasoning_effort": true,+ "supports_max_reasoning_effort": false,"supports_minimal_reasoning_effort": false,"supports_native_streaming": true,"supports_none_reasoning_effort": true,diff --git a/tests/test_litellm/router_utils/test_reasoning_effort_capability.py b/tests/test_litellm/router_utils/test_reasoning_effort_capability.pyindex 3e1f26b6e1c..fa3a6dcd95a 100644--- a/tests/test_litellm/router_utils/test_reasoning_effort_capability.py+++ b/tests/test_litellm/router_utils/test_reasoning_effort_capability.py@@ -394,7 +394,6 @@ class TestGpt6AstraAdvertisesItsDocumentedLevels:[("azure/gpt-6-astra", "azure"),("azure/us/gpt-6-astra", "azure"),- ("azure_ai/gpt-6-astra", "azure_ai"),],)def test_a_foundry_deployment_also_advertises_none(self, local_model_cost_map, model, custom_llm_provider):@@ -413,3 +412,16 @@ class TestGpt6AstraAdvertisesItsDocumentedLevels:"xhigh","max",)++ def test_a_foundry_azure_ai_deployment_advertises_none_but_not_max(self, local_model_cost_map):+ from litellm.utils import _get_model_info_helper++ model_info = dict(_get_model_info_helper(model="azure_ai/gpt-6-astra", custom_llm_provider="azure_ai"))++ assert resolve_supported_reasoning_efforts(model_info, deployment_is_mapped=True) == (+ "none",+ "low",+ "medium",+ "high",+ "xhigh",+ )