diff --git a/nonebot_plugin_marshoai/util.py b/nonebot_plugin_marshoai/util.py index efb4e7f..c33db3c 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 d1393f4..e2e15ad 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 005c037..41eecc4 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" /> + + + + + + + + + + + + + + + +