Skip to content

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]

fix: declare medium as the only reasoning effort chat-latest accepts

mateo-berri1975a54b0418
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index c97858b4e29..1ce5d08ccbc 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -30681,6 +30681,9 @@
"max_tokens": 128000,
"mode": "chat",
"output_cost_per_token": 3e-05,
+ "reasoning_effort_levels": [
+ "medium"
+ ],
"source": "https://developers.openai.com/api/docs/models/chat-latest",
"supported_endpoints": [
"/v1/chat/completions",
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index c97858b4e29..1ce5d08ccbc 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -30681,6 +30681,9 @@
"max_tokens": 128000,
"mode": "chat",
"output_cost_per_token": 3e-05,
+ "reasoning_effort_levels": [
+ "medium"
+ ],
"source": "https://developers.openai.com/api/docs/models/chat-latest",
"supported_endpoints": [
"/v1/chat/completions",
diff --git a/tests/test_litellm/test_model_prices_schema.py b/tests/test_litellm/test_model_prices_schema.py
index 3f0992275eb..c2c22c25998 100644
--- a/tests/test_litellm/test_model_prices_schema.py
+++ b/tests/test_litellm/test_model_prices_schema.py
@@ -9,6 +9,7 @@ import jsonschema
import pytest
from litellm.llms.openai.chat.gpt_5_transformation import is_gpt_reasoning_series_name
+from litellm.router_utils.reasoning_effort_capability import resolve_supported_reasoning_efforts
REPO_ROOT = Path(__file__).parents[2]
GENERATOR_PATH = REPO_ROOT / "ci_cd" / "generate_model_prices_schema.py"
@@ -209,3 +210,10 @@ def test_openai_reasoning_family_entries_carry_supports_reasoning(prices: dict):
"models, and the Responses API drops the `reasoning` param for any mapped OpenAI model "
"whose entry lacks supports_reasoning; flag these entries:\n" + "\n".join(unflagged)
)
+
+
+def test_chat_latest_declares_the_one_effort_openai_accepts(prices: dict):
+ """OpenAI rejects every reasoning.effort on chat-latest except medium, and a reasoning entry
+ with no declared levels resolves to None, which lets /model_group/info and the dashboard offer
+ levels the upstream will 400 on."""
+ assert resolve_supported_reasoning_efforts(prices["chat-latest"], deployment_is_mapped=True) == ("medium",)