mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-25 00:23:53 +08:00
增加关闭聊天的功能
明确的退出命令可以直接关闭聊天 LLM检测到的结束聊天意图则在LLM回复后关闭聊天
This commit is contained in:
+1
-1
@@ -90,4 +90,4 @@ def remove_punctuation_and_length(text):
|
||||
|
||||
if result == "Yeah":
|
||||
return 0
|
||||
return len(result)
|
||||
return len(result),result
|
||||
|
||||
Reference in New Issue
Block a user