• erio's avatar
    fix(antigravity): fetch default mapping from API and sync Redis on rate limit · 2656320d
    erio authored
    1. Frontend: replace hardcoded antigravityDefaultMappings with async
       fetch from GET /admin/accounts/antigravity/default-model-mapping,
       eliminating the duplicate data source that caused frontend/backend
       mapping inconsistency.
    
    2. Backend: convert handleSmartRetry and antigravityRetryLoop from
       standalone functions to AntigravityGatewayService methods, enabling
       Redis cache sync (updateAccountModelRateLimitInCache) after both
       rate-limit write paths — long-delay branch and retry-exhausted branch.
    2656320d
accounts.ts 11 KB