feat:现支持两种独立的回复模式,推理模型和心流

This commit is contained in:
SengokuCola
2025-04-01 22:59:35 +08:00
parent cb547828fe
commit 02710a77ef
11 changed files with 1030 additions and 483 deletions

View File

@@ -1,5 +1,5 @@
[inner]
version = "1.0.3"
version = "1.0.4"
#以下是给开发人员阅读的,一般用户不需要阅读
@@ -52,15 +52,19 @@ schedule_temperature = 0.3 # 日程表温度建议0.3-0.6
[platforms] # 必填项目,填写每个平台适配器提供的链接
nonebot-qq="http://127.0.0.1:18002/api/message"
[response] #使用哪种回复策略
response_mode = "heart_flow" # 回复策略可选值heart_flow心流reasoning推理
#推理回复参数
model_r1_probability = 0.7 # 麦麦回答时选择主要回复模型1 模型的概率
model_v3_probability = 0.3 # 麦麦回答时选择次要回复模型2 模型的概率
[heartflow] # 注意可能会消耗大量token请谨慎开启
enable = false #该选项未启用
sub_heart_flow_update_interval = 60 # 子心流更新频率,间隔 单位秒
sub_heart_flow_freeze_time = 120 # 子心流冻结时间,超过这个时间没有回复,子心流会冻结,间隔 单位秒
sub_heart_flow_stop_time = 600 # 子心流停止时间,超过这个时间没有回复,子心流会停止,间隔 单位秒
heart_flow_update_interval = 300 # 心流更新频率,间隔 单位秒
#思维流适合搭配低能耗普通模型使用例如qwen2.5 32b
[message]
max_context_size = 12 # 麦麦获得的上文数量建议12太短太长都会导致脑袋尖尖
@@ -87,9 +91,6 @@ response_interested_rate_amplifier = 1 # 麦麦回复兴趣度放大系数,听
down_frequency_rate = 3 # 降低回复频率的群组回复意愿降低系数 除法
emoji_response_penalty = 0.1 # 表情包回复惩罚系数设为0为不回复单个表情包减少单独回复表情包的概率
[response] #这些选项已无效
model_r1_probability = 0 # 麦麦回答时选择主要回复模型1 模型的概率
model_v3_probability = 1.0 # 麦麦回答时选择次要回复模型2 模型的概率
[emoji]
check_interval = 15 # 检查破损表情包的时间间隔(分钟)