From 2e391d599d08ea7a7c11442bc2845a1191494c3d Mon Sep 17 00:00:00 2001
From: yj <2077506045@qq.com>
Date: 星期四, 07 八月 2025 17:55:58 +0800
Subject: [PATCH] 新增消息聚会,短时间内同一用户发送的消息聚合才后发送给AI

---
 config.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/config.py b/config.py
index e0b1455..2fcbf94 100644
--- a/config.py
+++ b/config.py
@@ -111,6 +111,11 @@
         self.keyword_filter_enabled = keyword_filter_config.get("enabled", False)
         self.keyword_filter_keywords = keyword_filter_config.get("keywords", [])
 
+        # 娑堟伅鑱氬悎閰嶇疆
+        message_aggregation_config = config_data.get("message_aggregation", {})
+        self.message_aggregation_enabled = message_aggregation_config.get("enabled", True)
+        self.message_aggregation_timeout = message_aggregation_config.get("timeout_seconds", 15)
+
     def update_ecloud_w_id(self, new_w_id: str) -> bool:
         """
         鍔ㄦ�佹洿鏂癊浜戠瀹剁殑w_id閰嶇疆

--
Gitblit v1.9.1