🔧 chore(validate.py): add input_types to template_field in post_validate_prompt function

The input_types attribute is added to the template_field in the post_validate_prompt function. This change allows for specifying the input types that are accepted for the template field, providing more flexibility and control over the input data.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-28 11:33:56 -03:00
commit 40179ee011

View file

@ -42,6 +42,7 @@ def post_validate_prompt(prompt: ValidatePromptRequest):
field_type="str",
show=True,
advanced=False,
input_types=["BaseLoader"],
)
prompt.frontend_node.template[variable] = template_field.to_dict()