proxy test all-tea-models

This commit is contained in:
Ishaan Jaff 2024-04-02 20:50:47 -07:00
parent d7601a4844
commit 1aeccf3f0a

View file

@ -639,9 +639,10 @@ async def user_api_key_auth(
pass pass
elif ( elif (
isinstance(valid_token.models, list) isinstance(valid_token.models, list)
and "all-proxy-models" in valid_token.models and "all-team-models" in valid_token.models
): ):
# Admin UI - Special alias to allow `all_models` # Do not do any validation at this step
# the validation will occur when checking the team has access to this model
pass pass
else: else:
try: try: