[claude] Qwen3 two-model routing via task complexity classifier (#1065) v2 #1233

Merged
Timmy merged 1 commits from claude/issue-1065-v2 into main 2026-03-23 22:58:22 +00:00

1 Commits

Author SHA1 Message Date
Alexander Whitestone
77b70943da feat: Qwen3 two-model routing via task complexity classifier (#1065)
Some checks failed
Tests / lint (pull_request) Failing after 24s
Tests / test (pull_request) Has been skipped
- Add src/infrastructure/router/classifier.py with TaskComplexity enum
  and classify_task() heuristic for simple/complex routing
- Add _get_model_for_complexity() to CascadeRouter for fallback chain lookup
- Extend complete() with complexity_hint parameter and auto-classification
- Add fallback_chains config to providers.yaml for qwen3:8b/14b routing
- Fix: use explicit next() comprehension instead of get_model_with_capability
  to avoid silent fallback to provider default (0b28497)
- 361 unit tests passing

Fixes #1065

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 18:55:02 -04:00