Files
grok2api/backend/internal
li 56fa0a968e fix: prevent Basic/Auto accounts from being promoted to Super when rate-limit endpoints are unavailable
When both auto and fast mode rate-limit endpoints fail but weekly
credits succeed, resolveWebTierFromQuota unconditionally returned
WebTierSuper for any non-Heavy account. This incorrectly elevated
free Basic accounts to Super tier, granting access to premium models
(expert, auto) they should not have.

Preserve the stored tier for already-confirmed Heavy/Super accounts,
and keep the current tier (Basic or Auto) unchanged for unconfirmed
accounts — weekly credits alone cannot prove a paid subscription.
2026-07-14 15:48:20 +08:00
..