From c99c9ad87df8ad9dd31cdfb81ac6077804bda657 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Sat, 27 Sep 2025 11:41:08 -0700 Subject: [PATCH] test_service_unavailable_fallbacks --- tests/local_testing/test_router_fallbacks.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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])