🔧 chore(validate.py): add display_name field to TemplateField in post_validate_prompt function
The display_name field is added to the TemplateField object in the post_validate_prompt function. This field allows for a more user-friendly display of the variable name in the UI.
This commit is contained in:
parent
54b5aa65da
commit
3ae84bea13
1 changed files with 1 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ def post_validate_prompt(prompt: ValidatePromptRequest):
|
||||||
try:
|
try:
|
||||||
template_field = TemplateField(
|
template_field = TemplateField(
|
||||||
name=variable,
|
name=variable,
|
||||||
|
display_name=variable,
|
||||||
field_type="str",
|
field_type="str",
|
||||||
show=True,
|
show=True,
|
||||||
advanced=False,
|
advanced=False,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue