Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
d0d01c95
Commit
d0d01c95
authored
Apr 03, 2024
by
Jannik Streidl
Browse files
possible fix for format-backend check
parent
33ad2381
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
backend/config.py
backend/config.py
+2
-2
No files found.
backend/config.py
View file @
d0d01c95
...
...
@@ -265,10 +265,10 @@ if OLLAMA_BASE_URL == "" and OLLAMA_API_BASE_URL != "":
if
ENV
==
"prod"
:
if
OLLAMA_BASE_URL
==
"/ollama"
and
not
K8S_FLAG
:
if
USE_OLLAMA_DOCKER
.
lower
()
==
"true"
:
# if you use all-in-one docker container (Open WebUI + Ollama)
# if you use all-in-one docker container (Open WebUI + Ollama)
# with the docker build arg USE_OLLAMA=true (--build-arg="USE_OLLAMA=true") this only works with http://localhost:11434
OLLAMA_BASE_URL
=
"http://localhost:11434"
else
:
else
:
OLLAMA_BASE_URL
=
"http://host.docker.internal:11434"
elif
K8S_FLAG
:
OLLAMA_BASE_URL
=
"http://ollama-service.open-webui.svc.cluster.local:11434"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment