瀏覽代碼

fix: Multiple actions in an action module do not work as intended.

Yak! 2 月之前
父節點
當前提交
b5cfa2b992
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      backend/open_webui/utils/models.py

+ 1 - 0
backend/open_webui/utils/models.py

@@ -203,6 +203,7 @@ async def get_all_models(request, user: UserModel = None):
         else:
             function_module, _, _ = load_function_module_by_id(function_id)
             request.app.state.FUNCTIONS[function_id] = function_module
+        return function_module
 
     for model in models:
         action_ids = [