Files
catalogue_backend/app/api
Suriyakumarvijayanayagam dce2405e50 Stop /api/system/status 500ing when Ollama is switched off
_ensure_client() returns None - not False - when USE_OLLAMA is false, because
it returns before it ever probes. SystemStatusOut.ollama_connected is typed
bool, so pydantic rejected the None and the endpoint answered 500 on exactly
the configuration this deployment runs.

Found by smoke-testing the live host: every other read route answered 200 and
this one alone was a server error, which read like a database problem and was
not one. "Ollama is off" now reports as ollama_connected: false.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-14 18:29:16 +05:30
..
2026-08-11 19:16:01 +05:30
2026-08-11 19:16:01 +05:30
2026-08-12 16:37:28 +05:30
2026-08-11 19:16:01 +05:30
2026-08-11 19:16:01 +05:30
2026-08-11 19:16:01 +05:30
2026-08-13 15:54:29 +05:30
2026-08-11 19:16:01 +05:30
2026-08-11 19:16:01 +05:30