dsh-omp-retry
HTTP 429错误重试策略 适合频繁遇到API限流(429错误)需要自动延迟重试的用户。
同名套件的其他儲存庫
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Rinai-R/dsh-omp-retry說明文件
閱讀完整 README ↗Configuration
The defaults are maxRetries: 10, floorMs: 30000, and maxDelayMs: 300000.
Override the row in the profile's cordis.patch.yml:
- id: omp-rate-limit-retry
config:
maxRetries: 10
floorMs: 30000
maxDelayMs: 300000
maxRetries: 0 disables the plugin. The plugin's budget is independent of the
provider's retryPolicy.maxRetries: a provider left at the default five still
gets ten rate-limit attempts.
For fast non-429 retries, keep the provider policy close to OMP's local backoff:
retryPolicy:
mode: normal
maxRetries: 10
retryableCodes:
- EMPTY_RESPONSE
- RATE_LIMIT
- SERVER
- TIMEOUT
- TRANSPORT
backoff:
initialDelayMs: 500
maxDelayMs: 8000
jitterRatio: 0.25
Keeping RATE_LIMIT in the list is a fallback for when this bundle is removed;
while the bundle is active it takes 429s first.