add "openai/*" in allowed models check

This commit is contained in:
Ishaan Jaff 2024-11-25 15:50:58 -08:00
parent 632283a371
commit a4491658e3

View file

@ -908,6 +908,9 @@ def _model_is_within_list_of_allowed_models(
return True
if "all-proxy-models" in allowed_models:
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:
return True
if _model_matches_patterns(model=model, allowed_models=allowed_models) is True: