litellm/backend
Tin Chi Lo 2e2b2624ed feat(spend): add a per-session auto-router benchmarks rollup
Fold each auto-routed turn into a per-(api_key, session, auto-router) row when it
happens, and serve the benchmarks dashboard by summing those rows. Nothing in the
feature reads LiteLLM_SpendLogs.

The row carries what each tier the session used left in the prompt cache, so a turn's
bucket is a question about one model's own record and the upsert answers it against the
row it is already writing. Absent from that record means a first visit; present means
warm or expired, on one comparison of the idle gap against the TTL the entry was written
with. Nothing is read before the write, so there is no state to load or validate, and the
statement is atomic.
2026-08-04 18:50:07 -07:00
..
routes feat(spend): add a per-session auto-router benchmarks rollup 2026-08-04 18:50:07 -07:00
Dockerfile fix(docker): honor USE_DDTRACE in the componentized gateway and backend images (#35490) 2026-08-01 14:12:59 -07:00
main.py chore(oss): litellm oss staging 120626 (#30292) 2026-06-12 09:49:25 -07:00