The Minimax usage panel only rendered one model row. The primary `general` model meters quota purely via `current_interval_remaining_percent` (its `current_interval_total_count` is 0), so the count-based `total > 0` visibility filter dropped it entirely. The percent was also derived from count fields rather than the authoritative `*_remaining_percent` field. fetchMinimaxUsage now builds windows via a helper that prefers `*_remaining_percent` (count-based fallback when absent) and skips a window only when no quota signal exists. Each model's separate weekly quota window is now surfaced as its own indicator alongside the interval window. Verified against the live coding_plan/remains endpoint: 2 models (general, video) now produce 4 windows (interval + weekly each) instead of 1. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
614 B
614 B
@runfusion/fusion
| @runfusion/fusion |
|---|
| patch |
Fix missing model rows in the Minimax provider usage panel. The primary general model meters quota purely via current_interval_remaining_percent (its count fields are 0), so the previous count-based visibility filter dropped it entirely.
Minimax usage now prefers the authoritative *_remaining_percent field (with a count-based fallback) and renders a window only when a model exposes any quota signal. Each model's separate weekly quota window (current_weekly_remaining_percent, weekly_* timing) is now surfaced as its own indicator alongside the interval window.