🐛 fix(types.py): temporarily remove "code" parameter from ChainVertex to fix a bug
This commit is contained in:
parent
f1aadd44a0
commit
1e7d725a7d
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue