format
This commit is contained in:
parent
264cb8aa30
commit
b8f150d1ac
1 changed files with 4 additions and 1 deletions
|
|
@ -38,7 +38,10 @@ def post_validate_prompt(prompt: ValidatePromptRequest):
|
||||||
for variable in input_variables:
|
for variable in input_variables:
|
||||||
try:
|
try:
|
||||||
template_field = TemplateField(
|
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()
|
prompt.frontend_node.template[variable] = template_field.to_dict()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue