soften ai_auto_response group domain steering

This commit is contained in:
liuwei
2026-04-10 09:45:39 +08:00
parent ef283c1818
commit d2856bee2e
4 changed files with 11 additions and 8 deletions

View File

@@ -281,16 +281,16 @@ class ContextBuilder:
summary = summary[:117] + "..."
lines = [
f"群模式:{group_profile.get('mode', 'social')}",
f"知识域:{group_profile.get('knowledge_domain', 'general')}",
f"配置知识域:{group_profile.get('configured_domain', 'general')}",
f"历史推断知识域:{group_profile.get('group_memory_domain', 'general')}",
f"知识域偏向{group_profile.get('knowledge_domain', 'general')}(仅作理解倾向,不是每次都要显式提到)",
f"配置知识域:{group_profile.get('configured_domain', 'general')}(仅在当前话题相关时参考)",
f"历史推断知识域:{group_profile.get('group_memory_domain', 'general')}(弱参考)",
f"回答风格:{group_profile.get('reply_style', '自然短句')}",
f"互动调性:{group_profile.get('interaction_tone', '自然群友感')}",
f"幽默强度:{group_profile.get('humor_style', '轻微')}",
f"嘴硬程度:{group_profile.get('sharpness_style', '轻微嘴硬,不刻薄')}",
f"表达松弛度:{group_profile.get('expressiveness_style', '克制')}",
f"称呼强度:{group_profile.get('address_style', '低频称呼,默认直接接话')}",
f"知识重点{focus}" if focus else "",
f"可能相关的话题背景{focus}" if focus else "",
f"群长期摘要:{summary}" if summary else "",
f"历史推断社交风格:{ContextBuilder._build_style_summary(group_profile.get('group_memory_style', {}))}"
if group_profile.get("group_memory_style")