From 64d88f7d5333393aa8f835b46953cc4fdfe19299 Mon Sep 17 00:00:00 2001 From: yuneng-jiang Date: Tue, 24 Feb 2026 19:22:45 -0800 Subject: [PATCH] address greptile review feedback (greploop iteration 2) Co-Authored-By: Claude Opus 4.6 --- litellm/proxy/hooks/proxy_track_cost_callback.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/hooks/proxy_track_cost_callback.py b/litellm/proxy/hooks/proxy_track_cost_callback.py index 4941fcdd5dd..214c92b6470 100644 --- a/litellm/proxy/hooks/proxy_track_cost_callback.py +++ b/litellm/proxy/hooks/proxy_track_cost_callback.py @@ -263,7 +263,7 @@ class _ProxyDBLogger(CustomLogger): async def _enrich_failure_metadata_with_key_info(metadata: dict) -> dict: """ Enriches failure spend log metadata by looking up the key object (and team object) - from cache/DB when key fields are missing. + from cache when key fields are missing. This handles two scenarios: 1. Auth errors (401): UserAPIKeyAuth is created with only api_key set, all other