2023-03-18 20:43:50 +08:00
|
|
|
|
{
|
|
|
|
|
"comment": "这是override.json支持的字段全集, 关于override.json机制, 请查看https://github.com/RockChinQ/QChatGPT/pull/271",
|
2023-04-21 17:52:31 +08:00
|
|
|
|
"msg_source_adapter": "yirimirai",
|
2023-03-18 20:43:50 +08:00
|
|
|
|
"mirai_http_api_config": {
|
|
|
|
|
"adapter": "WebSocketAdapter",
|
|
|
|
|
"host": "localhost",
|
|
|
|
|
"port": 8080,
|
|
|
|
|
"verifyKey": "yirimirai",
|
|
|
|
|
"qq": 1234567890
|
|
|
|
|
},
|
2023-04-23 09:32:36 +08:00
|
|
|
|
"nakuru_config": {
|
|
|
|
|
"host": "localhost",
|
|
|
|
|
"port": 6700,
|
|
|
|
|
"http_port": 5700,
|
|
|
|
|
"token": ""
|
|
|
|
|
},
|
2023-03-18 20:43:50 +08:00
|
|
|
|
"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
|
|
|
|
},
|
2023-08-04 15:21:52 +08:00
|
|
|
|
"switch_strategy": "active",
|
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": {
|
2023-04-25 09:28:56 +08:00
|
|
|
|
"default": {
|
|
|
|
|
"at": true,
|
|
|
|
|
"prefix": [
|
|
|
|
|
"/ai",
|
|
|
|
|
"!ai",
|
|
|
|
|
"!ai",
|
|
|
|
|
"ai"
|
|
|
|
|
],
|
|
|
|
|
"regexp": [],
|
|
|
|
|
"random_rate": 0.0
|
|
|
|
|
}
|
2023-03-18 20:43:50 +08:00
|
|
|
|
},
|
|
|
|
|
"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-06-08 13:20:55 +08:00
|
|
|
|
"auto_reset": true,
|
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"
|
|
|
|
|
},
|
2023-08-05 21:44:30 +08:00
|
|
|
|
"trace_function_calls": true,
|
2023-03-18 20:43:50 +08:00
|
|
|
|
"quote_origin": true,
|
2023-08-01 10:13:35 +08:00
|
|
|
|
"at_sender": false,
|
2023-03-18 20:43:50 +08:00
|
|
|
|
"include_image_description": true,
|
|
|
|
|
"process_message_timeout": 30,
|
|
|
|
|
"show_prefix": false,
|
2023-05-18 20:10:33 +08:00
|
|
|
|
"force_delay_range": [
|
2023-05-18 20:14:19 +08:00
|
|
|
|
1.5,
|
|
|
|
|
3
|
2023-05-18 20:10:33 +08:00
|
|
|
|
],
|
2023-03-18 20:43:50 +08:00
|
|
|
|
"blob_message_threshold": 256,
|
|
|
|
|
"blob_message_strategy": "forward",
|
2023-04-15 17:34:16 +08:00
|
|
|
|
"wait_last_done": true,
|
2023-03-18 20:43:50 +08:00
|
|
|
|
"font_path": "",
|
|
|
|
|
"retry_times": 3,
|
|
|
|
|
"hide_exce_info_to_user": false,
|
2023-03-24 20:02:50 +08:00
|
|
|
|
"sys_pool_num": 8,
|
2023-04-15 17:34:16 +08:00
|
|
|
|
"admin_pool_num": 4,
|
|
|
|
|
"user_pool_num": 8,
|
2023-03-18 20:43:50 +08:00
|
|
|
|
"session_expire_time": 1200,
|
2023-04-14 19:44:26 +08:00
|
|
|
|
"rate_limitation": {
|
|
|
|
|
"default": 60
|
|
|
|
|
},
|
|
|
|
|
"rate_limit_strategy": "drop",
|
2023-03-18 20:43:50 +08:00
|
|
|
|
"upgrade_dependencies": true,
|
|
|
|
|
"report_usage": true,
|
2023-04-07 17:00:40 +08:00
|
|
|
|
"logging_level": 20
|
2023-03-18 20:43:50 +08:00
|
|
|
|
}
|