Skip to content

fix(streaming): use provider-reported usage cost for OpenRouter streams - #32255

Merged
mateo-berri merged 3 commits into
litellm_internal_stagingfrom
litellm_fix_openrouter_streaming_usage_cost
Jul 16, 2026
Merged

fix(streaming): use provider-reported usage cost for OpenRouter streams#32255
mateo-berri merged 3 commits into
litellm_internal_stagingfrom
litellm_fix_openrouter_streaming_usage_cost

fix(streaming): preserve provider cost when usage chunk is a dict

214130e
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch succeeded Jul 7, 2026 in 0s

100.00% of diff hit (target 62.12%)

View this Pull Request on Codecov

100.00% of diff hit (target 62.12%)