forked from phoenix/litellm-mirror
fix model auth checks
This commit is contained in:
parent
e9cdbff75a
commit
ba4e1a7a0d
1 changed files with 2 additions and 0 deletions
|
@ -893,6 +893,8 @@ def _model_is_within_list_of_allowed_models(
|
||||||
return True
|
return True
|
||||||
if "all-proxy-models" in allowed_models:
|
if "all-proxy-models" in allowed_models:
|
||||||
return True
|
return True
|
||||||
|
if model in allowed_models:
|
||||||
|
return True
|
||||||
if model_matches_patterns(model=model, allowed_models=allowed_models) is True:
|
if model_matches_patterns(model=model, allowed_models=allowed_models) is True:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue