Files
gitmost/apps/server/src/integrations
vvzvlad b46aed53e3 feat(ai): surface provider error bodies + probe embeddings in test connection
A misconfigured embeddings endpoint failed the RAG indexer with an opaque
"Invalid JSON response" and was not caught by "Test connection" (which only
probed the chat model), so it only surfaced silently during background
indexing.

- add describeProviderError(): formats AI SDK errors as
  "<statusCode>: <message> | response body: <truncated one-line snippet>"
  (statusCode/message/responseBody never carry the API key)
- use it in the bulk-reindex catch and the embedding processor's formatter so
  the real cause (e.g. an HTML 404 from a wrong base URL) is visible in logs
- testConnection now probes chat AND embeddings independently: skips a probe
  when that capability is unconfigured, returns ok:false with a Chat:/Embeddings:
  prefix on real failure, "not configured" when neither is set
2026-06-18 02:35:01 +03:00
..
2026-03-05 09:29:39 +00:00
2026-04-27 15:16:26 +01:00
2025-03-06 13:38:37 +00:00
2026-05-20 19:09:22 +01:00
2026-05-07 18:13:24 +01:00
2025-03-22 15:29:10 +00:00
2025-03-23 13:12:41 +00:00
2026-05-04 22:26:53 +01:00