Yaing-Yan/dsh-better-retry0

dsh-better-retry

支持指数退避与自定义重试额度的 DSH 全错误码模型请求重试插件

AI 分析

核心用途是强力应对各种 API 报错。适合网络极不稳定或频繁遭遇限频的用户,支持在通用设置中通过滑块调节重试次数(0-64次),并对任何错误码均执行指数退避重试。

包名
dsh-better-retry
版本
1.0.0
许可证
MIT
最近更新
2026年8月21日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Yaing-Yan/dsh-better-retry

🎚 Configuration / 配置

WhereWhatDefaultRange
Settings → General → 失败重试次数dsh-better-retry.maxRetries80–64
~/.dsh/settings.yamldsh-better-retry:maxRetriessame, hand-editable80–64
  • 0 disables the any-code retry entirely (stock policy still applies).
  • Changes apply to the next failure; an in-flight retry chain keeps the budget it started with (the chain's policyKey embeds the budget).
  • Backoff: 500 ms initial, doubling, 10 s cap, ±10% jitter; a provider Retry-After within the cap overrides the computed delay, above the cap the retry is skipped.