(test) unset model_group_alias_map after test

This commit is contained in:
ishaan-jaff 2023-12-06 20:35:14 -08:00
parent 7b389d10ca
commit fa70b1f85b
2 changed files with 2 additions and 2 deletions

View file

@ -944,7 +944,7 @@ async def chat_completion(request: Request, model: Optional[str] = None, user_ap
response = await llm_router.acompletion(**data)
elif llm_router is not None and data["model"] in llm_router.deployment_names: # model in router deployments, calling a specific deployment on the router
response = await llm_router.acompletion(**data, specific_deployment = True)
elif llm_router is not None and data["model"] in litellm.model_group_alias_map: # model set in model_group_alias_map
elif llm_router is not None and litellm.model_group_alias_map is not None and data["model"] in litellm.model_group_alias_map: # model set in model_group_alias_map
response = await llm_router.acompletion(**data)
else: # router is not set
response = await litellm.acompletion(**data)