From b3fdfe9eaaf10ef2749eab35cd785451bb1b4998 Mon Sep 17 00:00:00 2001 From: Ambuj Upadhyay <34904987+lets-order-some-fries@users.noreply.github.com> Date: Thu, 13 Aug 2026 21:45:46 +0530 Subject: [PATCH] chore: drop explanatory source comment per repo comment policy Rationale lives in the PR body and the regression tests. Co-Authored-By: Claude Fable 5 --- litellm/litellm_core_utils/streaming_handler.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/litellm/litellm_core_utils/streaming_handler.py b/litellm/litellm_core_utils/streaming_handler.py index 590043b2aa8..b1a37f6435d 100644 --- a/litellm/litellm_core_utils/streaming_handler.py +++ b/litellm/litellm_core_utils/streaming_handler.py @@ -1373,13 +1373,6 @@ class CustomStreamWrapper: if response_obj["usage"] is not None: if isinstance(response_obj["usage"], dict): - # Pass the full dict through: rebuilding from only - # prompt/completion/total tokens drops - # prompt_tokens_details (cached_tokens), - # completion_tokens_details (reasoning_tokens) and cache - # token counts that the Usage/BaseModel arms below - # preserve. Usage.__init__ coerces nested detail dicts - # into their wrapper types and tolerates extra keys. setattr( model_response, "usage",