mirror of https://github.com/langgenius/dify.git
fix convert bug
This commit is contained in:
parent
0183651cd5
commit
df4e1339da
|
|
@ -523,7 +523,7 @@ class WorkflowConverter:
|
|||
"variable": v['variable'],
|
||||
"value_selector": ["start", v['variable']]
|
||||
} for v in start_node['data']['variables']],
|
||||
"prompts": prompts,
|
||||
"prompt_template": prompts,
|
||||
"memory": memory,
|
||||
"context": {
|
||||
"enabled": knowledge_retrieval_node is not None,
|
||||
|
|
@ -571,10 +571,10 @@ class WorkflowConverter:
|
|||
"data": {
|
||||
"title": "ANSWER",
|
||||
"type": NodeType.ANSWER.value,
|
||||
"variables": {
|
||||
"variables": [{
|
||||
"variable": "text",
|
||||
"value_selector": ["llm", "text"]
|
||||
},
|
||||
}],
|
||||
"answer": "{{text}}"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue