From c8f6d090ccd25cb3a328423b8f43ed2384dd1839 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Fri, 31 Mar 2023 09:06:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AE=98=E6=96=B9api?= =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=89=8D=E7=BC=80?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cores/qqbot/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cores/qqbot/core.py b/cores/qqbot/core.py index 9672ae6da..ff30d9c21 100644 --- a/cores/qqbot/core.py +++ b/cores/qqbot/core.py @@ -650,6 +650,7 @@ def oper_msg(message, at=False, msg_ref = None): # 请求chatGPT获得结果 try: chatgpt_res, current_usage_tokens = get_chatGPT_response(context=cache_data_list, request=record_obj) + chatgpt_res = reply_prefix + chatgpt_res except (BaseException) as e: print("[System-Err] OpenAI API错误。原因如下:\n"+str(e)) if 'maximum context length' in str(e):