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(openrouter): fix crash of gpt-5.2-codex by using mode "chat" (#20577)

Piotr Grabowski8a5feb18e3ec
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index f6edcf7efd0..347a66c7dad 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -24707,11 +24707,8 @@
"max_input_tokens": 272000,
"max_output_tokens": 128000,
"max_tokens": 128000,
- "mode": "responses",
+ "mode": "chat",
"output_cost_per_token": 1.4e-05,
- "supported_endpoints": [
- "/v1/responses"
- ],
"supported_modalities": [
"text",
"image"
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index f6edcf7efd0..347a66c7dad 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -24707,11 +24707,8 @@
"max_input_tokens": 272000,
"max_output_tokens": 128000,
"max_tokens": 128000,
- "mode": "responses",
+ "mode": "chat",
"output_cost_per_token": 1.4e-05,
- "supported_endpoints": [
- "/v1/responses"
- ],
"supported_modalities": [
"text",
"image"