Skip to content

Commit 8b80e07

Browse files
Alexey Panfilovclaude
andcommitted
refactor: rename ollama-4b provider to ollama-local
Generic name that doesn't tie the provider to a specific model size. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4164eae commit 8b80e07

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

cmd/agent/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ func main() {
8888
p, e := llm.NewOllama(cfg.Models.Ollama)
8989
addProvider("ollama", p, e)
9090
}
91-
if cfg.Models.Ollama4b.Model != "" {
92-
p, e := llm.NewOllama(cfg.Models.Ollama4b)
93-
addProvider("ollama-4b", p, e)
91+
if cfg.Models.OllamaLocal.Model != "" {
92+
p, e := llm.NewOllama(cfg.Models.OllamaLocal)
93+
addProvider("ollama-local", p, e)
9494
}
9595
if cfg.Models.Claude.BaseURL != "" {
9696
p, e := llm.NewClaudeBridge(cfg.Models.Claude)

config/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ models:
7676
base_url: http://host.docker.internal:11434
7777
max_tokens: 64
7878

79-
# Ollama 4b — larger local model, can be used as primary via /model.
80-
ollama-4b:
79+
# Ollama local — larger local model, can be used as primary via /model.
80+
ollama-local:
8181
model: gemma3:4b
8282
base_url: http://host.docker.internal:11434
8383
max_tokens: 4096

internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ type ModelsConfig struct {
8181
QwenPlus ModelConfig `yaml:"qwen3.5-plus"`
8282
QwenMax ModelConfig `yaml:"qwen-max"`
8383
Ollama ModelConfig `yaml:"ollama"`
84-
Ollama4b ModelConfig `yaml:"ollama-4b"`
84+
OllamaLocal ModelConfig `yaml:"ollama-local"`
8585
Claude ModelConfig `yaml:"claude"`
8686
Local ModelConfig `yaml:"local"`
8787
}

0 commit comments

Comments
 (0)