fix model auth checks

This commit is contained in:
Ishaan Jaff 2024-11-25 14:02:31 -08:00
parent e9cdbff75a
commit ba4e1a7a0d

View file

@ -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