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
test - handle eol model claude-2, use claude-2.1 instead
Ishaan Jaff914cec3ab5e0
diff --git a/tests/local_testing/test_router_fallbacks.py b/tests/local_testing/test_router_fallbacks.pyindex cad640a54ec..7f4d318bf17 100644--- a/tests/local_testing/test_router_fallbacks.py+++ b/tests/local_testing/test_router_fallbacks.py@@ -1138,9 +1138,9 @@ async def test_router_content_policy_fallbacks(router = Router(model_list=[{- "model_name": "claude-2",+ "model_name": "claude-2.1","litellm_params": {- "model": "claude-2",+ "model": "claude-2.1","api_key": "","mock_response": mock_response,},@@ -1164,7 +1164,7 @@ async def test_router_content_policy_fallbacks({"model_name": "my-general-model","litellm_params": {- "model": "claude-2",+ "model": "claude-2.1","api_key": "","mock_response": Exception("Should not have called this."),},@@ -1172,14 +1172,14 @@ async def test_router_content_policy_fallbacks({"model_name": "my-context-window-model","litellm_params": {- "model": "claude-2",+ "model": "claude-2.1","api_key": "","mock_response": Exception("Should not have called this."),},},],content_policy_fallbacks=(- [{"claude-2": ["my-fallback-model"]}]+ [{"claude-2.1": ["my-fallback-model"]}]if fallback_type == "model-specific"else None),@@ -1190,12 +1190,12 @@ async def test_router_content_policy_fallbacks(if sync_mode is True:response = router.completion(- model="claude-2",+ model="claude-2.1",messages=[{"role": "user", "content": "Hey, how's it going?"}],)else:response = await router.acompletion(- model="claude-2",+ model="claude-2.1",messages=[{"role": "user", "content": "Hey, how's it going?"}],)diff --git a/tests/local_testing/test_streaming.py b/tests/local_testing/test_streaming.pyindex fcdc6b60d4f..7b3dbd8d63d 100644--- a/tests/local_testing/test_streaming.py+++ b/tests/local_testing/test_streaming.py@@ -718,7 +718,7 @@ async def test_acompletion_claude_2_stream():try:litellm.set_verbose = Trueresponse = await litellm.acompletion(- model="claude-2",+ model="claude-2.1",messages=[{"role": "user", "content": "hello from litellm"}],stream=True,)