mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-08 03:14:09 +00:00
1a08ac6619
When a request arrives without an API key, auth fails and the failure hook triggers spend tracking. _is_master_key was called with api_key=None, causing secrets.compare_digest to raise TypeError. Add a None guard for api_key matching the existing guard for _master_key. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>