feat(affinity-flow): 重构亲和流配置系统
将硬编码的兴趣度评分参数迁移到集中式配置管理,新增AffinityFlowConfig配置类 - 从全局配置加载评分权重、阈值和计算参数 - 统一管理匹配奖励、关系分数和提及bot相关配置 - 更新配置文件模板包含完整的亲和流参数 - 确保各模块使用一致的配置值而非硬编码常量
This commit is contained in:
@@ -42,7 +42,8 @@ from src.config.official_configs import (
|
||||
CrossContextConfig,
|
||||
PermissionConfig,
|
||||
CommandConfig,
|
||||
PlanningSystemConfig
|
||||
PlanningSystemConfig,
|
||||
AffinityFlowConfig
|
||||
)
|
||||
|
||||
from .api_ada_configs import (
|
||||
@@ -431,6 +432,9 @@ class Config(ValidatedConfigBase):
|
||||
cross_context: CrossContextConfig = Field(
|
||||
default_factory=lambda: CrossContextConfig(), description="跨群聊上下文共享配置"
|
||||
)
|
||||
affinity_flow: AffinityFlowConfig = Field(
|
||||
default_factory=lambda: AffinityFlowConfig(), description="亲和流配置"
|
||||
)
|
||||
|
||||
|
||||
class APIAdapterConfig(ValidatedConfigBase):
|
||||
|
||||
Reference in New Issue
Block a user