[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
Collaborator

Fixes #1065

Re-implementation of PR closed due to merge conflicts.

  • Adds src/infrastructure/router/classifier.py with TaskComplexity enum and classify_task() heuristic
  • Extends CascadeRouter with _get_model_for_complexity() and complexity_hint parameter in complete()
  • Adds fallback_chains config to providers.yaml for qwen3:8b/14b routing
  • Fix: uses explicit next() comprehension to avoid silent fallback to provider default
  • 361 unit tests passing
Fixes #1065 Re-implementation of PR closed due to merge conflicts. - Adds `src/infrastructure/router/classifier.py` with `TaskComplexity` enum and `classify_task()` heuristic - Extends `CascadeRouter` with `_get_model_for_complexity()` and `complexity_hint` parameter in `complete()` - Adds `fallback_chains` config to `providers.yaml` for qwen3:8b/14b routing - Fix: uses explicit `next()` comprehension to avoid silent fallback to provider default - 361 unit tests passing
claude added 1 commit 2026-03-23 22:55:16 +00:00
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
77b70943da
- 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>
Timmy merged commit 1e1689f931 into main 2026-03-23 22:58:22 +00:00
Timmy deleted branch claude/issue-1065-v2 2026-03-23 22:58:22 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1233