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(o_series_transformation.py): correctly map o4 to openai o_series model (#10079)
Krish Dholakia8ddaf3dfbc5c
diff --git a/litellm/llms/openai/chat/o_series_transformation.py b/litellm/llms/openai/chat/o_series_transformation.pyindex b2ffda6e7de..c9a700facef 100644--- a/litellm/llms/openai/chat/o_series_transformation.py+++ b/litellm/llms/openai/chat/o_series_transformation.py@@ -131,7 +131,10 @@ class OpenAIOSeriesConfig(OpenAIGPTConfig):def is_model_o_series_model(self, model: str) -> bool:if model in litellm.open_ai_chat_completion_models and (- "o1" in model or "o3" in model+ "o1" in model+ or "o3" in model+ or "o4"+ in model # [TODO] make this a more generic check (e.g. using `openai-o-series` as provider like gemini)):return Truereturn False