Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ An advanced algorithm that aggregates signals from:
To leverage the power of LLMs offline:

1. **Install Ollama** from [ollama.com](https://ollama.com).
2. **Pull a model**: `ollama pull qwen2.5-coder:3b`
2. **Pull a model**: `ollama pull qwen2.5-coder:7b`
3. **Initialize Gitmit config**: `gitmit init`
4. **Enable AI** in `.gitmit.json`:
```json
{
"engine": "ollama",
"ollama": {
"model": "qwen2.5-coder:3b"
"model": "qwen2.5-coder:7b"
}
}
```
Expand Down
6 changes: 3 additions & 3 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

// Config represents the structure of .gitmit.json
type Config struct {
Engine string `json:"engine"` // heuristic or ollama
Ollama OllamaConfig `json:"ollama"` // Ollama specific config
Engine string `json:"engine"` // heuristic or ollama
Ollama OllamaConfig `json:"ollama"` // Ollama specific config
TopicMappings map[string]string `json:"topicMappings"`
KeywordMappings map[string]string `json:"keywordMappings"`
ProjectType string `json:"projectType"` // go, nodejs, python, etc.
Expand All @@ -36,7 +36,7 @@ func LoadConfig() (*Config, error) {
cfg := &Config{
Engine: "heuristic",
Ollama: OllamaConfig{
Model: "qwen2.5-coder:3b",
Model: "qwen2.5-coder:7b",
URL: "http://localhost:11434",
Temperature: 0.2,
},
Expand Down
Loading