浏览代码

fix: Instance <Account> is not bound to a Session (#20347)

Signed-off-by: -LAN- <laipz8200@outlook.com>
tags/1.4.2
-LAN- 5 个月前
父节点
当前提交
eaaf551497
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0
    2
      api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py

+ 0
- 2
api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py 查看文件

@@ -455,8 +455,6 @@ class EasyUIBasedGenerateTaskPipeline(BasedGenerateTaskPipeline, MessageCycleMan
agent_thought: Optional[MessageAgentThought] = (
db.session.query(MessageAgentThought).filter(MessageAgentThought.id == event.agent_thought_id).first()
)
db.session.refresh(agent_thought)
db.session.close()

if agent_thought:
return AgentThoughtStreamResponse(

正在加载...
取消
保存