fix: remove format_instructions from input_v extrac

This commit is contained in:
Gabriel Almeida 2023-03-31 23:15:46 -03:00
commit b0615e9a4e

View file

@ -68,7 +68,9 @@ class PromptNode(Node):
)
self.params["tools"] = tools
prompt_params = [
key for key, value in self.params.items() if value["type"] == "str"
key
for key, value in self.params.items()
if isinstance(value, str) and key != "format_instructions"
]
else:
prompt_params = ["template"]