增加关闭聊天的功能

明确的退出命令可以直接关闭聊天
LLM检测到的结束聊天意图则在LLM回复后关闭聊天
This commit is contained in:
玄凤科技
2025-02-14 16:35:02 +08:00
parent ce64a76dcf
commit 4d35a5ae6a
4 changed files with 43 additions and 2 deletions
+1 -1
View File
@@ -90,4 +90,4 @@ def remove_punctuation_and_length(text):
if result == "Yeah":
return 0
return len(result)
return len(result),result