mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
(feat) router - add model_group_alias_map
This commit is contained in:
parent
9573123e2b
commit
ee70c4e822
3 changed files with 57 additions and 1 deletions
|
@ -1101,6 +1101,11 @@ class Router:
|
|||
return deployment
|
||||
raise ValueError(f"LiteLLM Router: Trying to call specific deployment, but Model:{model} does not exist in Model List: {self.model_list}")
|
||||
|
||||
# check if aliases set on litellm model alias map
|
||||
if model in litellm.model_group_alias_map:
|
||||
self.print_verbose(f"Using a model alias. Got Request for {model}, sending requests to {litellm.model_group_alias_map.get(model)}")
|
||||
model = litellm.model_group_alias_map.get(model)
|
||||
|
||||
## get healthy deployments
|
||||
### get all deployments
|
||||
### filter out the deployments currently cooling down
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue