mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
test_service_unavailable_fallbacks
This commit is contained in:
parent
5e2479d7a3
commit
c99c9ad87d
1 changed files with 3 additions and 5 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue