Align usage dashboard with CCSwitch

Filter request logs to model API calls and add request, provider, model, and settings tabs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Opus 5 committed 2026-10-19 19:33:51 +08:00
1 parent f729910082
commit 272f604274
8 files changed
+444 -64

No files matched your search

+1
View File
@@ -34,6 +34,7 @@ func (s *Server) handleMessages(w http.ResponseWriter, r *http.Request) {
rec := recordFrom(r)
rec.update(func(e *LogEntry) {
e.Provider = provider.Name
e.Model = model
e.InputTokens = anthropic.EstimateTokens(&req)
})