From 5b3ee2dbe8caee660154370f9c2e5da0ea5154e8 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Sat, 22 Apr 2023 06:07:33 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9B=9E=E5=A4=8D?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E5=B1=8F=E8=94=BD=E8=AF=8D=E6=97=A0=E6=95=88?= =?UTF-8?q?=E7=9A=84=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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cores/qqbot/core.py b/cores/qqbot/core.py index db0ff5871..292997f7d 100644 --- a/cores/qqbot/core.py +++ b/cores/qqbot/core.py @@ -590,9 +590,8 @@ def oper_msg(message, group=False, msg_ref = None, platform = None): # 敏感过滤 # 过滤不合适的词 - judged_res = chatgpt_res for i in uw.unfit_words: - judged_res = re.sub(i, "***", judged_res) + chatgpt_res = re.sub(i, "***", chatgpt_res) # 百度内容审核服务二次审核 if baidu_judge != None: check, msg = baidu_judge.judge(judged_res)