@@ -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 .
1851872 . Create a new API key
1861883 . 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