fix: 修复对话后未生成对话日志 (#1725)
This commit is contained in:
parent
f547828bc9
commit
be53247bcd
@ -552,10 +552,15 @@ class WorkflowManage:
|
|||||||
up_node.id):
|
up_node.id):
|
||||||
result.append(node.get_answer_text())
|
result.append(node.get_answer_text())
|
||||||
else:
|
else:
|
||||||
content = result[len(result) - 1]
|
if len(result) > 0:
|
||||||
answer_text = node.get_answer_text()
|
exec_index = len(result) - 1
|
||||||
result[len(result) - 1] += answer_text if len(
|
content = result[exec_index]
|
||||||
content) == 0 else ('\n\n' + answer_text)
|
result[exec_index] += answer_text if len(
|
||||||
|
content) == 0 else ('\n\n' + answer_text)
|
||||||
|
else:
|
||||||
|
answer_text = node.get_answer_text()
|
||||||
|
result.insert(0, answer_text)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def get_next_node(self):
|
def get_next_node(self):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user