Skip to content

Commit 3e1d4f2

Browse files
updated README.md to include the ollama setup
1 parent 98c043a commit 3e1d4f2

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Looking to contribute? Check out:
2828
## Features
2929

3030
**AI-Powered Commit Messages** - Automatically generate meaningful commit messages
31-
🔄 **Multiple LLM Support** - Choose between Google Gemini, Grok, Claude or ChatGPT
31+
🔄 **Multiple LLM Support** - Choose between Google Gemini, Grok, Claude, ChatGPT, or Ollama (local)
3232
📝 **Context-Aware** - Analyzes staged and unstaged changes
3333
📋 **Auto-Copy to Clipboard** - Generated messages are automatically copied for instant use
3434
📊 **File Statistics Display** - Visual preview of changed files and line counts
@@ -37,17 +37,19 @@ Looking to contribute? Check out:
3737

3838
## Supported LLM Providers
3939

40-
You can use **Google Gemini**, **Grok**, **Claude**, or **ChatGPT** as the LLM to generate commit messages:
40+
You can use **Google Gemini**, **Grok**, **Claude**, **ChatGPT**, or **Ollama** (local) as the LLM to generate commit messages:
4141

4242
### Environment Variables
4343

4444
| Variable | Values | Description |
4545
| :--- | :--- | :--- |
46-
| `COMMIT_LLM` | `gemini`, `grok`, `claude`, or `chatgpt` | Choose your LLM provider |
46+
| `COMMIT_LLM` | `gemini`, `grok`, `claude`, `chatgpt`, or `ollama` | Choose your LLM provider |
4747
| `GEMINI_API_KEY` | Your API key | Required if using Gemini |
4848
| `GROK_API_KEY` | Your API key | Required if using Grok |
4949
| `CLAUDE_API_KEY` | Your API key | Required if using Claude |
5050
| `OPENAI_API_KEY` | Your API key | Required if using ChatGPT |
51+
| `OLLAMA_URL` | URL (optional) | Ollama server URL (default: http://localhost:11434/api/generate) |
52+
| `OLLAMA_MODEL` | Model name (optional) | Ollama model to use (default: qwen2:0.5b) |
5153

5254
---
5355

@@ -185,6 +187,17 @@ commit .
185187
2. Create a new API key
186188
3. Set the `OPENAI_API_KEY` environment variable
187189

190+
**Ollama (Local LLM):**
191+
192+
1. Install Ollama: Visit [Ollama.ai](https://ollama.ai/) and follow installation instructions
193+
2. Start Ollama: `ollama serve`
194+
3. Pull a model: `ollama pull llama3`
195+
4. Set environment variables:
196+
```bash
197+
export COMMIT_LLM=ollama
198+
export OLLAMA_MODEL=llama3 # llama3 by default
199+
```
200+
188201
---
189202

190203
## 🤝 Contributing

0 commit comments

Comments
 (0)