fix dialogue_count

This commit is contained in:
takatost 2024-08-22 13:06:17 +08:00
parent 92072e2ed7
commit d6da7b0336

View File

@ -115,8 +115,6 @@ class AdvancedChatAppRunner(WorkflowBasedAppRunner):
):
return
db.session.close()
# Init conversation variables
stmt = select(ConversationVariable).where(
ConversationVariable.app_id == self.conversation.app_id, ConversationVariable.conversation_id == self.conversation.id
@ -163,6 +161,8 @@ class AdvancedChatAppRunner(WorkflowBasedAppRunner):
# init graph
graph = self._init_graph(graph_config=workflow.graph_dict)
db.session.close()
# RUN WORKFLOW
workflow_entry = WorkflowEntry(
tenant_id=workflow.tenant_id,