Skip to content

Conversation

@bbbugg
Copy link
Member

@bbbugg bbbugg commented Jan 25, 2026

中文:优化了请求重试逻辑,遇到 429 等特定错误码时立即停止重试,以节省资源并加速账号切换。

English: Optimized the request retry logic to immediately halt retries upon encountering specific error codes (like 429) to save resources and accelerate account switching.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the request retry loop to abort further retries immediately when specific HTTP status codes (e.g., 429/503) are encountered, reducing wasted retry work and enabling faster account switching behavior.

Changes:

  • Add a status-code gate in _executeRequestWithRetries to stop retrying early for configured “immediate switch” codes.
  • Emit a dedicated warning log when retries are aborted early due to these codes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bbbugg bbbugg merged commit 6e178ec into main Jan 25, 2026
6 checks passed
@github-actions
Copy link

🎉 此 PR 的修改已在版本 v0.5.1 中发布。
🎉 The changes in this PR have been released in version v0.5.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[反馈]: 错误次数也计入使用次数中

2 participants