fix: increase max_messages to 500 as temporary workaround

Temporarily increase default max_messages from 50 to 500 to allow
more context in conversations until a proper consolidation strategy
is implemented.
This commit is contained in:
chengyongru 2026-02-13 22:10:39 +08:00
parent afc8d50659
commit a3f4bb74ff

View File

@ -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.