test_service_unavailable_fallbacks

This commit is contained in:
Ishaan Jaffer 2025-09-27 11:41:08 -07:00
parent 5e2479d7a3
commit c99c9ad87d

View file

@ -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])