Update litellm/proxy/auth/user_api_key_auth.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Harshit Jain 2026-02-11 07:06:18 +05:30 committed by GitHub
parent 06655d0273
commit d825f9b950
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -903,7 +903,7 @@ async def _user_api_key_auth_builder( # noqa: PLR0915
assert api_key.startswith(
"sk-"
), "LiteLLM Virtual Key expected. Received={}, expected to start with 'sk-'.".format(
f"{api_key[:3]}...{api_key[-4:]}" if len(api_key) > 7 else api_key
f"{api_key[:3]}...{api_key[-4:]}" if len(api_key) > 7 else "***"
) # prevent token hashes from being used
else:
verbose_logger.warning(