From d14d6364a3a21c687d289074e20f384452d5056c Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Sun, 9 Apr 2023 00:28:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E9=80=A0=E6=88=90=E7=9A=84=E6=95=B0=E7=BB=84?= =?UTF-8?q?=E8=B6=85=E9=99=90=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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cores/qqbot/core.py b/cores/qqbot/core.py index 67141597..643f61ba 100644 --- a/cores/qqbot/core.py +++ b/cores/qqbot/core.py @@ -419,7 +419,7 @@ def oper_msg(message: Message, at=False, msg_ref = None): temp_switch = "" if qq_msg.startswith('/bing'): l = qq_msg.split(' ') - if len(l) >= 1 and l[1] != "": + if len(l) > 1 and l[1] != "": # 临时对话模式,先记录下之前的语言模型,回答完毕后再切回 temp_switch = chosen_provider chosen_provider = REV_EDGEGPT @@ -434,7 +434,7 @@ def oper_msg(message: Message, at=False, msg_ref = None): return elif qq_msg.startswith('/gpt'): l = qq_msg.split(' ') - if len(l) >= 1 and l[1] != "": + if len(l) > 1 and l[1] != "": # 临时对话模式,先记录下之前的语言模型,回答完毕后再切回 temp_switch = chosen_provider chosen_provider = OPENAI_OFFICIAL @@ -449,7 +449,7 @@ def oper_msg(message: Message, at=False, msg_ref = None): return elif qq_msg.startswith('/revgpt'): l = qq_msg.split(' ') - if len(l) >= 1 and l[1] != "": + if len(l) > 1 and l[1] != "": # 临时对话模式,先记录下之前的语言模型,回答完毕后再切回 temp_switch = chosen_provider chosen_provider = REV_CHATGPT