Liyuk/dsh-quota-router

Liyuk★ 0TypeScript最后同步: 2026-08-21

在 GitHub 打开

Policy-only multi-source quota router for DeepSeek Harness: deterministic task profiles, ordered candidate chains, health-aware fallback, subtask model leases, and observable decisions / DSH 多源配额路由插件

README 摘要

dsh-quota-router A policy-only multi-source model router for DeepSeek Harness. v1.0.0 makes the routing contract explicit: choose the right DSH-native model source for each task, recover from infrastructure failures in a bounded and explainable way, and measure route usage without claiming unproven token savings. 📖 项目详解(能力 / 边界 / 收益)→ docs/PROJECT.md · 工程设计与算法文章 → docs/blog-quota-router-engineering.md It routes a user message to a named task profile, then selects the first healthy, auto-eligible source on that profile's candidate chain. The chain is built from a global source priority list ( sources ) combined with a per-task model mapping ( profiles[].modelBySource ) — two orthogonal dimensions. This is designed for a "cost-source 薅羊毛" workflow across mixed free / subscription / unlimited / low-price / manual emergency model sources. Why it exists A normal keyword → target + fallback Router cannot reliably express: Both rules have the same primary route, so a fallback inferred only from the current session header loses the original task identity. quota-router retains profile + candidate identity per turn and moves along that exact chain. Safety model - Only DSH-native registered …

在 GitHub 查看完整 README →
工具/开发cost-controldeepseek-harnessdshdsh-pluginfallbackllm-routingmodel-routerquota-router

分类