mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
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:
parent
89648e4e62
commit
b3fdfe9eaa
1 changed files with 0 additions and 7 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue