2022-12-07 16:48:32 +08:00
|
|
|
mirai_http_api_config = {
|
|
|
|
"host": "",
|
2022-12-08 12:06:04 +08:00
|
|
|
"port": 8080,
|
2022-12-07 16:48:32 +08:00
|
|
|
"verifyKey": "",
|
|
|
|
"qq": 0
|
|
|
|
}
|
|
|
|
|
|
|
|
mysql_config = {
|
|
|
|
"host": "",
|
|
|
|
"port": 3306,
|
|
|
|
"user": "",
|
|
|
|
"password": "",
|
|
|
|
"database": ""
|
|
|
|
}
|
|
|
|
|
|
|
|
openai_config = {
|
|
|
|
"api_key": "",
|
|
|
|
}
|
|
|
|
|
|
|
|
completion_api_params = {
|
2022-12-07 22:27:05 +08:00
|
|
|
"model": "text-davinci-003",
|
|
|
|
"temperature": 0.9,
|
|
|
|
"max_tokens": 1024,
|
|
|
|
"top_p": 1,
|
|
|
|
"frequency_penalty": 0.4,
|
|
|
|
"presence_penalty": 0.3,
|
|
|
|
}
|
2022-12-07 22:50:49 +08:00
|
|
|
|
2022-12-07 23:37:52 +08:00
|
|
|
process_message_timeout = 45
|
|
|
|
|
|
|
|
retry_times = 3
|
|
|
|
|
2022-12-07 22:50:49 +08:00
|
|
|
session_expire_time = 60 * 60 * 24 * 7
|