Timothy Jaeryang Baek 3 weeks ago
parent
commit
8edfd29102
1 changed files with 2 additions and 0 deletions
  1. 2 0
      backend/open_webui/functions.py

+ 2 - 0
backend/open_webui/functions.py

@@ -72,6 +72,8 @@ def get_function_module_by_id(request: Request, pipe_id: str):
             except Exception as e:
                 log.exception(f"Error loading valves for function {pipe_id}: {e}")
                 raise e
+        else:
+            function_module.valves = Valves()
 
     return function_module