Add live AI checks to system health (#3155)

* Add live AI checks to system health

Give super admins a dedicated AI status view with bounded liveness probes for LLMs, vector stores, pgvector, and embedding endpoints. Record sanitized failures in both the system debug log and Rails logger, and document the recommended local configuration.\n\nCloses #3145

* Fix AI health CI checks

* Address AI health review feedback

* Correct Ollama model preload guidance

* Distinguish OpenAI-compatible providers

* Make Ollama startup readiness explicit

* Recognize Cloudflare AI endpoints
This commit is contained in:
Juan José Mata
2026-08-24 22:41:08 +02:00
committed by GitHub
parent c26b16d36f
commit fd6f4ff078
24 changed files with 1773 additions and 120 deletions
+4 -4
View File
@@ -135,18 +135,18 @@ module VectorStore::Embeddable
end
def embedding_model
ENV.fetch("EMBEDDING_MODEL", "nomic-embed-text")
VectorStore.embedding_model
end
def embedding_dimensions
ENV.fetch("EMBEDDING_DIMENSIONS", "1024").to_i
VectorStore.embedding_dimensions
end
def embedding_uri_base
ENV["EMBEDDING_URI_BASE"].presence || ENV["OPENAI_URI_BASE"].presence || "https://api.openai.com/v1/"
VectorStore.embedding_uri_base
end
def embedding_access_token
ENV["EMBEDDING_ACCESS_TOKEN"].presence || ENV["OPENAI_ACCESS_TOKEN"].presence
VectorStore.embedding_access_token
end
end