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]

[Test] Anthropic: Replace Legacy Claude-4-Sonnet Alias With Haiku 4.5

Yuneng Jiange3917c9d08bc
diff --git a/tests/litellm_utils_tests/test_anthropic_token_counter.py b/tests/litellm_utils_tests/test_anthropic_token_counter.py
index d099eb4f8e9..028586203a5 100644
--- a/tests/litellm_utils_tests/test_anthropic_token_counter.py
+++ b/tests/litellm_utils_tests/test_anthropic_token_counter.py
@@ -26,7 +26,7 @@ class TestAnthropicTokenCounter(BaseTokenCounterTest):
return AnthropicTokenCounter()
def get_test_model(self) -> str:
- return "claude-sonnet-4-20250514"
+ return "claude-haiku-4-5-20251001"
def get_test_messages(self) -> List[Dict[str, Any]]:
return [{"role": "user", "content": "Hello, how are you today?"}]
diff --git a/tests/local_testing/test_function_calling.py b/tests/local_testing/test_function_calling.py
index 02affa1d57c..6fd253ee294 100644
--- a/tests/local_testing/test_function_calling.py
+++ b/tests/local_testing/test_function_calling.py
@@ -158,7 +158,7 @@ def test_aaparallel_function_call(model):
@pytest.mark.parametrize(
"model",
[
- "anthropic/claude-4-sonnet-20250514",
+ "anthropic/claude-haiku-4-5-20251001",
"bedrock/us.anthropic.claude-sonnet-4-5-20250929-v1:0",
],
)
diff --git a/tests/local_testing/test_streaming.py b/tests/local_testing/test_streaming.py
index bc3c34b1a5d..7fe42ed5461 100644
--- a/tests/local_testing/test_streaming.py
+++ b/tests/local_testing/test_streaming.py
@@ -1270,7 +1270,7 @@ def test_bedrock_claude_3_streaming():
@pytest.mark.parametrize(
"model",
[
- "claude-4-sonnet-20250514",
+ "claude-haiku-4-5-20251001",
"cohere.command-r-plus-v1:0", # bedrock
"gpt-3.5-turbo",
],
@@ -2696,7 +2696,7 @@ def test_completion_claude_3_function_call_with_streaming():
try:
# test without max tokens
response = completion(
- model="claude-4-sonnet-20250514",
+ model="claude-haiku-4-5-20251001",
messages=messages,
tools=tools,
tool_choice="required",