forked from phoenix/litellm-mirror
(fix) setting valid_models per team
This commit is contained in:
parent
5ac5f6c53c
commit
7648aecf87
1 changed files with 1 additions and 1 deletions
|
@ -1290,7 +1290,7 @@ def _is_valid_team_configs(team_id=None, team_config=None, request_data=None):
|
|||
return
|
||||
# check if valid model called for team
|
||||
if "models" in team_config:
|
||||
valid_models = team_config["models"]
|
||||
valid_models = team_config.pop("models")
|
||||
model_in_request = request_data["model"]
|
||||
if model_in_request not in valid_models:
|
||||
raise Exception(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue