diff --git a/src/backend/langflow/api/v1/validate.py b/src/backend/langflow/api/v1/validate.py index aa3748785..2a5bdd673 100644 --- a/src/backend/langflow/api/v1/validate.py +++ b/src/backend/langflow/api/v1/validate.py @@ -73,12 +73,14 @@ def add_new_variables_to_template(input_variables, prompt_request): advanced=False, multiline=True, input_types=["Document", "BaseOutputParser"], + value="", # Set the value to empty string ) if variable in prompt_request.frontend_node.template: # Set the new field with the old value template_field.value = prompt_request.frontend_node.template[variable][ "value" ] + prompt_request.frontend_node.template[variable] = template_field.to_dict() # Check if variable is not already in the list before appending