修复ActionResponse为NOTFOUND时候卡住主线程的bug (#285)

修复ActionResponse为NOTFOUND时候卡住主线程的bug
This commit is contained in:
vonweller
2025-03-11 21:10:44 +08:00
committed by GitHub
parent 8064e84276
commit 3d6bd0e23e
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -437,6 +437,9 @@ class ConnectionHandler:
self.dialogue.put(Message(role="assistant", content=text))
if result.action == Action.REQLLM: # 调用函数后再请求llm生成回复
text = result.response
if result.action == Action.NOTFOUND:
text = result.response
def _tts_priority_thread(self):