From 26c42cac05c679ff031ff4e90fc2136742a776c8 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 29 Jun 2023 17:39:12 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(util.py):=20exclude=20"sel?= =?UTF-8?q?f"=20parameter=20from=20template=20building=20The=20"self"=20pa?= =?UTF-8?q?rameter=20is=20now=20excluded=20from=20the=20template=20buildin?= =?UTF-8?q?g=20process.=20This=20change=20improves=20the=20accuracy=20of?= =?UTF-8?q?=20the=20generated=20template=20by=20removing=20unnecessary=20i?= =?UTF-8?q?nformation.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/utils/util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/langflow/utils/util.py b/src/backend/langflow/utils/util.py index 02a9520b4..486f6c189 100644 --- a/src/backend/langflow/utils/util.py +++ b/src/backend/langflow/utils/util.py @@ -165,6 +165,7 @@ def build_template_from_method( "required": param.default == param.empty, } for name, param in params.items() + if name != "self" }, }