mrbeandev/dsh-reconnect ↗★ 0

dsh-reconnect

提供指数退避的模型请求安全重试机制 适合需要应对网络波动、自动重试失败模型请求的任务。

包名
dsh-reconnect
兼容性
待验证
Harness 依赖范围
*
版本
2.0.0
许可证
MIT
最近更新
2026年9月20日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mrbeandev/dsh-reconnect

Configuration

- insert:
    - id: reconnect
      name: dsh-reconnect
      config:
        maxDelayMs: 15000
        retryQuota: false
        retryUnknown: true
        unknownMaxRetries: 3
SettingTypeDefaultDescription
maxDelayMsinteger60000Maximum local exponential-backoff delay in milliseconds
retryQuotabooleanfalseRetry quota or exhausted-balance errors indefinitely
retryUnknownbooleantrueRetry unknown error codes indefinitely
unknownMaxRetriesinteger3Consecutive unknown-error limit when retryUnknown is disabled

maxDelayMs limits only the local exponential delay. It does not cap a Provider Retry-After value or the total retry duration.