Skip to content

Commit 89c7bed

Browse files
mrsabathcursoragent
andcommitted
fix: default LLM_API_BASE to host.docker.internal for local Ollama
Most developers run Ollama locally via `ollama serve` on the host machine with Kind/Docker Desktop. The previous default (ollama.ollama.svc:11434) assumed Ollama was deployed as a Kubernetes service, causing connection failures for the common local setup. Change the default to host.docker.internal:11434 and document the in-cluster alternative as a comment. Signed-off-by: Mariusz Sabath <mrsabath@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 4b326e7 commit 89c7bed

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

a2a/git_issue_agent/.env.ollama

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
# LLM configuration
88
TASK_MODEL_ID=ollama/ibm/granite4:latest
9-
LLM_API_BASE=http://ollama.ollama.svc:11434
9+
# Default: local Ollama via Kind/Docker Desktop host gateway.
10+
# For in-cluster Ollama: LLM_API_BASE=http://ollama.ollama.svc:11434
11+
LLM_API_BASE=http://host.docker.internal:11434
1012
LLM_API_KEY=ollama
1113
MODEL_TEMPERATURE=0
1214

0 commit comments

Comments
 (0)