perf: 完善apikey的格式说明信息

This commit is contained in:
Rock Chin 2023-01-31 12:48:55 +08:00
parent 24a10265f3
commit 7d3bc4203e

View File

@ -22,13 +22,17 @@ mirai_http_api_config = {
# api_key: OpenAI的API Key
# 若只有一个api-key请直接修改以下内容中的"openai_api_key"为你的api-key
# 如准备了多个api-key可以以字典的形式填写程序会自动选择可用的api-key
# 例如{
# "api0": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
# "api1": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
# }
# 例如
# openai_config = {
# "api_key": {
# "default": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
# "key1": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
# "key2": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
# },
# }
openai_config = {
"api_key": {
"default": "openai_api_key"
"default": "fill_your_api_key_here"
},
}
@ -107,6 +111,10 @@ process_message_timeout = 30
user_name = 'You'
bot_name = 'Bot'
# 群内会话是否启用多对象名称
# 若不启用群内会话的prompt只使用user_name和bot_name
multi_subject = False
# 回复消息时是否显示[GPT]前缀
show_prefix = False