feat(ai-router): DIAGNOSE intent override 升級至 Nemotron (P0)

This commit is contained in:
OG T
2026-04-04 17:41:45 +08:00
parent c94cf5ac68
commit 8056be5847
2 changed files with 18 additions and 3 deletions

View File

@@ -136,3 +136,18 @@ class TestLocalFallbackChain:
assert result.success is False
assert result.error == "local_providers_unavailable"
class TestDiagnoseIntentOverride:
"""DIAGNOSE intent 應優先路由至 Nemotron非 FORCE_LOCAL 情境)"""
def test_diagnose_override_is_nemotron(self):
"""_intent_provider_overrides[DIAGNOSE] 應為 NEMOTRON"""
from src.services.ai_router import AIRouter, AIProviderEnum
from src.services.intent_classifier import IntentType
router = AIRouter()
override = router._intent_provider_overrides.get(IntentType.DIAGNOSE)
assert override == AIProviderEnum.NEMOTRON, (
f"DIAGNOSE 應路由至 NEMOTRON實際為 {override}"
)