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
8e62c361
Commit
8e62c361
authored
Jun 16, 2024
by
Timothy J. Baek
Browse files
enh: AIOHTTP_CLIENT_TIMEOUT None support
parent
f76a5695
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
backend/config.py
backend/config.py
+8
-1
No files found.
backend/config.py
View file @
8e62c361
...
...
@@ -425,7 +425,14 @@ OLLAMA_API_BASE_URL = os.environ.get(
)
OLLAMA_BASE_URL
=
os
.
environ
.
get
(
"OLLAMA_BASE_URL"
,
""
)
AIOHTTP_CLIENT_TIMEOUT
=
int
(
os
.
environ
.
get
(
"AIOHTTP_CLIENT_TIMEOUT"
,
"300"
))
AIOHTTP_CLIENT_TIMEOUT
=
os
.
environ
.
get
(
"AIOHTTP_CLIENT_TIMEOUT"
,
"300"
)
if
AIOHTTP_CLIENT_TIMEOUT
==
""
:
AIOHTTP_CLIENT_TIMEOUT
=
None
else
:
AIOHTTP_CLIENT_TIMEOUT
=
int
(
AIOHTTP_CLIENT_TIMEOUT
)
K8S_FLAG
=
os
.
environ
.
get
(
"K8S_FLAG"
,
""
)
USE_OLLAMA_DOCKER
=
os
.
environ
.
get
(
"USE_OLLAMA_DOCKER"
,
"false"
)
...
...
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