Files
DeepTutor/tests/services
enlightenmengt2 9ec5815df5 fix(rag): register connected engines in the preflight registry (#3027)
EngineDetail renders the readiness panel for every engine, and its check button calls /api/knowledge-bases/rag-pipelines/{provider}/preflight, which runs engine_preflight() -> _PREFLIGHTS[normalize_provider_name(provider)]().

weknora and kiwix are in KNOWN_PROVIDERS but were never registered in _PREFLIGHTS, so the lookup raised KeyError and the route answered 500 for those engine pages.

One shared _connected_preflight now reports them ready: each knowledge base supplies its own server URL and credentials, validated by the connect probe, so nothing is configured account-wide. This matches doctor.py, which already skips these providers in its preflight loop.

The new test walks KNOWN_PROVIDERS and asserts every entry returns a report, so a future provider constant cannot silently miss the registry again.

Co-authored-by: enlightenmengt2 <227120787+enlightenmengt2@users.noreply.github.com>
2026-11-30 14:17:55 +08:00
..
…
2026-11-16 02:17:36 +08:00