From 7d3bc4203e3351cf8c3f2c5ca305b41b45179dd5 Mon Sep 17 00:00:00 2001 From: Rock Chin <1010553892@qq.com> Date: Tue, 31 Jan 2023 12:48:55 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=AE=8C=E5=96=84apikey=E7=9A=84?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E8=AF=B4=E6=98=8E=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config-template.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/config-template.py b/config-template.py index 3882d00b..eb7b8757 100644 --- a/config-template.py +++ b/config-template.py @@ -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