From c834d91efd49272d80a0365354085571a50533fd Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 29 Jun 2023 18:37:33 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(util.py):=20exclude=20"kwarg?= =?UTF-8?q?s"=20and=20"args"=20parameters=20from=20the=20generated=20templ?= =?UTF-8?q?ate=20dictionary=20The=20"kwargs"=20and=20"args"=20parameters?= =?UTF-8?q?=20are=20now=20excluded=20from=20the=20generated=20template=20d?= =?UTF-8?q?ictionary.=20This=20ensures=20that=20only=20the=20relevant=20pa?= =?UTF-8?q?rameters=20are=20included=20in=20the=20template,=20improving=20?= =?UTF-8?q?the=20accuracy=20and=20usefulness=20of=20the=20generated=20temp?= =?UTF-8?q?late.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/utils/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/langflow/utils/util.py b/src/backend/langflow/utils/util.py index 486f6c189..4769563bd 100644 --- a/src/backend/langflow/utils/util.py +++ b/src/backend/langflow/utils/util.py @@ -165,7 +165,7 @@ def build_template_from_method( "required": param.default == param.empty, } for name, param in params.items() - if name != "self" + if name not in ["self", "kwargs", "args"] }, }