Skip to content

Your lightweight open-source personal agent.

fix: increase max_messages to 500 as temporary workaround

chengyongrua3f4bb74fff5
diff --git a/nanobot/session/manager.py b/nanobot/session/manager.py
index 9549fd2e9..9fce9ee3b 100644
--- a/nanobot/session/manager.py
+++ b/nanobot/session/manager.py
@@ -41,7 +41,7 @@ class Session:
self.messages.append(msg)
self.updated_at = datetime.now()
- def get_history(self, max_messages: int = 50) -> list[dict[str, Any]]:
+ def get_history(self, max_messages: int = 500) -> list[dict[str, Any]]:
"""
Get message history for LLM context.