From e096655fc52244262ec53607c38e2f139a8c6f71 Mon Sep 17 00:00:00 2001 From: Asankilp Date: Thu, 3 Oct 2024 01:43:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=96=8C=EF=B8=8Fv0.1.3=EF=BC=8C=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=96=B0=E9=94=99=E8=AF=AF=E5=BB=BA=E8=AE=AE=EF=BC=8C?= =?UTF-8?q?=E6=9B=B4=E6=94=B9logo=E8=AE=B8=E5=8F=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_marshoai/util.py | 2 + pyproject.toml | 2 +- resources/marsho.svg | 85 +++++++++++++++++++++++++-------- 3 files changed, 68 insertions(+), 21 deletions(-) diff --git a/nonebot_plugin_marshoai/util.py b/nonebot_plugin_marshoai/util.py index efb4e7f9..c33db3ca 100644 --- a/nonebot_plugin_marshoai/util.py +++ b/nonebot_plugin_marshoai/util.py @@ -71,6 +71,8 @@ def suggest_solution(errinfo: str): suggestion = "模型达到调用速率限制。请稍等一段时间或联系Bot管理员。" elif "tokens_limit_reached" in errinfo: suggestion = "请求token达到上限。请重置上下文。" + elif "content_length_limit" in errinfo: + suggestion = "请求体过大。请重置上下文。" elif "unauthorized" in errinfo: suggestion = "Azure凭据无效。请联系Bot管理员。" if suggestion != "": diff --git a/pyproject.toml b/pyproject.toml index d1393f40..e2e15adb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nonebot-plugin-marshoai" -version = "0.1.2" +version = "0.1.3" description = "Nonebot2插件,调用Azure OpenAI服务实现猫娘聊天" readme = "README.md" requires-python = "<4.0,>=3.9" diff --git a/resources/marsho.svg b/resources/marsho.svg index 005c0373..41eecc4b 100644 --- a/resources/marsho.svg +++ b/resources/marsho.svg @@ -12,7 +12,9 @@ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" - xmlns:svg="http://www.w3.org/2000/svg"> + xmlns:svg="http://www.w3.org/2000/svg" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://creativecommons.org/ns#"> + id="path26" + inkscape:label="catear-1" /> + id="path26-0" + inkscape:label="catear-2" /> + id="path15" + inkscape:label="M" /> + transform="matrix(1.2437058,0,0,1.2437058,-41.205402,-71.988595)" + inkscape:label="a-1" /> + transform="matrix(1.2437058,0,0,1.2437058,413.37075,-22.235252)" + inkscape:label="o" /> + transform="matrix(1.2437058,0,0,1.2437058,-33.28845,-68.50514)" + inkscape:label="a-2" /> + id="path21" + inkscape:label="r-1" /> + id="path22" + inkscape:label="r-2" /> + transform="matrix(1.2437058,0,0,1.2437058,-38.988658,-44.120921)" + inkscape:label="s" /> + id="path24" + inkscape:label="h-1" /> + id="path25" + inkscape:label="h-2" /> + transform="rotate(10)" + inkscape:label="paw4" /> + transform="rotate(-40)" + inkscape:label="paw2" /> + transform="rotate(-10)" + inkscape:label="paw3" /> + transform="rotate(-40)" + inkscape:label="paw1" /> + transform="matrix(1.4737674,0,0,1.4737674,-185.39075,-127.97734)" + inkscape:label="paw5" /> + + + + + + + + + + + + + + + +