mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
feat(core, cli): add rate limit throttling retry with countdown UI
- Refactor retry utility to support GLM rate limit errors (code 1302) and TPM throttling - Add getRateLimitRetryInfo() for unified rate-limit error detection - Add exponential backoff for non-TPM rate limit errors - Extend StreamEventType.RETRY with RetryInfo payload for UI feedback - Add RetryCountdownMessage component for visual retry countdown - Update useGeminiStream hook to handle retry events with countdown timer - Add i18n support for rate limit messages (en/zh)
This commit is contained in:
parent
2394d732c3
commit
3fb641ca1a
12 changed files with 796 additions and 42 deletions
|
|
@ -1198,4 +1198,11 @@ export default {
|
|||
'正在浏览器中打开扩展页面:{{url}}',
|
||||
'Failed to open browser. Check out the extensions gallery at {{url}}':
|
||||
'打开浏览器失败。请访问扩展市场:{{url}}',
|
||||
|
||||
// ============================================================================
|
||||
// Retry / Rate Limit
|
||||
// ============================================================================
|
||||
'Rate limit error: {{reason}}': '触发限流:{{reason}}',
|
||||
'Retrying in {{seconds}} seconds… (attempt {{attempt}}/{{maxRetries}})':
|
||||
'将于 {{seconds}} 秒后重试…(第 {{attempt}}/{{maxRetries}} 次)',
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue