update chain process to remove code if if there is any

This commit is contained in:
anovazzi1 2023-11-13 11:44:30 -03:00
commit 6e065ddb28

View file

@ -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):