From 5f2ee2f745ed94ac2e2a63e373c87430b99437fe Mon Sep 17 00:00:00 2001 From: Asankilp Date: Mon, 21 Oct 2024 01:04:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=83v0.3=EF=BC=8C=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E8=BF=87=E6=BB=A4=E5=99=A8=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_marshoai/azure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nonebot_plugin_marshoai/azure.py b/nonebot_plugin_marshoai/azure.py index 9c8eb27..f12a76d 100644 --- a/nonebot_plugin_marshoai/azure.py +++ b/nonebot_plugin_marshoai/azure.py @@ -165,7 +165,8 @@ async def marsho( context.append(UserMessage(content=usermsg).as_dict(), target.id, target.private) context.append(choice.message.as_dict(), target.id, target.private) elif choice["finish_reason"] == CompletionsFinishReason.CONTENT_FILTERED: - await UniMessage("*已被内容过滤器过滤。*").send() + await UniMessage("*已被内容过滤器过滤。请调整聊天内容后重试。").send(reply_to=True) + return #await UniMessage(str(choice)).send() await UniMessage(str(choice.message.content)).send(reply_to=True) #requests_limit = response.headers.get('x-ratelimit-limit-requests')