From 6e065ddb28a73d46d12ba0e0632c966fdd68a048 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Mon, 13 Nov 2023 11:44:30 -0300 Subject: [PATCH] update chain process to remove code if if there is any --- src/backend/langflow/graph/vertex/types.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/langflow/graph/vertex/types.py b/src/backend/langflow/graph/vertex/types.py index 7609982a5..fdbabe510 100644 --- a/src/backend/langflow/graph/vertex/types.py +++ b/src/backend/langflow/graph/vertex/types.py @@ -205,6 +205,8 @@ class ChainVertex(Vertex): **kwargs, ) -> Any: if not self._built or force: + # Temporarily remove the code from the params + self.params.pop("code", None) # Check if the chain requires a PromptVertex for key, value in self.params.items(): if isinstance(value, PromptVertex):