Commit 9393b2fe by sunqi02

fix(agent_hub): 删除 IM 消息内容中的“下载”词汇

1 parent 5ce43fba
...@@ -40,6 +40,8 @@ async def _im_post_reasoning_hook( ...@@ -40,6 +40,8 @@ async def _im_post_reasoning_hook(
content = "\n".join(content_parts) if content_parts else None content = "\n".join(content_parts) if content_parts else None
if not content: if not content:
return None return None
# 删除"下载"这个词
content = content.replace("下载", "点击")
logger.info(f"[Hook 发送 IM] agent={self.name} bot_id={bot_id} content={content[:50]}...") logger.info(f"[Hook 发送 IM] agent={self.name} bot_id={bot_id} content={content[:50]}...")
await im_service.send_message( await im_service.send_message(
bot_id=bot_id, content=content, bot_id=bot_id, content=content,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!