Jerryplusy 61a9462247 feat(apps/ai.js): enhance message processing to support multimodal inputs and improve user message extraction.
 feat(config/ai.json): add configuration options for multimodal model support.
 feat(lib/ai/aiCaller.js): implement multimodal AI call handling and formatting for diverse message types.
2025-11-30 10:50:12 +08:00

75 lines
2.5 KiB
JSON

{
"//": "请不要修改以?开头的字段",
"?mode": "对话模式,mix为混合,ai为纯人工智能,keyword为纯关键词",
"mode": "mix",
"?baseApi": "请求基础api",
"baseApi": "https://api.siliconflow.cn/v1",
"?apiKey": "api密钥",
"apiKey": "",
"?modelType": "模型名称,请根据baseApi填写的服务商的对应的模型",
"modelType": "deepseek-ai/DeepSeek-V3.2-Exp",
"?multimodalEnabled": "是否启用多模态模型模式,启用后将忽略文本模型",
"multimodalEnabled": false,
"?multimodalModel": "多模态模型名称",
"multimodalModel": "Qwen/Qwen2.5-VL-72B-Instruct",
"?temperature": "聊天温度,可选0-2.0,温度越高创造性越高",
"temperature": 1.2,
"?concurrency": "最大同时聊天群数,一个群最多一个人聊天",
"concurrency": 3,
"?maxMix": "mix模式下,如果用户消息长度大于这个值,那么使用ai回复",
"maxMix": 5,
"?timeout": "记忆默认超时时间(天)",
"timeout": 30,
"?maxSessions": "最大同时存在的sessions群聊数量",
"maxSessions": 10,
"?chatHistory": "聊天上下文最大长度",
"chatHistory": 10,
"?maxMessageLength": "最大消息长度",
"maxMessageLength": 100,
"?getChatHistoryLength": "获取到的聊天上下文长度",
"getChatHistoryLength":20,
"?keywordCache": "是否缓存关键词到本地",
"keywordCache": true,
"?pinyinMatch": "是否启用拼音匹配",
"pinyinMatch": true,
"?blockGroup": "禁用的群聊(黑名单)",
"blockGroup": [],
"?whiteGroup": "白名单群聊,存在该部分时,黑名单将被禁用",
"whiteGroup": [],
"?character": "回复表情包时的角色",
"character": "zhenxun",
"?botPersona": "机器人人设描述",
"botPersona": "你是一个名为晶灵的智能助手,性格温和友善,喜欢帮助用户解决问题.知识渊博,能够回答各种问题,偶尔会使用一些可爱的表情和语气.会记住与用户的对话内容,提供个性化的回复.",
"?codeRenderer": "代码渲染配置",
"codeRenderer": {
"theme": "github",
"fontSize": 14,
"lineNumbers": true,
"backgroundColor": "#f6f8fa"
},
"?markdownRenderer": "Markdown渲染配置",
"markdownRenderer": {
"theme": "dark",
"fontSize": 14,
"codeTheme": "github"
},
"?memeConfig": "表情配置",
"memeConfig": {
"character": "zhenxun",
"availableEmotions": [
"angry",
"bye",
"confused",
"default",
"good",
"goodmorning",
"goodnight",
"happy",
"sad",
"shy",
"sorry",
"surprise"
]
}
}