()
| 109 | // getEmbeddingDimensions() throws until initEmbeddings() has completed — a clean |
| 110 | // "is the provider up?" flag without adding an export to the embedder interface. |
| 111 | function embeddingsReady() { |
| 112 | try { |
| 113 | return getEmbeddingDimensions() > 0; |
| 114 | } catch { |
| 115 | return false; |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | // Deep health check (no auth) — probes real dependencies so a downed Postgres or |
| 120 | // an uninitialized embedder returns 503, not a misleading 200. |
no test coverage detected