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
fc4e762b
Commit
fc4e762b
authored
Mar 22, 2024
by
Jannik Streidl
Browse files
ENV fix
parent
c08631d6
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 @
fc4e762b
...
@@ -208,7 +208,7 @@ OLLAMA_API_BASE_URL = os.environ.get(
...
@@ -208,7 +208,7 @@ OLLAMA_API_BASE_URL = os.environ.get(
)
)
OLLAMA_BASE_URL
=
os
.
environ
.
get
(
"OLLAMA_BASE_URL"
,
""
)
OLLAMA_BASE_URL
=
os
.
environ
.
get
(
"OLLAMA_BASE_URL"
,
""
)
INCLUDE_OLLAMA
=
os
.
environ
.
get
(
"
OLLAMA_BASE_URL
"
,
"false"
)
INCLUDE_OLLAMA
=
os
.
environ
.
get
(
"
INCLUDE_OLLAMA
"
,
"false"
)
if
OLLAMA_BASE_URL
==
""
and
OLLAMA_API_BASE_URL
!=
""
:
if
OLLAMA_BASE_URL
==
""
and
OLLAMA_API_BASE_URL
!=
""
:
...
@@ -220,7 +220,7 @@ if OLLAMA_BASE_URL == "" and OLLAMA_API_BASE_URL != "":
...
@@ -220,7 +220,7 @@ if OLLAMA_BASE_URL == "" and OLLAMA_API_BASE_URL != "":
if
ENV
==
"prod"
:
if
ENV
==
"prod"
:
if
OLLAMA_BASE_URL
==
"/ollama"
:
if
OLLAMA_BASE_URL
==
"/ollama"
:
if
INCLUDE_OLLAMA
:
if
INCLUDE_OLLAMA
==
"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 INCLUDE_OLLAMA=true (--build-arg="INCLUDE_OLLAMA=true") this only works with http://localhost:11434
# with the docker build arg INCLUDE_OLLAMA=true (--build-arg="INCLUDE_OLLAMA=true") this only works with http://localhost:11434
OLLAMA_BASE_URL
=
"http://localhost:11434"
OLLAMA_BASE_URL
=
"http://localhost: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