From a53f6d4507ba989a520588a160a43b221d0be2c5 Mon Sep 17 00:00:00 2001 From: DEII <1840094972@qq.com> Date: Thu, 25 Jul 2024 21:51:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AF=B9=E8=AF=9D=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=EF=BC=8C=E8=AE=AF=E9=A3=9E=E6=98=9F=E7=81=ABlite?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/aiReplyCore.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/aiReplyCore.py b/plugins/aiReplyCore.py index 113219e..44ff144 100644 --- a/plugins/aiReplyCore.py +++ b/plugins/aiReplyCore.py @@ -119,6 +119,8 @@ async def modelReply(senderName, senderId, text, modelHere=modelDefault, trustUs checkIfRepFirstTime=False): global chatGLMData logger.info(modelHere) + if senderName==None: + senderName="指挥" try: if type(allcharacters.get(modelHere)) == dict: with open('config/settings.yaml', 'r', encoding='utf-8') as f: