🔧 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:
parent
0ecb531749
commit
40179ee011
1 changed files with 1 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue