Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

default host to `127.0.0.1`, fixes #424

Jeffrey Morgan22ab7f5f88c3
diff --git a/api/client.go b/api/client.go
index 8386f2906..480022c01 100644
--- a/api/client.go
+++ b/api/client.go
@@ -16,7 +16,7 @@ import (
"github.com/jmorganca/ollama/version"
)
-const DefaultHost = "localhost:11434"
+const DefaultHost = "127.0.0.1:11434"
var (
envHost = os.Getenv("OLLAMA_HOST")