litellm/ui
Mubashir Osmani 1c89dec3fe feat(ui): surface provider prompt-cache tokens in Cache Analytics
The Caching page's cache-hit and cached-token views only reflect LiteLLM's
own response cache (LiteLLM_SpendLogs.cache_hit). Provider prompt caching
(e.g. Anthropic cache_read_input_tokens) never sets that flag, so those
tokens were invisible and the overall numbers did not add up for
anthropic_messages traffic.

Add a /global/activity/cache_hits/prompt_caching endpoint that reads
cache_read_input_tokens / cache_creation_input_tokens from the daily spend
rollup (the only place they are persisted) and a Provider Prompt Caching
section on the dashboard with read/creation token stats and a per-model
chart, kept separate from the response-cache metrics.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-17 22:59:41 +00:00
..
litellm-dashboard feat(ui): surface provider prompt-cache tokens in Cache Analytics 2026-07-17 22:59:41 +00:00
Dockerfile feat: add componentized proxy deployment with gateway, backend, ui, and migrations (#27557) 2026-05-16 09:25:17 -07:00
nginx.conf feat: add componentized proxy deployment with gateway, backend, ui, and migrations (#27557) 2026-05-16 09:25:17 -07:00