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(tests): update outdated model names in o1 and gemini tests

yuneng-jiang15075ef9ec88
diff --git a/tests/llm_translation/test_gemini.py b/tests/llm_translation/test_gemini.py
index 796b35b436e..85130837ce5 100644
--- a/tests/llm_translation/test_gemini.py
+++ b/tests/llm_translation/test_gemini.py
@@ -271,7 +271,7 @@ def test_gemini_context_caching_separate_messages():
def test_gemini_image_generation():
# litellm._turn_on_debug()
response = completion(
- model="gemini/gemini-2.5-flash-image-preview",
+ model="gemini/gemini-2.5-flash-image",
messages=[{"role": "user", "content": "Generate an image of a cat"}],
modalities=["image", "text"],
)
diff --git a/tests/llm_translation/test_openai_o1.py b/tests/llm_translation/test_openai_o1.py
index 47fd145317f..0e4761bb4cf 100644
--- a/tests/llm_translation/test_openai_o1.py
+++ b/tests/llm_translation/test_openai_o1.py
@@ -18,7 +18,7 @@ from litellm import Choices, Message, ModelResponse
from base_llm_unit_tests import BaseLLMChatTest, BaseOSeriesModelsTest
[email protected]("model", ["o1-mini", "o1"])
[email protected]("model", ["o1"])
@pytest.mark.asyncio
async def test_o1_handle_system_role(model):
"""
@@ -68,7 +68,7 @@ async def test_o1_handle_system_role(model):
@pytest.mark.parametrize(
"model, expected_tool_calling_support",
- [("o1-mini", False), ("o1", True)],
+ [("o1", True)],
)
@pytest.mark.asyncio
async def test_o1_handle_tool_calling_optional_params(
@@ -96,7 +96,7 @@ async def test_o1_handle_tool_calling_optional_params(
@pytest.mark.asyncio
[email protected]("model", ["gpt-4", "gpt-4-0314", "gpt-4-32k"])
[email protected]("model", ["gpt-4", "gpt-4-0613"])
async def test_o1_max_completion_tokens(model: str):
"""
Tests that:
diff --git a/tests/llm_translation/test_optional_params.py b/tests/llm_translation/test_optional_params.py
index a521e8e43f8..56f05580cb2 100644
--- a/tests/llm_translation/test_optional_params.py
+++ b/tests/llm_translation/test_optional_params.py
@@ -769,7 +769,7 @@ def test_parse_additional_properties_json_schema(model, provider, expectedAddPro
def test_o1_model_params():
optional_params = get_optional_params(
- model="o1-preview-2024-09-12",
+ model="o1-2024-12-17",
custom_llm_provider="openai",
seed=10,
user="John",
@@ -780,7 +780,7 @@ def test_o1_model_params():
def test_azure_o1_model_params():
optional_params = get_optional_params(
- model="o1-preview",
+ model="o1",
custom_llm_provider="azure",
seed=10,
user="John",
@@ -798,13 +798,13 @@ def test_o1_model_temperature_params(provider, temperature, expected_error):
if expected_error:
with pytest.raises(litellm.UnsupportedParamsError):
get_optional_params(
- model="o1-preview",
+ model="o1",
custom_llm_provider=provider,
temperature=temperature,
)
else:
get_optional_params(
- model="o1-preview-2024-09-12",
+ model="o1-2024-12-17",
custom_llm_provider="openai",
temperature=temperature,
)