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
* fix: enable and verify router classification testing in 02-router-classification-test.py
- Fix import path: change from 'tests.test_base' to 'test_base'
- Add missing 'import unittest' statement
- Update DEFAULT_MODEL from 'qwen2.5:32b' to 'Model-A' to match e2e config
- Increase timeout from 10s to 60s to accommodate LLM Katan response times
- Use 'model: auto' to trigger category-based classification routing
- Add 4 comprehensive test cases: math, computer science, business, history
- Add expected_model field to verify correct routing
- Add assertions to verify actual model matches expected model
- Enhance test output to show expected vs actual routing
- Fix metrics test to check for actual exposed metrics (entropy classification, cache)
- Update README to mark 01 and 02 tests as completed with descriptions
All 3 tests now pass successfully with verified classification routing:
- Category Classification: Math→Model-B, CS→Model-B, Business→Model-A, History→Model-A ✅
- Classification Consistency: Same query routes to same model ✅
- Router Metrics: Entropy classification, cache hits/misses tracked ✅
Signed-off-by: Yossi Ovadia <[email protected]>
* fix: remove trailing whitespace in 02-router-classification-test.py
Remove trailing whitespace from lines 239, 297, and 298 to pass
pre-commit checks.
Signed-off-by: Yossi Ovadia <[email protected]>
* style: apply black formatter to 02-router-classification-test.py
Add trailing comma after last argument in assertGreater call to comply
with black formatting standards.
Signed-off-by: Yossi Ovadia <[email protected]>
---------
Signed-off-by: Yossi Ovadia <[email protected]>
0 commit comments