Timothy Jaeryang Baek 4 miesięcy temu
rodzic
commit
1d216b82ba
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      backend/open_webui/utils/filter.py

+ 4 - 2
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