From 6e0d2f9437a4e37a6b3cefcef0f021030ecc12bb Mon Sep 17 00:00:00 2001 From: zhayujie Date: Tue, 28 Nov 2023 16:29:32 +0800 Subject: [PATCH] fix: remove unuse log and add plugin config in docker config --- bot/linkai/link_ai_bot.py | 2 +- plugins/config.json.template | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bot/linkai/link_ai_bot.py b/bot/linkai/link_ai_bot.py index 22f5172..6815eca 100644 --- a/bot/linkai/link_ai_bot.py +++ b/bot/linkai/link_ai_bot.py @@ -362,7 +362,7 @@ class LinkAISessionManager(SessionManager): try: max_tokens = conf().get("conversation_max_tokens", 2500) tokens_cnt = session.discard_exceeding(max_tokens, total_tokens) - logger.info(f"[LinkAI] chat history discard, before tokens={total_tokens}, now tokens={tokens_cnt}") + logger.debug(f"[LinkAI] chat history, before tokens={total_tokens}, now tokens={tokens_cnt}") except Exception as e: logger.warning("Exception when counting tokens precisely for session: {}".format(str(e))) return session diff --git a/plugins/config.json.template b/plugins/config.json.template index 3334a62..95a59bc 100644 --- a/plugins/config.json.template +++ b/plugins/config.json.template @@ -33,6 +33,12 @@ "max_tasks": 3, "max_tasks_per_user": 1, "use_image_create_prefix": true + }, + "summary": { + "enabled": true, + "group_enabled": true, + "max_file_size": 5000, + "type": ["FILE", "SHARING"] } } }