fix convert bug

This commit is contained in:
takatost 2024-03-19 20:51:06 +08:00
parent 0183651cd5
commit df4e1339da
1 changed files with 3 additions and 3 deletions

View File

@ -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}}"
}
}