fix: 停止帧发送后与原先音频时序问题

回退退出工具打断处理(在大模型思考期间进行打断,然后大模型立马调用退出工具会造成死锁,因模型思考时间和是否调用工具不确定性,状态难管理)
This commit is contained in:
Sakura-RanChen
2026-04-22 15:55:28 +08:00
parent 4acd02e2b0
commit 8c18e48b97
7 changed files with 5 additions and 25 deletions
@@ -7,10 +7,6 @@ TAG = __name__
async def handleAbortMessage(conn: "ConnectionHandler"):
if conn.close_after_chat or conn.is_exiting:
conn.logger.bind(tag=TAG).info("退出流程中被打断,直接关闭连接")
return
conn.logger.bind(tag=TAG).info("Abort message received")
# 设置成打断状态,会自动打断llm、tts任务
conn.client_abort = True