mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-16 04:29:31 +00:00
* fix(cost_calculator): price an explicit base_model from its own row when the deployment provider row has no rates
A chatgpt/ deployment with model_info.base_model recorded zero spend because the
base model was looked up under the chatgpt provider, which resolves to the
deliberately unpriced chatgpt/ row. When the deployment provider's row for the
base model declares no rates, price it under the provider of the base model's
own row instead. Deployments whose provider row declares rates are unchanged.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| bridge_cost_parity | ||
| cases | ||
| stream_parity | ||
| assertions.py | ||
| catalog.py | ||
| conftest.py | ||
| cost_map.py | ||
| cost_tracking_case.py | ||
| test_base_model_cross_provider_spend.py | ||
| test_batch_realtime_cost.py | ||
| test_cost_tracking.py | ||