mirror of https://github.com/langgenius/dify.git
fix single-step runs support user input as structured_output variable values (#26430)
This commit is contained in:
parent
f7b1348623
commit
b4d4351203
|
|
@ -416,4 +416,8 @@ class WorkflowEntry:
|
|||
|
||||
# append variable and value to variable pool
|
||||
if variable_node_id != ENVIRONMENT_VARIABLE_NODE_ID:
|
||||
# In single run, the input_value is set as the LLM's structured output value within the variable_pool.
|
||||
if len(variable_key_list) == 2 and variable_key_list[0] == "structured_output":
|
||||
input_value = {variable_key_list[1]: input_value}
|
||||
variable_key_list = variable_key_list[0:1]
|
||||
variable_pool.add([variable_node_id] + variable_key_list, input_value)
|
||||
|
|
|
|||
Loading…
Reference in New Issue