mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
The LLM classifier's cost was recorded on the routing decision but never reached any savings surface: per-request autorouter_savings stayed gross and the session rollup recorded only the served request's spend, so /auto_router/benchmarks overstated savings and understated routed spend. Net the classifier cost into the savings figure at its one computation owner and fold it into the rollup turn's spend, keeping baseline_spend = spend + saved_spend. The response header's numeric guard now shares the same reader. Fixes #38816 |
||
|---|---|---|
| .. | ||
| test_budget_reservation_redis_failure.py | ||
| test_cloudzero_endpoints.py | ||
| test_compression_savings.py | ||
| test_ptu_feature_flag.py | ||
| test_ptu_flat_cost_rollup.py | ||
| test_savings.py | ||
| test_spend_log_error_logger.py | ||
| test_spend_management_endpoints.py | ||
| test_spend_query_optimization.py | ||
| test_spend_tracking_utils.py | ||