From d554eef97feffeec71d80b43bf224f3d7de8ed14 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 16 Jul 2026 10:12:48 +0100 Subject: [PATCH] Update usage.py --- application/usage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/usage.py b/application/usage.py index 11842ffc..a1d31d08 100644 --- a/application/usage.py +++ b/application/usage.py @@ -171,6 +171,8 @@ def _prefer_provider_usage(llm: Any, call_usage: Dict[str, int]) -> Dict[str, in try: llm._last_usage_claimed = True except AttributeError: + # Slotted/immutable LLM stand-ins can't record the claim; this + # call still gets the provider counts, which is correct for them. pass return { "prompt_tokens": int(prompt or 0),