From 85bd436b1f3bc15d395a7ed9976dc2da7d040611 Mon Sep 17 00:00:00 2001 From: Jerryplusy Date: Wed, 7 Jan 2026 18:33:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=EF=B8=8F=C2=A0refactor(config):=20?= =?UTF-8?q?remove=20blackwords=20configuration=20file=20and=20clean=20unus?= =?UTF-8?q?ed=20fields=20in=20ai.json=20and=20config.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/ai.json | 4 +- config/blackwords.json | 135 ----------------------------------------- config/config.json | 2 - 3 files changed, 1 insertion(+), 140 deletions(-) delete mode 100644 config/blackwords.json diff --git a/config/ai.json b/config/ai.json index 8e9de02..b7c9880 100644 --- a/config/ai.json +++ b/config/ai.json @@ -32,8 +32,6 @@ "getChatHistoryLength":20, "?keywordCache": "是否缓存关键词到本地", "keywordCache": true, - "?pinyinMatch": "是否启用拼音匹配", - "pinyinMatch": true, "?blockGroup": "禁用的群聊(黑名单)", "blockGroup": [], "?whiteGroup": "白名单群聊,存在该部分时,黑名单将被禁用", @@ -82,7 +80,7 @@ "?model": "图像生成模型名称(支持gemini-3-pro-image-preview等)", "model": "gemini-3-pro-image-preview", "?baseApi": "图像生成API基础地址(不加v1后面的)", - "baseApi": "https://api.uniapi.io", + "baseApi": "https://api.siliconflow.cn", "?apiKey": "图像生成API密钥", "apiKey": "", "?timeout": "图像生成超时时间(豪秒)", diff --git a/config/blackwords.json b/config/blackwords.json deleted file mode 100644 index 2a4d6f2..0000000 --- a/config/blackwords.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "?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": [] - } - -} diff --git a/config/config.json b/config/config.json index 0c3c6d2..d6b236b 100644 --- a/config/config.json +++ b/config/config.json @@ -8,14 +8,12 @@ "autoUpdate": true, "poke": true, "60s": true, - "fanqie": true, "zwa": true, "rss": true, "help": true, "welcome": true, "faceReply": true, "ai": true, - "blackWords": true, "music": true, "auth": true }