mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-06 02:09:04 +00:00
* fix(cost): fold response_cost_calculator into completion_cost completion_cost now returns 0 for a cache hit and bills the cost an upstream stated in the llm_provider-x-litellm-response-cost header, unless the caller passed its own prices. response_cost_calculator keeps its public signature and forwards to completion_cost, so logged spend is unchanged while direct completion_cost callers now agree with it. Also makes the two entry.py helpers with no outside callers private, drops the underscore aliases on entry.py imports, and types region_name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cost): let requested_model_info_override win over the upstream cost header Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(nadir): expect completion_cost to bill the reported cost Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_nadir.py | ||