主动开聊

This commit is contained in:
zihanjian
2025-10-23 14:07:57 +08:00
parent ac5f10a342
commit e16c80416d
4 changed files with 115 additions and 13 deletions

View File

@@ -170,6 +170,22 @@ GROUP_MODELS:
max_history: 50 # 回顾最近50条消息
```
#### 群聊随机闲聊回复
如果希望机器人在群聊中偶尔主动开聊,可在 `groups.models.mapping` 中为群添加 `random_chitchat_probability`
```yaml
groups:
models:
mapping:
- room_id: "12345678@chatroom"
model: 2
max_history: 30
random_chitchat_probability: 0.3 # 0-10 表示关闭
```
未设置该字段的群默认关闭;写入 0 可以显式禁用。
#### 功能开关
您可以启用或禁用各种功能: