dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ZI-LV68/dsh-deepseek-model-router
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Auto-switch DeepSeek models for DeepSeek Harness. No manual model picking: every model request is routed automatically, and a switch_model tool gives you a manual override when you want one.
Before every model request, the plugin inspects the conversation and replaces the frozen provider/model:
| Situation | Model used (defaults) |
|---|---|
| Conversation contains images | deepseek-v4-flash-vision-exp (vision) |
| Complex task — long text, code, math, analysis keywords (score ≥ threshold) | deepseek-v4-pro |
| Everything else — chat, short questions, routine work | deepseek-v4-flash |
It hooks the same agent/request waterfall the built-in model selection uses, installed after it, so the routed model is the final one for the call. The prompt variables (provider/model) stay in sync with what actually runs.
switch_model(mode, reason?) — mode is one of:
auto — back to automatic routingfast — force deepseek-v4-flashpro — force deepseek-v4-provision — force deepseek-v4-flash-vision-expThe override is per-session and takes effect from the next request.
From the plugin market (once published), or locally:
dsh plugin --profile web add dsh-deepseek-model-router
The bundle patch activates the router for the whole profile after a restart. Configuration lives in the bundle patch (cordis.patch.yml → row config): provider, fast/pro/vision models, complexity threshold, tool name, enabled.
All fields optional (defaults shown):
config:
provider: deepseek-official # only sessions on this provider are routed
fastModel: deepseek-v4-flash
proModel: deepseek-v4-pro
visionModel: deepseek-v4-flash-vision-exp
complexityThreshold: 2 # task score >= threshold -> pro
toolName: switch_model # registered tool name
enabled: true
deepseek-official sessions are routed; other providers pass through untouched.visionModel); if that model is not image-capable in your catalog, the current model is kept.switch_model to pin a model explicitly.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。