From c5e1f8d3e91f59e3c300850b8736e7615a443aed Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Wed, 5 Apr 2023 12:11:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AE=98=E6=96=B9api?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E7=94=BB=E7=94=BB=E6=8C=87=E4=BB=A4=E5=92=8C?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8C=87=E4=BB=A4=E6=8E=A5=E5=8F=8D=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/command/command_openai_official.py | 4 ++-- model/provider/provider_rev_edgegpt.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/model/command/command_openai_official.py b/model/command/command_openai_official.py index 223bb122..578a4383 100644 --- a/model/command/command_openai_official.py +++ b/model/command/command_openai_official.py @@ -28,9 +28,9 @@ class CommandOpenAIOfficial(Command): elif self.command_start_with(message, "set"): return True, self.set(message, session_id) elif self.command_start_with(message, "update"): - return True, self.draw(message) - elif self.command_start_with(message, "画"): return True, self.update(message) + elif self.command_start_with(message, "画"): + return True, self.draw(message) return False, None diff --git a/model/provider/provider_rev_edgegpt.py b/model/provider/provider_rev_edgegpt.py index 4efc625d..30d358b5 100644 --- a/model/provider/provider_rev_edgegpt.py +++ b/model/provider/provider_rev_edgegpt.py @@ -32,6 +32,7 @@ class ProviderRevEdgeGPT(Provider): while err_count < retry_count: try: resp = await self.bot.ask(prompt=prompt, conversation_style=ConversationStyle.creative) + print("[RevEdgeGPT] "+str(resp)) resp = resp['item']['messages'][len(resp['item']['messages'])-1]['text'] if resp == prompt: resp += '\n\n如果你没有让我复述你的话,那代表我可能不想和你继续这个话题了,请输入reset重置会话😶'