This commit is contained in:
tt-P607
2025-10-20 10:05:45 +08:00
18 changed files with 1149 additions and 16 deletions

View File

@@ -149,6 +149,14 @@ ban_msgs_regex = [
#"\\d{4}-\\d{2}-\\d{2}", # 匹配日期
]
[notice] # Notice消息配置
enable_notice_trigger_chat = false # 是否允许notice消息触发聊天流程默认关闭notice只会被记录但不会触发回复
notice_in_prompt = true # 是否在提示词中展示最近的notice消息
notice_prompt_limit = 5 # 在提示词中展示的最大notice数量
notice_time_window = 3600 # notice时间窗口只有这个时间范围内的notice会在提示词中展示默认1小时
max_notices_per_chat = 30 # 每个聊天保留的notice数量上限
notice_retention_time = 86400 # notice保留时间默认24小时
[anti_prompt_injection] # LLM反注入系统配置
enabled = false # 是否启用反注入系统
enabled_rules = false # 是否启用规则检测