mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-07 08:27:05 +00:00
refac
This commit is contained in:
parent
1c82506bfd
commit
bd07ef87ab
1 changed files with 5 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ import types
|
|||
import tempfile
|
||||
import logging
|
||||
|
||||
from open_webui.env import PIP_OPTIONS, PIP_PACKAGE_INDEX_OPTIONS
|
||||
from open_webui.env import PIP_OPTIONS, PIP_PACKAGE_INDEX_OPTIONS, OFFLINE_MODE
|
||||
from open_webui.models.functions import Functions
|
||||
from open_webui.models.tools import Tools
|
||||
|
||||
|
|
@ -264,6 +264,10 @@ def get_function_module_from_cache(request, function_id, load_from_db=True):
|
|||
|
||||
|
||||
def install_frontmatter_requirements(requirements: str):
|
||||
if OFFLINE_MODE:
|
||||
log.info("Offline mode enabled, skipping installation of requirements.")
|
||||
return
|
||||
|
||||
if requirements:
|
||||
try:
|
||||
req_list = [req.strip() for req in requirements.split(",")]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue