fix error msg

This commit is contained in:
Ishaan Jaff 2024-11-25 14:32:26 -08:00
parent ba4e1a7a0d
commit 76dec9a0e8

View file

@ -873,7 +873,7 @@ async def can_key_call_model(
is False is False
): ):
raise ValueError( raise ValueError(
f"API Key not allowed to access model. List of allowed models={filtered_models}. Tried to access {model}" f"API Key not allowed to access model. This token can only access models={valid_token.models}. Tried to access {model}"
) )
valid_token.models = filtered_models valid_token.models = filtered_models