summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2024-05-27 14:21:55 +0400
committerLain Soykaf <lain@lain.com>2024-05-27 14:21:55 +0400
commitf4c04e6b2dce6d75d148ca520aaef27005ecaa82 (patch)
tree6be1f8ebe63c7dd5cdca212f37a31d2864a7fe17 /lib
parentec3f3fef7798111641f08020d5fd7ae16e407b89 (diff)
downloadpleroma-f4c04e6b2dce6d75d148ca520aaef27005ecaa82.tar.gz
pleroma-f4c04e6b2dce6d75d148ca520aaef27005ecaa82.zip
QdrantSearch: Add health checks.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/search/qdrant_search.ex4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pleroma/search/qdrant_search.ex b/lib/pleroma/search/qdrant_search.ex
index 3c3ffce16..429ae05b8 100644
--- a/lib/pleroma/search/qdrant_search.ex
+++ b/lib/pleroma/search/qdrant_search.ex
@@ -148,7 +148,9 @@ defmodule Pleroma.Search.QdrantSearch do
|> Map.put(:path, "/healthz")
|> URI.to_string()
- [qdrant_health]
+ openai_health = Config.get([Pleroma.Search.QdrantSearch, :openai_healthcheck_url])
+
+ [qdrant_health, openai_health] |> Enum.filter(& &1)
end
end