generated from Soulter/helloworld
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_conf_schema.json
More file actions
78 lines (78 loc) · 2.5 KB
/
_conf_schema.json
File metadata and controls
78 lines (78 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"enable_keyword_switching": {
"description": "启用关键词切换",
"hint": "关闭后仍然可以使用指令切换。",
"type": "bool",
"default": true
},
"keyword_mappings": {
"description": "关键词与人格切换映射列表",
"hint": "每行填写 关键词:人格ID,使用英文冒号分隔!!!",
"type": "text",
"default":"关键词:人格"
},
"auto_switch_scope": {
"description": "切换作用范围",
"hint": "决定切换后人格应用于当前对话、会话或全局",
"type": "string",
"default": "conversation",
"options": [
"conversation",
"session",
"global"
]
},
"manage_wait_timeout_seconds": {
"description": "管理指令等待超时时长",
"hint": "创建或更新人格时等待用户发送内容的最长时间(秒)",
"type": "int",
"default": 60
},
"admin_commands": {
"description": "需要管理员权限的指令列表",
"hint": "在此列表中的指令需要管理员权限执行。可选值: switch, create, update, delete, view, list, help, avatar",
"type": "list",
"default": ["switch", "create", "update", "delete", "view", "avatar"]
},
"enable_auto_switch_announce": {
"description": "切换提示",
"hint": "切换人格时,是否发送提示",
"type": "bool",
"default": true
},
"clear_context_on_switch": {
"description": "切换后清空上下文",
"hint": "启用后,切换人格后会自动清空当前对话上下文,不需要手动reset",
"type": "bool",
"default": false
},
"sync_nickname_on_switch": {
"description": "修改 QQ 昵称",
"hint": "是否在切换人格时改变 QQ 昵称(仅适配NapCat!!!)",
"type": "bool",
"default": true
},
"nickname_sync_mode": {
"description": "昵称同步模式",
"hint": "profile: 仅修改QQ昵称; group_card: 群聊中仅修改群名片,私聊不修改; hybrid: 群聊中修改群名片,私聊中修改QQ昵称。",
"type": "string",
"default": "group_card",
"options": [
"profile",
"group_card",
"hybrid"
]
},
"sync_avatar_on_switch": {
"description": "修改 QQ 头像",
"hint": "是否在切换人格时改变 QQ 头像(仅适配NapCat!!!)",
"type": "bool",
"default": false
},
"nickname_template": {
"description": "昵称模板",
"hint": "更改昵称时使用的模板,支持 {persona_id}(人格ID) 占位符",
"type": "string",
"default": "[B0T]{persona_id}"
}
}