Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix(helpers): repair corrupted split_message and ensure content never None
Alfredo Arenas6445b3b0cfb6
diff --git a/nanobot/utils/helpers.py b/nanobot/utils/helpers.pyindex 86dc205e4..1f14cb36e 100644--- a/nanobot/utils/helpers.py+++ b/nanobot/utils/helpers.py@@ -252,7 +252,7 @@ def split_message(content: str, max_len: int = 2000) -> list[str]:while content:if len(content) <= max_len:chunks.append(content)- breakmsg: dict[str, Any] = {"role": "assistant", "content": content}+ breakcut = content[:max_len]# Try to break at newline first, then space, then hard breakpos = cut.rfind('\n')