From 6894900e467ffe2d24e51f8d0748e6df5c2cc627 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Sat, 20 May 2023 14:27:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=94=BB=E7=94=BB?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=E5=BE=97=E5=88=B0=E7=9A=84=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E9=A3=8E=E6=A0=BC=E5=83=8F=E6=B2=B9=E7=94=BB=E7=9A=84=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/command/command_openai_official.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/model/command/command_openai_official.py b/model/command/command_openai_official.py index 7cc949feb..5f56d5715 100644 --- a/model/command/command_openai_official.py +++ b/model/command/command_openai_official.py @@ -189,6 +189,10 @@ class CommandOpenAIOfficial(Command): return True, f"自定义人格已设置。 \n人格信息: {ps}", "set" def draw(self, message): + if message.startswith("/画"): + message = message[2:] + elif message.startswith("画"): + message = message[1:] try: # 画图模式传回3个参数 img_url = self.provider.image_chat(message)