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] Remove deprecated o1-preview from O-series test and deduplicate is_o_series check

yuneng-jiangfb65384a76ad
diff --git a/litellm/utils.py b/litellm/utils.py
index 88312354bc0..dff038a36e5 100644
--- a/litellm/utils.py
+++ b/litellm/utils.py
@@ -8397,11 +8397,6 @@ class ProviderConfigManager:
or (supports_reasoning(model) and not is_gpt_model)
)
- is_o_series = model and (
- "o_series" in model.lower()
- or (supports_reasoning(model) and not is_gpt_model)
- )
-
if is_o_series:
return litellm.AzureOpenAIOSeriesResponsesAPIConfig()
else:
diff --git a/tests/test_gpt5_azure_temperature_support.py b/tests/test_gpt5_azure_temperature_support.py
index ac32abc0a67..f683c92e7d3 100644
--- a/tests/test_gpt5_azure_temperature_support.py
+++ b/tests/test_gpt5_azure_temperature_support.py
@@ -24,7 +24,7 @@ def test_azure_gpt5_supports_temperature():
def test_azure_o_series_does_not_support_temperature():
"""Test that Azure O-series models still use the correct O-series config."""
- test_models = ["o1", "o1-preview", "o3"]
+ test_models = ["o1", "o3"]
for model in test_models:
config = ProviderConfigManager.get_provider_responses_api_config(