From d2ee9028712922dd071c37039587a101f715fd13 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 6 Nov 2023 21:24:51 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20refactor(types.py):=20temporaril?= =?UTF-8?q?y=20remove=20the=20code=20parameter=20from=20the=20params=20dic?= =?UTF-8?q?tionary=20in=20ChainVertex's=20build=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/graph/vertex/types.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/langflow/graph/vertex/types.py b/src/backend/langflow/graph/vertex/types.py index 7609982a5..e8bcd91b3 100644 --- a/src/backend/langflow/graph/vertex/types.py +++ b/src/backend/langflow/graph/vertex/types.py @@ -206,6 +206,10 @@ class ChainVertex(Vertex): ) -> Any: if not self._built or force: # Check if the chain requires a PromptVertex + + # Temporarily remove the code from the params + self.params.pop("code", None) + for key, value in self.params.items(): if isinstance(value, PromptVertex): # Build the PromptVertex, passing the tools if available