From a19db22b16c1e4d3bb47e08a7353f082a8ceb911 Mon Sep 17 00:00:00 2001 From: m3taversal Date: Tue, 24 Mar 2026 15:03:11 +0000 Subject: [PATCH] bump: chat-level history to 30 exchanges (~6K tokens) Pentagon-Agent: Epimetheus <3D35839A-7722-4740-B93D-51157F7D5E70> --- telegram/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram/bot.py b/telegram/bot.py index a7483b5..6649fda 100644 --- a/telegram/bot.py +++ b/telegram/bot.py @@ -101,7 +101,7 @@ unanswered_count: dict[tuple[int, int], int] = {} # (chat_id, user_id) → unan # Conversation history — last N exchanges for prompt context (Ganymede: high-value change) MAX_HISTORY_USER = 5 -MAX_HISTORY_CHAT = 10 # Ganymede: group chats need more context (multiple users) +MAX_HISTORY_CHAT = 30 # Group chats: multiple users, longer threads conversation_history: dict[tuple[int, int], list[dict]] = {} # (chat_id, user_id) → [{user, bot}]