From 552733129cca2d7c5d9f5a376677edcf199b8d44 Mon Sep 17 00:00:00 2001 From: Rock Chin <1010553892@qq.com> Date: Sat, 4 Mar 2023 10:36:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=AD=E5=A2=9E=E5=8A=A0=E9=95=BF=E6=B6=88=E6=81=AF=E5=A4=84?= =?UTF-8?q?=E7=90=86=E7=AD=96=E7=95=A5=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config-template.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/config-template.py b/config-template.py index 33547bcf..66235310 100644 --- a/config-template.py +++ b/config-template.py @@ -154,13 +154,19 @@ include_image_description = True # 消息处理的超时时间,单位为秒 process_message_timeout = 30 -# [暂未实现] 群内会话是否启用多对象名称 -# 若不启用,群内会话的prompt只使用user_name和bot_name -multi_subject = False - # 回复消息时是否显示[GPT]前缀 show_prefix = False +# 应用长消息处理策略的阈值 +# 当回复消息长度超过此值时,将使用长消息处理策略 +blob_message_threshold = 256 + +# 长消息处理策略 +# - "split": 将长消息分割为多条短消息发送 +# - "image": 将长消息转换为图片发送 +# - "forward": 将长消息转换为转发消息组件发送 +blob_message_strategy = "forward" + # 消息处理超时重试次数 retry_times = 3