From fc615bf319d043cb895c3a28d4e4c91061d5022a Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 6 Jul 2023 23:53:27 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20refactor(customs.py):=20remove?= =?UTF-8?q?=20unused=20"CustomComponent"=20node=20from=20CUSTOM=5FNODES=20?= =?UTF-8?q?dictionary=20The=20"CustomComponent"=20node=20was=20removed=20f?= =?UTF-8?q?rom=20the=20CUSTOM=5FNODES=20dictionary=20as=20it=20was=20no=20?= =?UTF-8?q?longer=20being=20used.=20This=20improves=20code=20cleanliness?= =?UTF-8?q?=20and=20removes=20unnecessary=20clutter.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/custom/customs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backend/langflow/custom/customs.py b/src/backend/langflow/custom/customs.py index 68dedbaad..1c51ae32f 100644 --- a/src/backend/langflow/custom/customs.py +++ b/src/backend/langflow/custom/customs.py @@ -8,7 +8,6 @@ CUSTOM_NODES = { "tools": { "PythonFunctionTool": frontend_node.tools.PythonFunctionToolNode(), "PythonFunction": frontend_node.tools.PythonFunctionNode(), - "CustomComponent": frontend_node.tools.CustomComponentNode(), "Tool": frontend_node.tools.ToolNode(), }, "agents": { @@ -31,6 +30,9 @@ CUSTOM_NODES = { "MidJourneyPromptChain": frontend_node.chains.MidJourneyPromptChainNode(), "load_qa_chain": frontend_node.chains.CombineDocsChainNode(), }, + "custom_components": { + "CustomComponent": frontend_node.custom_components.CustomComponentFrontendNode(), + }, }