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
replace retired claude-3-haiku-20240307 with claude-haiku-4-5-20251001 in local_testing part1 and router fallback tests
Ryan Crabbeeee51a99ad92
diff --git a/tests/local_testing/test_batch_completions.py b/tests/local_testing/test_batch_completions.pyindex 2125a998f84..95bfe5e6e2b 100644--- a/tests/local_testing/test_batch_completions.py+++ b/tests/local_testing/test_batch_completions.py@@ -72,7 +72,7 @@ def test_batch_completions_models():def test_batch_completion_models_all_responses():try:responses = batch_completion_models_all_responses(- models=["gemini/gemini-2.5-flash-lite", "claude-3-haiku-20240307"],+ models=["gemini/gemini-2.5-flash-lite", "claude-haiku-4-5-20251001"],messages=[{"role": "user", "content": "write a poem"}],max_tokens=10,)diff --git a/tests/local_testing/test_function_call_parsing.py b/tests/local_testing/test_function_call_parsing.pyindex 0351ce70572..f9582fcc574 100644--- a/tests/local_testing/test_function_call_parsing.py+++ b/tests/local_testing/test_function_call_parsing.py@@ -142,7 +142,7 @@ def trade(model_name: str) -> List[Trade]: # type: ignore@pytest.mark.parametrize(- "model", ["claude-3-haiku-20240307", "anthropic.claude-3-haiku-20240307-v1:0"]+ "model", ["claude-haiku-4-5-20251001", "anthropic.claude-3-haiku-20240307-v1:0"])@pytest.mark.flaky(retries=6, delay=10)def test_function_call_parsing(model):diff --git a/tests/local_testing/test_function_calling.py b/tests/local_testing/test_function_calling.pyindex 13adb163d5f..b52805c0664 100644--- a/tests/local_testing/test_function_calling.py+++ b/tests/local_testing/test_function_calling.py@@ -47,7 +47,7 @@ def get_current_weather(location, unit="fahrenheit"):["gpt-3.5-turbo-1106","mistral/mistral-large-latest",- "claude-3-haiku-20240307",+ "claude-haiku-4-5-20251001","gemini/gemini-2.5-flash-lite","anthropic.claude-3-sonnet-20240229-v1:0",],@@ -275,7 +275,7 @@ from litellm.types.utils import ChatCompletionMessageToolCall, Function, Message"anthropic.claude-3-sonnet-20240229-v1:0","bedrock",),- ("claude-3-haiku-20240307", "anthropic"),+ ("claude-haiku-4-5-20251001", "anthropic"),],)@pytest.mark.parametrize(diff --git a/tests/local_testing/test_router_fallbacks.py b/tests/local_testing/test_router_fallbacks.pyindex 383ad104577..a14e53adbc4 100644--- a/tests/local_testing/test_router_fallbacks.py+++ b/tests/local_testing/test_router_fallbacks.py@@ -1509,7 +1509,7 @@ def test_router_fallbacks_with_wildcard_model_name():{"model_name": "claude-3-haiku","litellm_params": {- "model": "claude-3-haiku-20240307",+ "model": "claude-haiku-4-5-20251001","api_key": os.getenv("ANTHROPIC_API_KEY"),"mock_response": "Hi this is claude!",},@@ -1555,7 +1555,7 @@ def test_fallbacks_with_different_messages():{"model_name": "claude-3-haiku","litellm_params": {- "model": "claude-3-haiku-20240307",+ "model": "claude-haiku-4-5-20251001","api_key": os.getenv("ANTHROPIC_API_KEY"),},},