summaryrefslogtreecommitdiff
path: root/internal/hexaicli/run.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/hexaicli/run.go')
-rw-r--r--internal/hexaicli/run.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/internal/hexaicli/run.go b/internal/hexaicli/run.go
index 1563f5e..806f824 100644
--- a/internal/hexaicli/run.go
+++ b/internal/hexaicli/run.go
@@ -593,16 +593,8 @@ func summarizeChatRun(ctx context.Context, client llm.Client, model string, msgs
if err == nil {
summary.snapshot = snap
}
- minsWin := summary.snapshot.Window.Minutes()
- if minsWin <= 0 {
- minsWin = 0.001
- }
- if pe, ok := summary.snapshot.Providers[client.Name()]; ok {
- if mc, ok2 := pe.Models[model]; ok2 {
- summary.scopeReq = mc.Reqs
- }
- }
- summary.scopeRPM = float64(summary.scopeReq) / minsWin
+ summary.scopeReq = summary.snapshot.ScopeReqs(client.Name(), model)
+ summary.scopeRPM = summary.snapshot.ScopeRPM(client.Name(), model)
return summary
}