feat: optimize Antigravity AI Credits scheduling - use AICredits rate limit key

Replace sync.Map + per-model runtime state with a single AICredits key in
model_rate_limits. Rate-limited accounts with available credits are now
scheduled directly and credits injected without a 429 round trip.

- Scheduler: rate-limited + overages + credits available = allow scheduling
- Forwarding: inject credits proactively when model rate limited
- Storage: credits exhaustion stored as model_rate_limits["AICredits"]
- Frontend: show credits_active (yellow ⚡) vs credits_exhausted states
- Bump version to 0.1.100.4
This commit is contained in:
erio committed 2026-03-16 03:51:34 +08:00
1 parent 0158cb8aa8
commit 897c93528d
11 files changed
+239 -246

No files matched your search

+1 -1
View File
@@ -1 +1 @@
0.1.100.3
0.1.100.4