fix(nodes.py): set prompt field as not required and show it if no prompt is provided
This commit is contained in:
parent
35b4b50b8f
commit
d52e7700c0
1 changed files with 1 additions and 1 deletions
|
|
@ -425,7 +425,7 @@ class ChainFrontendNode(FrontendNode):
|
|||
field.required = True
|
||||
field.show = True
|
||||
# Separated for possible future changes
|
||||
if field.name == "prompt":
|
||||
if field.name == "prompt" and field.value is None:
|
||||
# if no prompt is provided, use the default prompt
|
||||
field.required = False
|
||||
field.show = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue