rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:CarlCN2003/dsh-model-fallback
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
@carl2003/dsh-model-fallback)English | 中文
Primary and multi-level backup model failover router plugin for DeepSeek Harness (DSH), featuring cross-provider reasoning effort clamping, structured error classification, exponential backoff cooldown, per-turn recovery, pre-commit stream protection, and an interactive Settings panel with one-click Save & Apply.

maxTokens, and temperature for both the primary model and an ordered list of backup models (DSH registered providers or custom OpenAI-compatible endpoints).src/effort.js): Automatically maps requested efforts across provider dialects (e.g., off / minimal / low / light / medium / balanced / high / xhigh / deep / max / ultra) to the nearest compatible tier supported by the backup model, or safely omits reasoningEffort when a target model does not declare reasoning support.src/classifier.js): Distinguishes 8 failure categories (rate_limit, billing, server_error, auth_error, not_found, timeout, empty_response, region_blocked), respects fast rate-limit reset thresholds (minSwitchResetSeconds), and never fails over on user abort (ABORTED).src/cooldown.js): Places failing routes into exponential cooldown (min(initialCooldownSec * 2^(streak - 1), maxCooldownSec)) and supports turn (per-turn restore), cooldown (cooldown expiry restore), and session (sticky session fallback) recovery modes.src/router.js): Buffers pre-commit reasoning-delta and usage chunks during llm/stream; if the primary model fails before emitting visible text-delta or tool-call-delta, it discards the uncommitted chunks and transparently switches to the next backup route.Save & Apply): Persists settings to $DSH_HOME/model-fallback/config.json, updates agentDefaultModel, synchronizes active sessions, and broadcasts live SSE status & toast notifications via /api/model-fallback.
dsh plugin --profile web add @carl2003/dsh-model-fallback
dsh plugin --profile web add https://github.com/CarlCN2003/dsh-model-fallback/releases/download/v1.0.0/dsh-model-fallback-1.0.0.tgz
dsh plugin --profile web add github:CarlCN2003/dsh-model-fallback
Open Plugins → Plugin Market (or Settings → Plugin Market on older hosts), search for @carl2003/dsh-model-fallback or CarlCN2003/dsh-model-fallback, and click Install.
Open Settings → Model Fallback (主备模型路由) in DSH:
Auto-Clamp from Primary, Explicit Effort Override for Backup, or Disable Thinking on Backup).node ./tests/run-tests.mjs
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。