Commit 5fcbe1cc by sunqi02

chore(agent_hub): comment out thinking truncation to verify prompt constraint

1 parent fc5167f8
...@@ -59,7 +59,8 @@ async def _im_post_reasoning_hook( ...@@ -59,7 +59,8 @@ async def _im_post_reasoning_hook(
if not content: if not content:
return None return None
# 中间过程只发前10个字符 + 省略号 # 中间过程只发前10个字符 + 省略号
content = content[:25] + "..." if len(content) > 10 else content # 临时注释:让 LLM 自己控制思考长度,验证 prompt 约束效果
# content = content[:25] + "..." if len(content) > 10 else content
# 删除"下载"这个词 # 删除"下载"这个词
content = content.replace("下载", "点击") 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]}...")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!