update chain process to remove code if if there is any
This commit is contained in:
parent
0f894da75e
commit
6e065ddb28
1 changed files with 2 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue