From 45bb30692d7643385039d06c0b20bd49dda42177 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Sat, 8 Apr 2023 19:21:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dbing=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E4=BC=9A=E8=AF=9D=E7=9A=84=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/qqbot/core.py b/cores/qqbot/core.py index 1d42d49ed..94d27f08f 100644 --- a/cores/qqbot/core.py +++ b/cores/qqbot/core.py @@ -491,7 +491,7 @@ def oper_msg(message, at=False, msg_ref = None): res, res_code = asyncio.run_coroutine_threadsafe(rev_edgegpt.text_chat(qq_msg), client.loop).result() if res_code == 0: # bing不想继续话题,重置会话后重试。 send_qq_msg(message, f"Bing不想继续话题了, 正在自动重置会话并重试。", msg_ref=msg_ref) - asyncio.run_coroutine_threadsafe(rev_edgegpt.forget(), client.loop) + asyncio.run_coroutine_threadsafe(rev_edgegpt.forget(), client.loop).result() res, res_code = asyncio.run_coroutine_threadsafe(rev_edgegpt.text_chat(qq_msg), client.loop).result() if res_code == 0: # bing还是不想继续话题,大概率说明提问有问题。 send_qq_msg(message, f"Bing仍然不想继续话题, 请检查您的提问。", msg_ref=msg_ref)