mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
changed 429 failover from 3 consecutive to 2 for OAuth users (#1579)
This commit is contained in:
@@ -97,7 +97,7 @@ export async function retryWithBackoff<T>(
|
||||
if (attempt >= maxAttempts || !shouldRetry(error as Error)) {
|
||||
// If we have persistent 429s and a fallback callback for OAuth
|
||||
if (
|
||||
consecutive429Count >= 3 &&
|
||||
consecutive429Count >= 2 &&
|
||||
onPersistent429 &&
|
||||
(authType === AuthType.LOGIN_WITH_GOOGLE_PERSONAL ||
|
||||
authType === AuthType.LOGIN_WITH_GOOGLE_ENTERPRISE)
|
||||
|
||||
Reference in New Issue
Block a user