docs: align project documentation with ollama provider
This commit is contained in:
@@ -677,6 +677,43 @@ Status: ✅ Complete
|
||||
|
||||
---
|
||||
|
||||
## Phase 9 — Ollama Provider Support
|
||||
|
||||
### Task 9.1 — Ollama provider implementation ✅
|
||||
|
||||
Create `src/providers/ollama.js` and integrate into the provider factory.
|
||||
|
||||
**Implementation:**
|
||||
- Uses Ollama `/api/chat` endpoint (OpenAI-compatible format) via native `fetch()` — zero new dependencies
|
||||
- Implements `{ send(reviewRequest, config) => Promise<{ content: string }> }` provider interface
|
||||
- Error categories: `OllamaTimeoutError`, `OllamaModelNotFoundError`, `OllamaValidationError`, `OllamaApiNotAvailableError`, `OllamaRequestError`
|
||||
|
||||
**Defaults:**
|
||||
| Setting | Default Value |
|
||||
|---------|---------------|
|
||||
| Base URL | `http://localhost:11434` |
|
||||
| Model | `qwen3:latest` |
|
||||
| Temperature | `0.2` |
|
||||
| Timeout | `60` seconds |
|
||||
|
||||
**Environment variables:**
|
||||
```env
|
||||
OLLAMA_BASE_URL=http://localhost:11434 # or custom Ollama endpoint
|
||||
OLLAMA_MODEL=qwen3:latest # default model for chat
|
||||
OLLAMA_TEMPERATURE=0.2 # sampling temperature
|
||||
OLLAMA_TIMEOUT=60 # request timeout in seconds
|
||||
```
|
||||
|
||||
**Factory integration:**
|
||||
- `"ollama"` added to SUPPORTED_PROVIDERS whitelist: `Set(["openai", "manual", "ollama"])`
|
||||
- `CHATGPT_MCP_PROVIDER=ollama` switches all tool handlers to local Ollama mode
|
||||
- Defaults to `"openai"` when not set — OpenAI behaviour unchanged
|
||||
- Same provider interface as openai and manual providers
|
||||
|
||||
**Status:** ✅ Complete
|
||||
|
||||
---
|
||||
|
||||
### Task 8.0 — Implement ReviewRequest and Manual Export Provider
|
||||
|
||||
Add a zero-API-cost Manual Export provider that generates copy/paste-ready prompts for ChatGPT Web (https://chatgpt.com).
|
||||
@@ -720,5 +757,6 @@ Status: ✅ Complete
|
||||
| 6 | Provider Abstraction | ✅ Complete (factory + adapter) |
|
||||
| 7 | Integration and Tests | ✅ Complete (579 tests across 20 files) |
|
||||
| 8 | Manual Export Provider | ✅ Complete (Task 8.0, 644 tests across 21 files) |
|
||||
| 9 | Ollama Provider Support | ✅ Complete (Task 9.1, 644 tests across 21 files) |
|
||||
|
||||
**Total:** All planned MVP tasks complete. 644 passing tests, zero regressions, all docs updated.
|
||||
**Total:** All planned MVP tasks complete. 644 passing tests, zero regressions, all docs updated. **3 supported providers: openai, manual, ollama.**
|
||||
|
||||
Reference in New Issue
Block a user