mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
(test) fix test_model_group_aliases
This commit is contained in:
parent
fa70b1f85b
commit
7ddc0dad24
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,6 @@ def test_model_group_aliases():
|
|||
router = Router(
|
||||
model_list=model_list,
|
||||
)
|
||||
litellm.model_group_alias_map = {}
|
||||
for _ in range(20):
|
||||
selected_model = router.get_available_deployment("gpt-4")
|
||||
print("\n selected model", selected_model)
|
||||
|
@ -331,6 +330,7 @@ def test_model_group_aliases():
|
|||
pytest.fail(f"Selected model {selected_model_name} is not gpt-3.5-turbo")
|
||||
|
||||
router.reset()
|
||||
litellm.model_group_alias_map = {}
|
||||
except Exception as e:
|
||||
traceback.print_exc()
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue