support all-models-on-proxy

This commit is contained in:
Ishaan Jaff 2024-04-02 15:52:54 -07:00
parent dfc020ca5f
commit b83c452ddd
4 changed files with 13 additions and 13 deletions

View file

@ -639,7 +639,7 @@ async def user_api_key_auth(
pass
elif (
isinstance(valid_token.models, list)
and "all-models" in valid_token.models
and "all-models-on-proxy" in valid_token.models
):
# Admin UI - Special alias to allow `all_models`
pass