fix:解决符号误识别问题

This commit is contained in:
CGD
2025-05-19 15:18:01 +08:00
parent 737c4a6b5d
commit a647f3c105
4 changed files with 16 additions and 15 deletions
@@ -13,10 +13,11 @@ TAG = __name__
async def handle_user_intent(conn, text):
# 检查是否有明确的退出命令
if await check_direct_exit(conn, text):
filtered_text = remove_punctuation_and_length(text)[1]
if await check_direct_exit(conn, filtered_text):
return True
# 检查是否是唤醒词
if await checkWakeupWords(conn, text):
if await checkWakeupWords(conn, filtered_text):
return True
if conn.intent_type == "function_call":