fix(confidence-engine): sanitize focused reasoning outage

This commit is contained in:
2026-09-09 17:34:56 +01:00
parent 6974b710de
commit ed033e71d5
5 changed files with 56 additions and 1 deletions
+3
View File
@@ -439,6 +439,9 @@ class OllamaLlmProvider {
`- Use a smaller model (e.g., llama3.1 instead of llama3.1:70b)\n` +
`- Check Ollama logs: \`ollama serve\` or look at your system logs`
);
if (e?.name === "AbortError" || e instanceof TypeError) {
error.code = "PROVIDER_UNAVAILABLE";
}
error.providerApiPath = apiUsed;
error.providerExecution = providerExecution;
throw error;