feat:完善规范

This commit is contained in:
Jerry 2025-10-16 13:43:41 +08:00
parent 2efd7797a2
commit e06c75a845
5 changed files with 171 additions and 19 deletions

View File

@ -1,17 +1,27 @@
{
"mode": "deepseek",
"modelType": "deepseek-ai/DeepSeek-V3",
"historyLength": 3,
"maxLength": 3,
"chatTemperature": 1,
"pluginTemperature": 0.5,
"nickName": "寄气人",
"checkChat": {
"rdNum": 2,
"masterReply": true,
"userId": [],
"blackGroups": [],
"enableGroups": []
},
"maxMessageLength": 100
"//": "请不要修改以?开头的字段",
"?mode": "对话模式,mix为混合,ai为纯人工智能,keyword为纯关键词",
"mode": "mix",
"?stream": "是否开启流式输出,开启有助于提升速度,但可能存在问题",
"stream": false,
"?baseApi": "请求基础api",
"baseApi": "https://api.siliconflow.cn/v1",
"?apiKey": "api密钥",
"apiKey": "",
"?modelType": "模型名称,请根据baseApi填写的服务商的对应的模型",
"modelType": "deepseek-ai/DeepSeek-V3.2-Exp",
"?temperature": "聊天温度,可选0-2.0,温度越高创造性越高",
"temperature": 1.2,
"?concurrency": "聊天请求最大并发数",
"concurrency": 3,
"?tools": "是否允许ai调用工具",
"tools": true,
"?storage": "聊天记忆储存方式,sqlLite:更优的性能,json:方便修改",
"storage": "json",
"?timeout": "记忆默认超时时间(天)",
"timeout": 30,
"?blockGroup": "禁用的群聊(黑名单)",
"blockGroup": [],
"?whiteGroup": "白名单群聊,存在该部分时,黑名单将被禁用",
"whiteGroup": []
}

View File

@ -1,4 +1,6 @@
{
"//": "请不要修改以?开头的字段",
"?url": "验证基础api,有需求可自建",
"url": "https://carbon.crystelf.top",
"default": {
"enable": false,

135
config/blackwords.json Normal file
View File

@ -0,0 +1,135 @@
{
"?check": "是否在模糊匹配时使用人工智能二次检查",
"check": true,
"hours": 2,
"min": 30,
"day": 5,
"?level": "不同等级对应惩罚",
"level": {
"1": "ban",
"2": "ban",
"3": "day",
"4": "hours",
"5": "min"
},
"?words": "不同等级对应的违禁词",
"words": {
"1": [],
"2": [],
"3": [
"byd",
"qs",
"sb",
"2b",
"cnm",
"rnm",
"fw",
"还不死",
"没父母",
"没母亲",
"没家人",
"畜生",
"赶紧死",
"举报",
"举办",
"杀你",
"死一死",
"死了算了",
"傻子",
"傻X",
"神经病",
"废材",
"傻",
"逼",
"phuck",
"fuck",
"nigger",
"niger",
"mom"
],
"4": [
"nmsl",
"mdzz",
"jb",
"憨憨",
"rnm",
"低能",
"撅你",
"找死",
"混蛋",
"蠢",
"混账",
"傻瓜",
"屁",
"屎",
"白痴",
"小丑",
"贱",
"臭",
"骚",
"尿",
"猪",
"粪",
"称冯",
"柠檬",
"缲称犸",
"亻尔女马",
"mother",
"bitch",
"你冯"
],
"5": [
"入机",
"低智",
"无用",
"无能",
"闭嘴",
"别说话",
"禁言你",
"烦"
]
},
"?pinyin": "模糊匹配,可能出现误判",
"pinyin":{
"1": [],
"2": [],
"3": [
"qusi",
"cao",
"gun",
"jubao",
"juban"
],
"4": [
"shabi",
"wocaonima",
"sima",
"sabi",
"zhizhang",
"naocan",
"naotan",
"shadiao",
"nima",
"simadongxi",
"simawanyi",
"hanbi",
"siquanjia",
"hanpi",
"laji",
"feiwu",
"meima",
"simu",
"rini",
"chaonima",
"renji",
"youbing",
"bendan",
"ben",
"youbin",
"chengma",
"chenma"
],
"5": []
}
}

View File

@ -1,6 +1,8 @@
{
"debug": true,
"?core": "是否启用晶灵核心相关功能",
"core": true,
"?maxFeed": "最长订阅",
"maxFeed": 10,
"poke": true,
"60s": true,
@ -9,5 +11,7 @@
"rss": true,
"help": true,
"welcome": true,
"faceReply": true
"faceReply": true,
"ai": true,
"blackWords": true
}

View File

@ -58,10 +58,11 @@ const returnMessages = [
{
type: 'memory',
data: 'data to memory',
key: ['key1', 'key2'],
key: ['key1', 'key2'],//用户说的内容包含什么关键词的时候可能需要这条记忆 or 在主动查询记忆的时候搜索的关键词
timeout:30//遗忘时间(天)
},
//概括用户说了什么,必须
//内容需简洁
//内容需简洁,方便自己记忆
{
type: 'summary',
data: 'something',