Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

非法操作ead4b3412771
diff --git a/api/services/tools/api_tools_manage_service.py b/api/services/tools/api_tools_manage_service.py
index 0e3bd3a7b83..988f9df927e 100644
--- a/api/services/tools/api_tools_manage_service.py
+++ b/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)}