mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-15 22:22:12 +00:00
Add a `request_duration_ms` column to `LiteLLM_SpendLogs` to track request duration. New rows are computed at write time. Legacy rows use a COALESCE fallback in the `/spend/logs/ui` query to compute duration on the fly from `endTime - startTime`. The field is also sortable in the UI endpoint. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>