Rinai-R/dsh-omp-retry ↗★ 0

dsh-omp-retry

OMP-style HTTP 429 retry policy for the DeepSeek Harness 适合频繁遇到API限流(429错误)需要自动延迟重试的用户。

패키지
dsh-omp-retry
호환성
미검증
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 10. 22.

같은 패키지 이름의 다른 저장소

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Rinai-R/dsh-omp-retry

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.