yishengdaxiaonengjihui/dsh-poor-router ↗★ 1
dsh-poor-router
适用于 DeepSeek Harness 的低成本大模型池路由器:包含使用账本、健康追踪、基于汤普森采样的免费模型自适应容灾、质量阶梯、执行器池、付费防护、Web 面板及重路由徽章。
AI 分析
核心用途是聚合和智能路由多个免费/低成本大模型。适合希望降低 API 消耗成本、利用多模型容灾备份并自动选择最优可用模型的用户。配置保存在 pool.json 中。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yishengdaxiaonengjihui/dsh-poor-router說明文件
閱讀完整 README ↗Configuration
Everything lives next to your models in pool.json. Plugin-level paths default to /poor-router/; override in your profile's cordis.patch.yml:
- id: poor-router
name: dsh-poor-router
config:
dataDir: 'D:/my-data/poor-router' # base dir for all three files
# or individually:
# poolPath: '...'
# statePath: '...'
# importPath: '...'
layerRules: # optional default layers by id prefix
- { match: 'deepseek-official/', layer: 'backbone' }
- { match: 'tokenrouter/', layer: 'matchstick' }
Entry fields that matter:
| field | meaning |
|---|---|
id | provider/model — must match what the harness proposes |
expiresAt | ISO date; urgency sort + panel countdown |
grantRemaining / grantUnit | executor-pool budgeting |
tier | S/A/B/C quality ladder (panel-editable) |
role | "executor" joins the aux-request pool |
layer | backbone (never burned) / burn / matchstick |
paid + priceIn/OutYuanPerM + dailyCapYuan | real-money guardrail |
escapeHatch | allow this paid model as last-resort |