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):
result.append(node.get_answer_text())
else:
content = result[len(result) - 1]
answer_text = node.get_answer_text()
result[len(result) - 1] += answer_text if len(
content) == 0 else ('\n\n' + answer_text)
if len(result) > 0:
exec_index = len(result) - 1
content = result[exec_index]
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
def get_next_node(self):