diff --git a/plugins/member_roast/config.toml b/plugins/member_roast/config.toml index fca515c..fea7230 100644 --- a/plugins/member_roast/config.toml +++ b/plugins/member_roast/config.toml @@ -21,9 +21,12 @@ max_retries = 2 retry_delay_seconds = 1.5 [profile] -# 最近消息窗口:尽量贴近用户提出的“最近 50 条发言”。 +# 最近消息窗口: +# 1. 初版按 50 条实现,但用户希望拉高到 200 条,便于模型更稳定识别人设和口头禅; +# 2. 这里直接把默认值提到 200,优先让“锐评像群里老油条写的”; +# 3. 真要收缩样本时,只需要改这里,不用动代码。 sample_days = 30 -message_limit = 50 +message_limit = 200 min_message_count = 8 context_stale_hours = 24 name_match_min_chars = 2 diff --git a/plugins/member_roast/main.py b/plugins/member_roast/main.py index b194b14..d977bca 100644 --- a/plugins/member_roast/main.py +++ b/plugins/member_roast/main.py @@ -52,7 +52,11 @@ class MemberRoastService: profile_cfg = self.plugin_config.get("profile", {}) or {} self.sample_days = max(int(profile_cfg.get("sample_days", 30) or 30), 1) - self.message_limit = max(int(profile_cfg.get("message_limit", 50) or 50), 1) + # 最近发言样本默认提升到 200 条: + # 1. 锐评比普通摘要更依赖口头禅、重复行为和阶段性状态; + # 2. 样本过少时,模型容易只抓住最近几句偶发发言,导致人设偏差; + # 3. 因此这里放宽窗口,让模型更容易看出“长期稳定抽象点”。 + self.message_limit = max(int(profile_cfg.get("message_limit", 200) or 200), 1) self.min_message_count = max(int(profile_cfg.get("min_message_count", 8) or 8), 1) self.context_stale_hours = max(int(profile_cfg.get("context_stale_hours", 24) or 24), 1) self.history_profile_days = max(int(profile_cfg.get("history_profile_days", 60) or 60), 1)