dsh-reconnect
提供指数退避的模型请求安全重试机制 适合需要应对网络波动、自动重试失败模型请求的任务。
同名套件的其他儲存庫
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mrbeandev/dsh-reconnect說明文件
閱讀完整 README ↗Configuration
- insert:
- id: reconnect
name: dsh-reconnect
config:
maxDelayMs: 15000
retryQuota: false
retryUnknown: true
unknownMaxRetries: 3
| Setting | Type | Default | Description |
|---|---|---|---|
maxDelayMs | integer | 60000 | Maximum local exponential-backoff delay in milliseconds |
retryQuota | boolean | false | Retry quota or exhausted-balance errors indefinitely |
retryUnknown | boolean | true | Retry unknown error codes indefinitely |
unknownMaxRetries | integer | 3 | Consecutive 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.