diff --git a/gui/src/util/errorAnalysis.ts b/gui/src/util/errorAnalysis.ts index b04356490..f866b90ec 100644 --- a/gui/src/util/errorAnalysis.ts +++ b/gui/src/util/errorAnalysis.ts @@ -149,6 +149,15 @@ export function analyzeError( 'No API key was sent with the request. Add "apiKey" to your model config.'; } + // Ollama tool call parsing failure (transient model output issue) + if (errorText.includes("error parsing tool call")) { + customErrorMessage = + "This model produced an invalid tool call that Ollama could not parse. " + + "This is a known transient issue — you can resubmit your message to try again. " + + 'Enabling "Only use system message tools" in Settings > Experimental ' + + "may reduce these errors by avoiding Ollama's native tool call parser."; + } + // 402 Insufficient Balance if (statusCode === 402 || errorText.includes("insufficient balance")) { const providerLabel = providerName || "your provider";