From ec9e45e4a7ecbb3baa4ff5eddef7ead32d6e091c Mon Sep 17 00:00:00 2001 From: johnko <279736+johnko@users.noreply.github.com> Date: Thu, 6 Feb 2025 00:57:14 -0500 Subject: [PATCH] run ollama only on localhost by default --- bin/macos-ollama-server.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/macos-ollama-server.sh b/bin/macos-ollama-server.sh index 8faf43b..91f4ca7 100755 --- a/bin/macos-ollama-server.sh +++ b/bin/macos-ollama-server.sh @@ -1,7 +1,9 @@ #!/usr/bin/env bash set -euo pipefail -export OLLAMA_HOST=`get-ip`:11434 +export OLLAMA_HOST=127.0.0.1:11434 +# export OLLAMA_HOST=`get-ip`:11434 +# export OLLAMA_HOST=0.0.0.0:11434 if type ollama &>/dev/null ; then ollama serve