From 9f741ef749a157e78103b4760ede013aaaa03281 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Tue, 28 Feb 2023 08:34:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E5=9C=A8=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E8=AE=BE=E7=BD=AE=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E7=A7=81=E8=81=8A=E5=8A=9F=E8=83=BD=20fix:?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D=E4=BA=BA=E6=A0=BC=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E7=9A=84=E4=B8=80=E4=BA=9Bbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configs/config.yaml | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/configs/config.yaml b/configs/config.yaml index a01de698a..c3817636e 100644 --- a/configs/config.yaml +++ b/configs/config.yaml @@ -6,15 +6,19 @@ openai: # 在下方非注释的地方使用以上格式 key: - + + # OpenAI GPT模型参数 chatGPTConfigs: engine: text-davinci-003 - max_tokens: 800 + max_tokens: 600 temperature: 0.8 top_p: 1 frequency_penalty: 0.4 presence_penalty: 0.3 - total_tokens_limit: 700 + total_tokens_limit: 500 +# QQ开放平台机器人信息 +# https://q.qq.com qqbot: appid: token: @@ -22,8 +26,22 @@ qqbot: # 设置是否一个人一个会话 uniqueSessionMode: false -# QChannelBot 的版本 -version: 1.7 beta +# QQChannelChatGPTBot版本号(不用改) +version: 2.33 -# [Beta] 转储历史记录时间间隔(分钟) -dump_history_interval: 10 \ No newline at end of file +# 转储历史记录时间间隔(分钟) +dump_history_interval: 10 + +# 用户发言频率限制。 +# 一个用户只能在time秒内发送count条消息 +limit: + time: 60 + count: 5 + +# 公告 +notice: "此机器人由Github项目QQChannelChatGPT驱动。" + +# 是否打开私信功能 +# 设置为true则频道成员可以私聊机器人。 +# 设置为false则频道成员不能私聊机器人。 +direct_message_mode: true \ No newline at end of file