From 476566d260d2b91baac32353f314326baae8bfc5 Mon Sep 17 00:00:00 2001 From: KirschQAQ <114209152+KirschBluteX@users.noreply.github.com> Date: Mon, 17 Aug 2026 20:31:48 -0700 Subject: [PATCH] fix(proxy): avoid final binding inside summary loop --- litellm/proxy/spend_tracking/spend_management_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/spend_tracking/spend_management_endpoints.py b/litellm/proxy/spend_tracking/spend_management_endpoints.py index 95210193387..24f48f885f4 100644 --- a/litellm/proxy/spend_tracking/spend_management_endpoints.py +++ b/litellm/proxy/spend_tracking/spend_management_endpoints.py @@ -3207,7 +3207,7 @@ async def view_spend_logs( ) return_list: Final[list[dict[str, object]]] = [] # mutable-ok: append the ordered legacy response rows for spend_date in sorted(daily_spend): - day_result: Final[dict[str, object]] = { # mutable-ok: add per-key totals before emitting the row + day_result: dict[str, object] = { # mutable-ok: add per-key totals before emitting the row "users": daily_user_spend[spend_date], "models": daily_model_spend[spend_date], "spend": daily_spend[spend_date],