fix: 在模型和工具调用期间进行打断后说完话错误退出问题

This commit is contained in:
Sakura-RanChen
2026-04-23 10:17:43 +08:00
parent 8c18e48b97
commit ff66b815a5
2 changed files with 3 additions and 1 deletions
@@ -9,6 +9,7 @@ TAG = __name__
async def handleAbortMessage(conn: "ConnectionHandler"):
conn.logger.bind(tag=TAG).info("Abort message received")
# 设置成打断状态,会自动打断llm、tts任务
conn.close_after_chat = False
conn.client_abort = True
conn.clear_queues()
# 打断客户端说话状态