🐛 fix(types.py): temporarily remove "code" parameter from ChainVertex to fix a bug

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-06 21:28:43 -03:00
commit 1e7d725a7d

View file

@ -206,6 +206,10 @@ class ChainVertex(Vertex):
) -> Any:
if not self._built or force:
# Check if the chain requires a PromptVertex
# Temporarily remove "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