Fix Combo
This commit is contained in:
@@ -76,7 +76,6 @@ export const PROVIDERS = {
|
||||
baseUrls: [
|
||||
"https://daily-cloudcode-pa.googleapis.com",
|
||||
"https://cloudcode-pa.googleapis.com",
|
||||
"https://daily-cloudcode-pa.sandbox.googleapis.com"
|
||||
],
|
||||
format: "antigravity",
|
||||
headers: {
|
||||
@@ -189,21 +188,21 @@ export const DEFAULT_MIN_TOKENS = 32000;
|
||||
// Exponential backoff config for rate limits (like CLIProxyAPI)
|
||||
export const BACKOFF_CONFIG = {
|
||||
base: 1000, // 1 second base
|
||||
max: 30 * 60 * 1000, // 30 minutes max
|
||||
max: 2 * 60 * 1000, // 2 minutes max
|
||||
maxLevel: 15 // Cap backoff level
|
||||
};
|
||||
|
||||
// Error-based cooldown times (aligned with CLIProxyAPI)
|
||||
export const COOLDOWN_MS = {
|
||||
unauthorized: 30 * 60 * 1000, // 401 → 30 min
|
||||
paymentRequired: 30 * 60 * 1000, // 402/403 → 30 min
|
||||
notFound: 12 * 60 * 60 * 1000, // 404 → 12 hours
|
||||
unauthorized: 2 * 60 * 1000, // 401 → 30 min
|
||||
paymentRequired: 2 * 60 * 1000, // 402/403 → 30 min
|
||||
notFound: 2 * 60 * 60 * 1000, // 404 → 12 hours
|
||||
transient: 30 * 1000, // 408/500/502/503/504 → 1 min
|
||||
requestNotAllowed: 5 * 1000, // "Request not allowed" → 5 sec
|
||||
// Legacy aliases for backward compatibility
|
||||
rateLimit: 15 * 60 * 1000,
|
||||
serviceUnavailable: 60 * 1000,
|
||||
authExpired: 30 * 60 * 1000
|
||||
rateLimit: 2 * 60 * 1000,
|
||||
serviceUnavailable: 2 * 1000,
|
||||
authExpired: 2 * 60 * 1000
|
||||
};
|
||||
|
||||
// Skip patterns - requests containing these texts will bypass provider
|
||||
|
||||
Reference in New Issue
Block a user