浏览代码

fix: test run custom tool raise error (#12178)

非法操作 3 月之前
父节点
当前提交
ead4b34127
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/services/tools/api_tools_manage_service.py

+ 1 - 1
api/services/tools/api_tools_manage_service.py

@@ -425,7 +425,7 @@ class ApiToolManageService:
                     "tenant_id": tenant_id,
                 }
             )
-            result = tool.validate_credentials(credentials, parameters)
+            result = runtime_tool.validate_credentials(credentials, parameters)
         except Exception as e:
             return {"error": str(e)}