status page usage
This commit is contained in:
@@ -232,6 +232,9 @@ func codexRateLimit(r codex.RateLimitSnapshot) map[string]any {
|
||||
if w.ResetsAt != 0 {
|
||||
window["resetsAt"] = w.ResetsAt
|
||||
}
|
||||
if w.WindowDurationMins != 0 {
|
||||
window["windowMins"] = w.WindowDurationMins
|
||||
}
|
||||
windows[name] = window
|
||||
}
|
||||
info := map[string]any{"status": status, "unifiedWindows": windows, "planType": r.PlanType}
|
||||
|
||||
Reference in New Issue
Block a user