You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: model routing by task weight — RuleRouter baseline, LayaRouter via systemone #586
Running every task on the strongest model is expensive; routing helps (FrugalGPT, Hybrid LLM, RouteLLM) but many routers fail to beat a simple baseline (LLMRouterBench, ACL 2026) and over-select the most expensive model under loose budgets (NeurIPS 2026).
Proposed solution
ModelRouter with two adapters, per docs/profiles-collaboration-secrets.md A9–A10:
LayaRouter: reuses the systemone client internally (not the model-facing tool); fixed literal questions over a short owner-side brief, never raw tool output; used only at confidence ≥ 0.85, else RuleRouter. On/off = SYSTEMONE_API_KEY + SYSTEMONE_BASE_URL (hosted codecoradev/laya-service-rust); down or 503 → RuleRouter.
Ties go to the cheaper tier; the budget caps the tier; route per delegation and per discussion participant, not per turn (prompt cache); one bounded escalation on failure; every decision is a ledger entry (cached by brief hash; laya is deterministic).
Adoption gate: LayaRouter becomes the default only if it beats RuleRouter on success and cost in evals/ Tier 2.
tole doctor reports router state and laya /healthz.
Alternatives considered
LLM self-routing (costly, a weak model rarely knows when to escalate); per-turn switching (breaks caching).
Are you willing to contribute the implementation?
Yes, I can do it
Before submitting
I searched existing issues and didn't find a duplicate
Activity
feat(core): Router seam and a deterministic RuleRouter (#650)
feat(cli): tole route shows the configured model and its source (#586)
feat(config): [router] tiers and rules, tole route dry run, doctor an…
feat(serve): route the model of a new server session (#971)