mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 03:32:33 +08:00
90 lines
2.3 KiB
JSON
90 lines
2.3 KiB
JSON
{
|
||
"comment": "这是override.json支持的字段全集, 关于override.json机制, 请查看https://github.com/RockChinQ/QChatGPT/pull/271",
|
||
"msg_source_adapter": "yirimirai",
|
||
"mirai_http_api_config": {
|
||
"adapter": "WebSocketAdapter",
|
||
"host": "localhost",
|
||
"port": 8080,
|
||
"verifyKey": "yirimirai",
|
||
"qq": 1234567890
|
||
},
|
||
"nakuru_config": {
|
||
"host": "localhost",
|
||
"port": 6700,
|
||
"http_port": 5700,
|
||
"token": ""
|
||
},
|
||
"openai_config": {
|
||
"api_key": {
|
||
"default": "openai_api_key"
|
||
},
|
||
"http_proxy": null,
|
||
"reverse_proxy": null
|
||
},
|
||
"switch_strategy": "active",
|
||
"admin_qq": 0,
|
||
"default_prompt": {
|
||
"default": "如果用户之后想获取帮助,请你说“输入!help获取帮助”。"
|
||
},
|
||
"preset_mode": "normal",
|
||
"response_rules": {
|
||
"default": {
|
||
"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,
|
||
"prompt_submit_length": 2048,
|
||
"auto_reset": true,
|
||
"completion_api_params": {
|
||
"model": "gpt-3.5-turbo",
|
||
"temperature": 0.9
|
||
},
|
||
"image_api_params": {
|
||
"model": "dall-e-2",
|
||
"size": "256x256"
|
||
},
|
||
"trace_function_calls": false,
|
||
"quote_origin": false,
|
||
"at_sender": false,
|
||
"include_image_description": true,
|
||
"process_message_timeout": 120,
|
||
"show_prefix": false,
|
||
"force_delay_range": [
|
||
0,
|
||
0
|
||
],
|
||
"blob_message_threshold": 256,
|
||
"blob_message_strategy": "forward",
|
||
"wait_last_done": true,
|
||
"font_path": "",
|
||
"retry_times": 3,
|
||
"hide_exce_info_to_user": false,
|
||
"session_expire_time": 1200,
|
||
"rate_limitation": {
|
||
"default": 60
|
||
},
|
||
"rate_limit_strategy": "drop",
|
||
"upgrade_dependencies": false,
|
||
"report_usage": true,
|
||
"logging_level": 20
|
||
} |