fix: prompt_params now come from params
This commit is contained in:
parent
c6d0a8d8fa
commit
9ef1078786
1 changed files with 3 additions and 2 deletions
|
|
@ -67,8 +67,9 @@ class PromptNode(Node):
|
|||
else []
|
||||
)
|
||||
self.params["tools"] = tools
|
||||
# Extract the input variables from the prompt
|
||||
prompt_params = ["prefix", "suffix"]
|
||||
prompt_params = [
|
||||
key for key, value in self.params.items() if value["type"] == "str"
|
||||
]
|
||||
else:
|
||||
prompt_params = ["template"]
|
||||
for param in prompt_params:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue