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): generalize is_model_o_series_model to match any o+digit prefix
Sameer Kankutedd0ccdd8b2f4
diff --git a/litellm/llms/openai/chat/o_series_transformation.py b/litellm/llms/openai/chat/o_series_transformation.pyindex 6ef43ec5bfd..0c5ee90b332 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:model = model.split("/")[-1] # could be "openai/o3" or "o3"- return model.startswith(("o1", "o3", "o4")) and model in litellm.open_ai_chat_completion_models+ return (+ len(model) > 1 and model[0] == "o" and model[1].isdigit()+ and model in litellm.open_ai_chat_completion_models+ )@overloaddef _transform_messages(