From 1d216b82bae4d678da1821808b191f3467423c8b Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 27 May 2025 16:48:17 +0400 Subject: [PATCH] refac --- backend/open_webui/utils/filter.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/utils/filter.py b/backend/open_webui/utils/filter.py index 6ad242f51..5df742c68 100644 --- a/backend/open_webui/utils/filter.py +++ b/backend/open_webui/utils/filter.py @@ -12,11 +12,13 @@ log = logging.getLogger(__name__) log.setLevel(SRC_LOG_LEVELS["MAIN"]) -def get_function_module(request, function_id): +def get_function_module(request, function_id, load_from_db=False): """ Get the function module by its ID. """ - function_module, _, _ = get_function_module_from_cache(request, function_id) + function_module, _, _ = get_function_module_from_cache( + request, function_id, load_from_db + ) return function_module