docs: align project documentation with ollama provider

This commit is contained in:
2026-06-15 14:05:05 +01:00
parent 7bc0622c9c
commit bc9eb4e040
5 changed files with 162 additions and 16 deletions
+13 -4
View File
@@ -448,8 +448,9 @@ Supported provider values:
| -------- | -------------------------------------------------------------- | ----------------- |
| `openai` | Default — calls ChatGPT via OpenAI API | Yes |
| `manual` | Copy-paste — wraps prompts in a ready-to-copy format | No |
| `ollama` | Local AI — uses Ollama `/api/chat` endpoint with Qwen3 | No |
The factory whitelists `"openai"` and `"manual"`. Any unrecognized value throws at provider creation time (not config load time). Null/NaN/falsy values default to `"openai"` for safe fallback.
The factory whitelists `"openai"`, `"manual"`, and `"ollama"`. Any unrecognized value throws at provider creation time (not config load time). Null/NaN/falsy values default to `"openai"` for safe fallback.
### OpenAI-specific Environment Variables
@@ -460,7 +461,16 @@ OPENAI_TEMPERATURE=0.2
OPENAI_MAX_OUTPUT_TOKENS=2000
```
The provider pattern makes it straightforward to add other providers (Ollama, Anthropic, custom) — implement the `send(request, config)` interface and register it in the factory's whitelist.
### Ollama-specific Environment Variables
```env
OLLAMA_BASE_URL=http://localhost:11434 # Ollama API endpoint
OLLAMA_MODEL=qwen3:latest # default model for chat requests
OLLAMA_TEMPERATURE=0.2 # sampling temperature
OLLAMA_TIMEOUT=60 # request timeout in seconds
```
The provider pattern makes it straightforward to add other providers (Anthropic, custom) — implement the `send(request, config)` interface and register it in the factory's whitelist. Ollama is already implemented.
---
@@ -801,7 +811,7 @@ Near term:
Medium term:
- Add optional Ollama provider.
- Add Anthropic provider.
- Add model-per-tool config.
- Add cost tracking.
- Add timeout/retry tuning.
@@ -814,7 +824,6 @@ Later:
- Add Gitea pull request workflow.
- Add safe project summary generation.
- Add optional OpenHands integration.
- Implement Ollama provider (factory already supports it).
- Implement Anthropic provider.
- Add streaming responses support.
- Add cost tracking per tool call.