Skip to content

Commit

Permalink
run ollama only on localhost by default
Browse files Browse the repository at this point in the history
  • Loading branch information
johnko committed Feb 6, 2025
1 parent ef9f877 commit ec9e45e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/macos-ollama-server.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ec9e45e

Please sign in to comment.