refactor(chat): 重构关系系统并优化消息打断处理机制
- 移除独立的RelationshipConfig,将关系追踪参数整合到AffinityFlowConfig - 实现消息打断后立即重新处理流程,提升交互响应性 - 优化关系追踪系统,添加概率筛选和超时保护机制 - 改进机器人自引用处理,确保消息内容正确显示 - 增强用户信息提取逻辑,兼容多种消息格式 - 添加异步后台任务处理,避免阻塞主回复流程 - 调整兴趣评分阈值和权重参数,优化消息匹配精度
This commit is contained in:
@@ -154,7 +154,7 @@ class PromptBuilder:
|
||||
)
|
||||
|
||||
relation_prompt = ""
|
||||
if global_config.relationship.enable_relationship and who_chat_in_group:
|
||||
if global_config.affinity_flow.enable_relationship_tracking and who_chat_in_group:
|
||||
relationship_fetcher = relationship_fetcher_manager.get_fetcher(chat_stream.stream_id)
|
||||
|
||||
# 将 (platform, user_id, nickname) 转换为 person_id
|
||||
|
||||
Reference in New Issue
Block a user