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 <noreply@anthropic.com>
This commit is contained in:
Ambuj Upadhyay 2026-08-13 21:45:46 +05:30
parent 89648e4e62
commit b3fdfe9eaa

View file

@ -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",