From a9baf72d190658304b0a41a60179fa53e72f4e52 Mon Sep 17 00:00:00 2001 From: zihanjian Date: Wed, 15 Oct 2025 13:17:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ai_providers/ai_perplexity.py | 3 ++- robot.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ai_providers/ai_perplexity.py b/ai_providers/ai_perplexity.py index cee06c1..6702e2a 100644 --- a/ai_providers/ai_perplexity.py +++ b/ai_providers/ai_perplexity.py @@ -234,7 +234,8 @@ class PerplexityManager: wait_msg = "正在启用满血模式研究中...." if full_research_available else "正在联网查询,请稍候..." if enable_full_research and not full_research_available: self.LOG.warning("收到满血模式请求,但未配置推理模型,退回普通模式。") - send_text_func(wait_msg, at_list=at_user or "", record_message=False) + # 等待提示无需 @ 用户,避免频繁打扰 + send_text_func(wait_msg, at_list="", record_message=False) # 添加线程完成回调,自动清理线程 def thread_finished_callback(): diff --git a/robot.py b/robot.py index 4de721b..fc4a6e9 100644 --- a/robot.py +++ b/robot.py @@ -382,8 +382,10 @@ class Robot(Job): return self._msg_timestamps.append(now) + # 去除 Markdown 粗体标记,避免微信端出现多余符号 + msg = msg.replace("**", "") ats = "" - message_to_send = msg # 保存原始消息用于记录 + message_to_send = msg # 保存清理后的消息用于记录 if at_list: if at_list == "notify@all": ats = " @所有人"