Summary
When Ollama is not running or unreachable, the current error message could be more helpful.
Current Behavior
The error message mentions that Ollama is unreachable but could provide more actionable guidance.
Expected Behavior
The error should:
- Clearly state that Ollama is not reachable at the configured URL
- Suggest running
ollama serve to start it
- If it's a connection refused error, suggest checking if Ollama is installed
- If using a non-default URL, mention the configured
baseUrl
- Suggest running
jam doctor for full diagnostics
Files to Check
src/providers/ollama.ts — error handling in validateCredentials(), streamCompletion(), and listModels()
src/utils/errors.ts — JamError class
Acceptance Criteria
Summary
When Ollama is not running or unreachable, the current error message could be more helpful.
Current Behavior
The error message mentions that Ollama is unreachable but could provide more actionable guidance.
Expected Behavior
The error should:
ollama serveto start itbaseUrljam doctorfor full diagnosticsFiles to Check
src/providers/ollama.ts— error handling invalidateCredentials(),streamCompletion(), andlistModels()src/utils/errors.ts—JamErrorclassAcceptance Criteria
jam doctorsuggestion in error output