feat(antigravity): add AI credits quota fallback

This commit is contained in:
xixiwenxuanhe
2026-03-30 23:58:12 +08:00
parent 6570692291
commit 88dd9c715d
6 changed files with 670 additions and 51 deletions
+4
View File
@@ -194,6 +194,10 @@ type QuotaExceeded struct {
// SwitchPreviewModel indicates whether to automatically switch to a preview model when a quota is exceeded.
SwitchPreviewModel bool `yaml:"switch-preview-model" json:"switch-preview-model"`
// AntigravityCredits indicates whether to retry Antigravity quota_exhausted 429s once
// on the same credential with enabledCreditTypes=["GOOGLE_ONE_AI"].
AntigravityCredits bool `yaml:"antigravity-credits" json:"antigravity-credits"`
}
// RoutingConfig configures how credentials are selected for requests.