mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-05 16:07:33 +00:00
fetchAvailableModels reports one remainingFraction per model, whichever window is tighter at the moment, so the 5-hour and the weekly limit could not be told apart: a used-up weekly limit showed as "5h 99%" with a reset days away. The quota fetcher now also calls v1internal:retrieveUserQuotaSummary, which reports every window of every group (Gemini models; Claude and GPT models), and returns it as antigravity_quota_groups. The account usage cell shows G·5h / G·weekly and C·5h / C·weekly from it, and keeps the per-model bars when the summary is missing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>