Compare commits

...

1 Commits

Author SHA1 Message Date
Eva Ho
99e470fe9f cmd: config update to use native Ollama API for OpenClaw 2026-02-24 17:26:39 -05:00
2 changed files with 2 additions and 2 deletions

View File

@@ -502,7 +502,7 @@ func (c *Openclaw) Edit(models []string) error {
ollama = make(map[string]any)
}
ollama["baseUrl"] = envconfig.Host().String() + "/v1"
ollama["baseUrl"] = envconfig.Host().String()
// needed to register provider
ollama["apiKey"] = "ollama-local"
ollama["api"] = "ollama"

View File

@@ -589,7 +589,7 @@ const testOpenclawFixture = `{
"providers": {
"anthropic": {"apiKey": "xxx"},
"ollama": {
"baseUrl": "http://127.0.0.1:11434/v1",
"baseUrl": "http://127.0.0.1:11434",
"models": [{"id": "old-model", "customField": "preserved"}]
}
}