fix: 修复对话后未生成对话日志 (#1725)

This commit is contained in:
shaohuzhang1 2024-12-02 10:44:12 +08:00 committed by GitHub
parent f547828bc9
commit be53247bcd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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):