fix(tools): strip <think> blocks from message tool content (#2621)

This commit is contained in:
Flo 2026-04-01 09:42:18 +03:00 committed by Xubin Ren
parent 06989fd65b
commit 8b4d6b6512

View File

@ -84,6 +84,9 @@ class MessageTool(Tool):
media: list[str] | None = None,
**kwargs: Any
) -> str:
from nanobot.utils.helpers import strip_think
content = strip_think(content)
channel = channel or self._default_channel
chat_id = chat_id or self._default_chat_id
# Only inherit default message_id when targeting the same channel+chat.