diff --git a/apps/api/tests/test_smart_router.py b/apps/api/tests/test_smart_router.py index 49351438..892b63ce 100644 --- a/apps/api/tests/test_smart_router.py +++ b/apps/api/tests/test_smart_router.py @@ -157,14 +157,16 @@ class TestAIRouter: """測試 AI 路由器""" def test_query_routes_to_ollama(self): - """測試查詢路由到 Ollama""" + """測試查詢路由到 Nemotron(Phase 25 P0: DIAGNOSE 升級至 Nemotron)""" router = AIRouter() decision = router.route_sync("查詢 Pod 狀態", {}) - # DIAGNOSE 意圖 → Ollama + # DIAGNOSE 意圖 → Nemotron (P0 升級) assert decision.intent == IntentType.DIAGNOSE assert decision.model is not None - assert len(decision.fallback_models) >= 2 + # DIAGNOSE 使用 _local_fallback_chain [NEMOTRON, OLLAMA] + # 選了 NEMOTRON 後,fallback 只剩 OLLAMA 一個 — 此為正確的隱私邊界設計 + assert len(decision.fallback_models) >= 1 def test_alert_intent_classification(self): """測試告警意圖分類"""