dylan121322/llm-adaptive

llm-adaptive adds an adaptive provider to the DSH model picker: every LLM request is classified by a flash classifier (low / medium / high / critical — deepseek-v4-flash called directly, never through a proxy, no recursion) and routed to the matching backend provider through config-driven chains from pool.json → routing.levels. Context-aware judging injects a rolling session-goal summary plus recent turns; sticky-level protection holds a mid-task downgrade; transport failures walk down the chain; any classification failure degrades to medium (fail-open); every decision (level, cause: llm/sticky/cache) is logged, with a 120s decision cache.

Other ★ 2 updated 2026-08-14 ✅ runtime-tested
View on GitHub ↗

Install

dsh plugin add llm-adaptive

README EN primary (2026-09-01, repo dylan121322/llm-adaptive): install dsh plugin add llm-adaptive (npm name llm-adaptive 404 verified — not yet published, so prefer the local-checkout path the README also documents: cd ~/.dsh/profiles/web && npx pnpm@10 install with "llm-adaptive": "file:plugins/llm-adaptive"). Then restart dsh web and select adaptive in the /model picker. Requires a model pool file at ~/.dsh/tools/cc-switch-sync/pool.json with classifier + routing.levels sections.

Compatibility

DSH web; model pool file ~/.dsh/tools/cc-switch-sync/pool.json; DeepSeek flash classifier.

Details

Recent updates

Adaptive provider; flash classifier (low/med/high/critical); config-driven chains; sticky-level; fail-open; decision log + 120s cache.

FAQ

How does routing decide?
A flash classifier labels each request low/medium/high/critical and the matching level's chain in pool.json routes it; failures degrade to medium.
What config does it need?
~/.dsh/tools/cc-switch-sync/pool.json with a classifier section (url/model/key_ref) and routing.levels chains.
How do I install it?
dsh plugin add llm-adaptive once published, or the README's local-checkout path (file:plugins/llm-adaptive) — npm 404 verified 2026-09-01.

Alternatives

btspoony/dsh-llm-fallbacks · superboy911/dsh-model-router · studyzy/dsh-suggest-prompt

More plugins in Other

Browse more in Other

Guides for Other plugins