From bd07ef87abbbed199a25db2cc0c25588d0f50b57 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 3 Jan 2026 18:43:12 +0400 Subject: [PATCH] refac --- backend/open_webui/utils/plugin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/utils/plugin.py b/backend/open_webui/utils/plugin.py index 5407a7cec8..965b0a688f 100644 --- a/backend/open_webui/utils/plugin.py +++ b/backend/open_webui/utils/plugin.py @@ -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(",")]