Ollama (Local)
Ollama is the recommended local backend when privacy constraints prevent cloud usage.
Requirements
Ollama installed.
At least one model pulled locally.
Setup
Install Ollama from ollama.com.
Pull a model:
ollama pull qwen2.5:14b-instructStart server:
ollama serveConfigure in AI Backend settings tab.
Configuration
Preferred Backend
ollama
Ollama CLI Command
ollama run llama3.1 (default; used for validation/model fallback)
Ollama URL
http://127.0.0.1:11434
Ollama Model
llama3.1 by default; e.g. qwen2.5:14b-instruct
Ollama API Key
optional
Ollama Headers
optional
Ollama Auto-Start
optional (ollama serve)
Notes
The active backend path is HTTP-based. The CLI command is used for validation and as a fallback model source when the explicit Ollama model is blank.
Output Token Limits
The extension now sets num_predict automatically per request type. Previously, Ollama defaulted to 128 tokens, which caused truncated responses. Current values:
Request Type
num_predict
Chat
4096
Scanner (single request)
2048
Scanner (batch analysis)
4096
Payload generation
1024
Troubleshooting
Retry Behavior
If a request to Ollama throws a classified transient transport exception (for example, connection timeout/refused), the extension makes up to 6 total attempts. The five possible retry delays are 500/1000/1500/2000/3000 ms. Each retry is logged in the AI Request Logger with the attempt number and delay. The connection's circuit breaker opens after 5 recorded transient failures and allows one half-open model request after 30 seconds — see Backends Overview → Retry Behavior.
Related Pages
Last updated
