mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-26 22:30:11 +00:00
* fix(cost_calculator): apply the anthropic fast multiplier to cache cost breakdown Anthropic fast mode billed totals at provider_specific_entry.fast while the spend log cost_breakdown kept cache_read_cost and cache_creation_cost at 1x. Move the speed lookup into a shared helper, multiply it into the billed token rates used by get_token_type_cost_breakdown, and have the Anthropic calculator read the same helper so totals and breakdown cannot drift apart. Production change carried from #44074. Co-authored-by: kerry <kerry@berri.ai> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(cost_calculator): narrow the provider entry instead of defaulting to a dict literal Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: kerry <kerry@berri.ai> |
||
|---|---|---|
| .. | ||
| cases | ||
| stream_parity | ||
| assertions.py | ||
| catalog.py | ||
| conftest.py | ||
| cost_map.py | ||
| cost_tracking_case.py | ||
| test_batch_realtime_cost.py | ||
| test_cost_tracking.py | ||