From 6129f41273bbb9e7fa4de3c76ab4909f906c173f Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 22 Oct 2023 10:09:38 -0700 Subject: [PATCH] doc: clarify usage of OLLAMA_API_BASE_URL --- README.md | 5 +++-- example.env | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d34ba444..70fcadb8 100644 --- a/README.md +++ b/README.md @@ -48,9 +48,10 @@ OLLAMA_HOST=0.0.0.0 OLLAMA_ORIGINS=* ollama serve ### Using Docker 🐳 -```bash -docker build --build-arg OLLAMA_API_BASE_URL='http://localhost:11434/api' -t ollama-webui . +If Ollama is hosted on your local machine, run the following command: +```bash +docker build --build-arg OLLAMA_API_BASE_URL='' -t ollama-webui . docker run -d -p 3000:8080 --name ollama-webui --restart always ollama-webui ``` diff --git a/example.env b/example.env index e7394bd8..09911a5c 100644 --- a/example.env +++ b/example.env @@ -1,4 +1,6 @@ -PUBLIC_API_BASE_URL="http://localhost:11434/api" +# must be defined, but defaults to 'http://{location.hostname}:11434/api' +# can also use path, such as '/api' +PUBLIC_API_BASE_URL='' OLLAMA_API_ID='my-api-token' OLLAMA_API_TOKEN='xxxxxxxxxxxxxxxx'