forked from phoenix/litellm-mirror
add "openai/*" in allowed models check
This commit is contained in:
parent
632283a371
commit
a4491658e3
1 changed files with 3 additions and 0 deletions
|
@ -908,6 +908,9 @@ 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
|
||||||
|
# Note: This is here to maintain backwards compatibility. This Used to be in our code and removing could impact existing customer code
|
||||||
|
if "openai/*" in allowed_models:
|
||||||
|
return True
|
||||||
if model in allowed_models:
|
if model in allowed_models:
|
||||||
return True
|
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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue