Remove "code" parameter from VectorStoreVertex and ChainVertex
This commit is contained in:
parent
08db9e0586
commit
5f237313b9
1 changed files with 1 additions and 3 deletions
|
|
@ -131,6 +131,7 @@ class VectorStoreVertex(Vertex):
|
||||||
super().__init__(data, graph=graph, base_type="vectorstores")
|
super().__init__(data, graph=graph, base_type="vectorstores")
|
||||||
|
|
||||||
self.params = params or {}
|
self.params = params or {}
|
||||||
|
self.params.pop("code", None)
|
||||||
|
|
||||||
# VectorStores may contain databse connections
|
# VectorStores may contain databse connections
|
||||||
# so we need to define the __reduce__ method and the __setstate__ method
|
# so we need to define the __reduce__ method and the __setstate__ method
|
||||||
|
|
@ -200,9 +201,6 @@ class ChainVertex(Vertex):
|
||||||
self.params.pop("code", None)
|
self.params.pop("code", None)
|
||||||
# Check if the chain requires a PromptVertex
|
# Check if the chain requires a PromptVertex
|
||||||
|
|
||||||
# Temporarily remove the code from the params
|
|
||||||
self.params.pop("code", None)
|
|
||||||
|
|
||||||
for key, value in self.params.items():
|
for key, value in self.params.items():
|
||||||
if isinstance(value, PromptVertex):
|
if isinstance(value, PromptVertex):
|
||||||
# Build the PromptVertex, passing the tools if available
|
# Build the PromptVertex, passing the tools if available
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue