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_service_unavailable_fallbacks

Ishaan Jafferc99c9ad87df8
diff --git a/tests/local_testing/test_router_fallbacks.py b/tests/local_testing/test_router_fallbacks.py
index 2159c77f0d3..5b4e6ab5807 100644
--- a/tests/local_testing/test_router_fallbacks.py
+++ b/tests/local_testing/test_router_fallbacks.py
@@ -989,10 +989,8 @@ async def test_service_unavailable_fallbacks(sync_mode):
{
"model_name": "gpt-3.5-turbo-0125-preview",
"litellm_params": {
- "model": "azure/chatgpt-v-3",
- "api_key": os.getenv("AZURE_API_KEY"),
- "api_version": os.getenv("AZURE_API_VERSION"),
- "api_base": os.getenv("AZURE_API_BASE"),
+ "model": "gpt-4.1-nano",
+ "api_key": os.getenv("OPENAI_API_KEY"),
},
},
],
@@ -1010,7 +1008,7 @@ async def test_service_unavailable_fallbacks(sync_mode):
messages=[{"role": "user", "content": "Hey, how's it going?"}],
)
- assert response.model == "gpt-3.5-turbo-0125"
+ assert "gpt-4.1-nano" in response.model
@pytest.mark.parametrize("sync_mode", [True, False])