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(models): match gpt-6-astra reasoning effort levels to OpenAI docs
mateo-berri4991d0bf3e58
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex 04a67200ced..385cf22d06c 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -29330,9 +29330,10 @@],"supports_computer_use": true,"supports_function_calling": true,+ "supports_max_reasoning_effort": true,"supports_minimal_reasoning_effort": false,"supports_native_streaming": true,- "supports_none_reasoning_effort": true,+ "supports_none_reasoning_effort": false,"supports_parallel_function_calling": true,"supports_pdf_input": true,"supports_prompt_cache_breakpoint": true,diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 04a67200ced..385cf22d06c 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -29330,9 +29330,10 @@],"supports_computer_use": true,"supports_function_calling": true,+ "supports_max_reasoning_effort": true,"supports_minimal_reasoning_effort": false,"supports_native_streaming": true,- "supports_none_reasoning_effort": true,+ "supports_none_reasoning_effort": false,"supports_parallel_function_calling": true,"supports_pdf_input": true,"supports_prompt_cache_breakpoint": 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 a0dbf3b6637..7b2e45ab3ed 100644--- a/tests/test_litellm/router_utils/test_reasoning_effort_capability.py+++ b/tests/test_litellm/router_utils/test_reasoning_effort_capability.py@@ -371,3 +371,20 @@ class TestKimiK3AdvertisesItsDocumentedLevels:"low","high",)+++class TestGpt6AstraAdvertisesItsDocumentedLevels:+ def test_the_entry_advertises_low_through_max_without_none(self, local_model_cost_map):+ """OpenAI documents low, medium, high, xhigh and max for gpt-6-astra. Unlike gpt-5.6-sol it+ does not take none, so a group must not offer none and must offer max."""+ from litellm.utils import _get_model_info_helper++ model_info = dict(_get_model_info_helper(model="gpt-6-astra", custom_llm_provider="openai"))++ assert resolve_supported_reasoning_efforts(model_info, deployment_is_mapped=True) == (+ "low",+ "medium",+ "high",+ "xhigh",+ "max",+ )