Browse Source

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

非法操作 3 months ago
parent
commit
ead4b34127
1 changed files with 1 additions and 1 deletions
  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)}