From 8224aa87a5836083097e1a1d075817533ce712f5 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Thu, 20 Apr 2023 09:07:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dbing=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E4=B8=8D=E6=83=B3=E7=BB=A7=E7=BB=AD=E4=BC=9A=E8=AF=9D=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E9=87=8D=E7=BD=AE=E7=9A=84=E4=B8=80=E4=BA=9B=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/provider/provider_rev_edgegpt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/provider/provider_rev_edgegpt.py b/model/provider/provider_rev_edgegpt.py index 321bb1740..f6a61ba0c 100644 --- a/model/provider/provider_rev_edgegpt.py +++ b/model/provider/provider_rev_edgegpt.py @@ -45,7 +45,7 @@ class ProviderRevEdgeGPT(Provider): # print(throttling) else: throttling = None - if 'I\'m sorry but I prefer not to continue this conversation. I\'m still learning so I appreciate your understanding and patience.' in resp: + if 'I\'m sorry but I prefer not to continue this conversation. I\'m still learning so I appreciate your understanding and patience.' in reply_msg: self.busy = False return '', 0 if reply_msg == prompt: @@ -53,7 +53,7 @@ class ProviderRevEdgeGPT(Provider): await self.forget() err_count += 1 continue - if reply_msg is None: + if reply_source is None: # 不想答复 return '', 0 else: