2023-03-18 20:43:50 +08:00
|
|
|
|
{
|
|
|
|
|
"comment": "这是override.json支持的字段全集, 关于override.json机制, 请查看https://github.com/RockChinQ/QChatGPT/pull/271",
|
|
|
|
|
"mirai_http_api_config": {
|
|
|
|
|
"adapter": "WebSocketAdapter",
|
|
|
|
|
"host": "localhost",
|
|
|
|
|
"port": 8080,
|
|
|
|
|
"verifyKey": "yirimirai",
|
|
|
|
|
"qq": 1234567890
|
|
|
|
|
},
|
|
|
|
|
"openai_config": {
|
|
|
|
|
"api_key": {
|
|
|
|
|
"default": "openai_api_key"
|
|
|
|
|
},
|
2023-03-26 23:27:17 +08:00
|
|
|
|
"http_proxy": null,
|
|
|
|
|
"reverse_proxy": null
|
2023-03-18 20:43:50 +08:00
|
|
|
|
},
|
|
|
|
|
"admin_qq": 0,
|
|
|
|
|
"default_prompt": {
|
|
|
|
|
"default": "如果我之后想获取帮助,请你说“输入!help获取帮助”"
|
|
|
|
|
},
|
2023-03-24 20:02:50 +08:00
|
|
|
|
"preset_mode": "normal",
|
2023-03-18 20:43:50 +08:00
|
|
|
|
"response_rules": {
|
|
|
|
|
"at": true,
|
|
|
|
|
"prefix": [
|
|
|
|
|
"/ai",
|
|
|
|
|
"!ai",
|
|
|
|
|
"!ai",
|
|
|
|
|
"ai"
|
|
|
|
|
],
|
|
|
|
|
"regexp": [],
|
|
|
|
|
"random_rate": 0.0
|
|
|
|
|
},
|
|
|
|
|
"ignore_rules": {
|
|
|
|
|
"prefix": [
|
|
|
|
|
"/"
|
|
|
|
|
],
|
|
|
|
|
"regexp": []
|
|
|
|
|
},
|
|
|
|
|
"income_msg_check": false,
|
|
|
|
|
"sensitive_word_filter": true,
|
|
|
|
|
"baidu_check": false,
|
|
|
|
|
"baidu_api_key": "",
|
|
|
|
|
"baidu_secret_key": "",
|
|
|
|
|
"inappropriate_message_tips": "[百度云]请珍惜机器人,当前返回内容不合规",
|
|
|
|
|
"encourage_sponsor_at_start": true,
|
2023-03-24 20:02:50 +08:00
|
|
|
|
"prompt_submit_length": 2048,
|
2023-03-18 20:43:50 +08:00
|
|
|
|
"completion_api_params": {
|
|
|
|
|
"model": "gpt-3.5-turbo",
|
|
|
|
|
"temperature": 0.9,
|
|
|
|
|
"top_p": 1,
|
|
|
|
|
"frequency_penalty": 0.2,
|
|
|
|
|
"presence_penalty": 1.0
|
|
|
|
|
},
|
|
|
|
|
"image_api_params": {
|
|
|
|
|
"size": "256x256"
|
|
|
|
|
},
|
|
|
|
|
"quote_origin": true,
|
|
|
|
|
"include_image_description": true,
|
|
|
|
|
"process_message_timeout": 30,
|
|
|
|
|
"show_prefix": false,
|
|
|
|
|
"blob_message_threshold": 256,
|
|
|
|
|
"blob_message_strategy": "forward",
|
|
|
|
|
"font_path": "",
|
|
|
|
|
"retry_times": 3,
|
|
|
|
|
"hide_exce_info_to_user": false,
|
2023-04-07 16:34:23 +08:00
|
|
|
|
"alter_tip_message": "出错了,请稍后再试",
|
2023-03-24 20:02:50 +08:00
|
|
|
|
"sys_pool_num": 8,
|
|
|
|
|
"admin_pool_num": 2,
|
|
|
|
|
"user_pool_num": 6,
|
2023-03-18 20:43:50 +08:00
|
|
|
|
"session_expire_time": 1200,
|
|
|
|
|
"rate_limitation": 60,
|
|
|
|
|
"rate_limit_strategy": "wait",
|
2023-04-07 16:34:23 +08:00
|
|
|
|
"rate_limit_drop_tip": "本分钟对话次数超过限速次数,此对话被丢弃",
|
2023-03-18 20:43:50 +08:00
|
|
|
|
"upgrade_dependencies": true,
|
|
|
|
|
"report_usage": true,
|
|
|
|
|
"logging_level": 20,
|
2023-04-07 16:34:23 +08:00
|
|
|
|
"help_message": "此机器人通过调用OpenAI的GPT-3大型语言模型生成回复,不具有情感。\n你可以用自然语言与其交流,回复的消息中[GPT]开头的为模型生成的语言,[bot]开头的为程序提示。\n了解此项目请找QQ 1010553892 联系作者\n请不要用其生成整篇文章或大段代码,因为每次只会向模型提交少部分文字,生成大部分文字会产生偏题、前后矛盾等问题\n每次会话最后一次交互后20分钟后会自动结束,结束后将开启新会话,如需继续前一次会话请发送 !last 重新开启\n欢迎到github.com/RockChinQ/QChatGPT 给个star\n\n指令帮助信息请查看: https://github.com/RockChinQ/QChatGPT/wiki/%E5%8A%9F%E8%83%BD%E4%BD%BF%E7%94%A8#%E6%9C%BA%E5%99%A8%E4%BA%BA%E6%8C%87%E4%BB%A4"
|
2023-03-18 20:43:50 +08:00
|
|
|
|
}
|