mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-06 16:04:24 +00:00
The usage refresh key has no Gemini quota input. When a Gemini account's tier changes, as when the token refresher re-detects the Google One tier, auto refresh replaces the row but the key is unchanged: the tier badge shows the new tier, the quota bars keep the old limits until the account is used, Refresh is clicked or the page is reloaded. An API key account moved from a third-party base URL to the official one gets no bars for the same reason. The Gemini key now carries credentials.oauth_type, project_id, tier_id and base_url, the credentials geminiQuotaTierKeyForAccount depends on. Gemini usage is read from local usage logs, so the refetch sends nothing upstream, and a token refresh that leaves these four fields alone keeps the key.