mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
4cbf16c456
commit
f9bd49bf56
1 changed files with 10 additions and 0 deletions
|
|
@ -427,6 +427,16 @@ AIOHTTP_CLIENT_TIMEOUT_TOOL_SERVER_DATA = os.environ.get(
|
||||||
"AIOHTTP_CLIENT_TIMEOUT_TOOL_SERVER_DATA", "10"
|
"AIOHTTP_CLIENT_TIMEOUT_TOOL_SERVER_DATA", "10"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if AIOHTTP_CLIENT_TIMEOUT_TOOL_SERVER_DATA == "":
|
||||||
|
AIOHTTP_CLIENT_TIMEOUT_TOOL_SERVER_DATA = None
|
||||||
|
else:
|
||||||
|
try:
|
||||||
|
AIOHTTP_CLIENT_TIMEOUT_TOOL_SERVER_DATA = int(
|
||||||
|
AIOHTTP_CLIENT_TIMEOUT_TOOL_SERVER_DATA
|
||||||
|
)
|
||||||
|
except Exception:
|
||||||
|
AIOHTTP_CLIENT_TIMEOUT_TOOL_SERVER_DATA = 10
|
||||||
|
|
||||||
####################################
|
####################################
|
||||||
# OFFLINE_MODE
|
# OFFLINE_MODE
|
||||||
####################################
|
####################################
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue