QGG4588/dsh-model-failover ↗★ 0

dsh-model-failover

Model failover for DeepSeek Harness with a Web UI seat beside the composer model picker: pick one or more providers, pool = all models inside them; on request failure (RATE_LIMIT/QUOTA/TIMEOUT/...) auto-retry with the next untried model. Runtime tool model_failover (status/set/clear/enable/disable) plus an in-page panel. 适合对API稳定性要求高,需在遇到限流或超时时自动无缝切换模型的用户。

패키지
dsh-model-failover
호환성
미검증
버전
1.1.0
라이선스
MIT
최근 업데이트
2026. 10. 17.

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

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:QGG4588/dsh-model-failover

配置(cordis.patch.yml 行 config,全部有默认值)

键默认说明
enabledtrue总开关
providers[]默认供应商池(按顺序);空 = 用 model_failover set 运行时设置
retryableCodesRATE_LIMIT, QUOTA, ACCOUNT_QUOTA, SERVER, TIMEOUT, TRANSPORT, EMPTY_RESPONSE, NO_ADAPTER触发转移的失败码
stickyfalse转移后粘滞该会话直到 clear;false = 仅当次故障内转移
maxFailoverAttempts0单次故障最多转移几个候选(0 = 整个池子)