diff --git a/scripts/verify_runtime_service.py b/scripts/verify_runtime_service.py index d9efe44..6503b66 100644 --- a/scripts/verify_runtime_service.py +++ b/scripts/verify_runtime_service.py @@ -27,6 +27,17 @@ try: print(f" -> Version: {health_data.get('version')}") print(f" -> Prefix: {health_data.get('prefix')}") print(f" -> Qdrant: {health_data.get('qdrant')}") + + # WP-24c v4.5.10: Prüfe EdgeDTO-Version im laufenden Service + edge_dto_supports = health_data.get('edge_dto_supports_callout') + if edge_dto_supports is not None: + if edge_dto_supports: + print(f" ✅ Service unterstützt 'explicit:callout' (zur Laufzeit verifiziert)") + else: + print(f" ❌ Service unterstützt NICHT 'explicit:callout' (alte Version im Speicher!)") + print(f" -> Aktion erforderlich: Cache leeren und Service neu starten") + else: + print(f" ⚠️ Health-Check meldet keine EdgeDTO-Version (alte API-Version?)") else: print(f" ⚠️ Service antwortet mit Status {response.status_code}") print(f" -> Response: {response.text[:200]}") @@ -40,14 +51,15 @@ except Exception as e: # 2. Test: Versuche eine Test-Query mit explicit:callout Edge print("\n2. Test: Retrieval mit explicit:callout Edge:") -print(" -> Sende Test-Query an /api/chat...") +print(" -> Sende Test-Query an /chat/...") try: test_query = { "message": "Test query für EdgeDTO-Verifikation", "explain": False } + # WP-24c: Router ist mit prefix="/chat" eingebunden, Endpoint ist "/" response = requests.post( - "http://localhost:8001/api/chat", + "http://localhost:8001/chat/", json=test_query, timeout=30 )