fix convert bug

This commit is contained in:
takatost 2024-03-19 20:51:06 +08:00
parent 0183651cd5
commit df4e1339da

View File

@ -523,7 +523,7 @@ class WorkflowConverter:
"variable": v['variable'], "variable": v['variable'],
"value_selector": ["start", v['variable']] "value_selector": ["start", v['variable']]
} for v in start_node['data']['variables']], } for v in start_node['data']['variables']],
"prompts": prompts, "prompt_template": prompts,
"memory": memory, "memory": memory,
"context": { "context": {
"enabled": knowledge_retrieval_node is not None, "enabled": knowledge_retrieval_node is not None,
@ -571,10 +571,10 @@ class WorkflowConverter:
"data": { "data": {
"title": "ANSWER", "title": "ANSWER",
"type": NodeType.ANSWER.value, "type": NodeType.ANSWER.value,
"variables": { "variables": [{
"variable": "text", "variable": "text",
"value_selector": ["llm", "text"] "value_selector": ["llm", "text"]
}, }],
"answer": "{{text}}" "answer": "{{text}}"
} }
} }