This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-28 08:47:42 -03:00
commit b8f150d1ac

View file

@ -38,7 +38,10 @@ def post_validate_prompt(prompt: ValidatePromptRequest):
for variable in input_variables:
try:
template_field = TemplateField(
name=variable, field_type="str", show=True, advanced=False
name=variable,
field_type="str",
show=True,
advanced=False,
)
prompt.frontend_node.template[variable] = template_field.to_dict()