diff --git a/apps/application/workflow/nodes/ai_chat_node/tools/tool/workflow.py b/apps/application/workflow/nodes/ai_chat_node/tools/tool/workflow.py index 65fc02ab3fa..ca4000e3eaa 100644 --- a/apps/application/workflow/nodes/ai_chat_node/tools/tool/workflow.py +++ b/apps/application/workflow/nodes/ai_chat_node/tools/tool/workflow.py @@ -126,9 +126,7 @@ def get_start_node_fn(wf, wm): def get_workflow_tools(source_type, source_id, tool_workflow_ids, workspace_id, cancel_event, workflow_params=None): - tools = QuerySet(Tool).filter( - id__in=tool_workflow_ids, is_active=True, tool_type=ToolType.WORKFLOW, workspace_id=workspace_id - ) + tools = QuerySet(Tool).filter(id__in=tool_workflow_ids, is_active=True, tool_type=ToolType.WORKFLOW) latest_subquery = ToolWorkflowVersion.objects.filter(tool_id=OuterRef("tool_id")).order_by("-create_time") qs = ToolWorkflowVersion.objects.filter(