From 74429a3e6cb2bc2fc6314a15b0f51a4b7fbb5805 Mon Sep 17 00:00:00 2001 From: Asankilp Date: Mon, 21 Oct 2024 02:23:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=80v0.3.1=EF=BC=8C=E5=A2=9E=E5=8A=A02?= =?UTF-8?q?=E4=B8=AA=E6=94=AF=E6=8C=81=E5=9B=BE=E7=89=87=E5=A4=84=E7=90=86?= =?UTF-8?q?=E7=9A=84=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_marshoai/constants.py | 2 +- nonebot_plugin_marshoai/util.py | 3 ++- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nonebot_plugin_marshoai/constants.py b/nonebot_plugin_marshoai/constants.py index a79e0f1..d748110 100644 --- a/nonebot_plugin_marshoai/constants.py +++ b/nonebot_plugin_marshoai/constants.py @@ -1,4 +1,4 @@ -SUPPORT_IMAGE_MODELS: list = ["gpt-4o","gpt-4o-mini"] +SUPPORT_IMAGE_MODELS: list = ["gpt-4o","gpt-4o-mini","llama-3.2-90b-vision-instruct","llama-3.2-11b-vision-instruct"] REASONING_MODELS: list = ["o1-preview","o1-mini"] INTRODUCTION: str = """你好喵~我是一只可爱的猫娘AI,名叫小棉~🐾! 我的代码在这里哦~↓↓↓ diff --git a/nonebot_plugin_marshoai/util.py b/nonebot_plugin_marshoai/util.py index 463af0c..2ba3514 100644 --- a/nonebot_plugin_marshoai/util.py +++ b/nonebot_plugin_marshoai/util.py @@ -107,7 +107,8 @@ def suggest_solution(errinfo: str) -> str: "tokens_limit_reached": "请求token达到上限。请重置上下文。", "content_length_limit": "请求体过大。请重置上下文。", "unauthorized": "Azure凭据无效。请联系Bot管理员。", - "invalid type: parameter messages.content is of type array but should be of type string.": "聊天请求体包含此模型不支持的数据类型。请重置上下文。" + "invalid type: parameter messages.content is of type array but should be of type string.": "聊天请求体包含此模型不支持的数据类型。请重置上下文。", + "At most 1 image(s) may be provided in one request.": "此模型只能在上下文中包含1张图片。如果此前的聊天已经发送过图片,请重置上下文。" } for key, suggestion in suggestions.items(): diff --git a/pyproject.toml b/pyproject.toml index 702840d..48d9893 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nonebot-plugin-marshoai" -version = "0.3" +version = "0.3.1" description = "Nonebot2插件,调用Azure OpenAI服务实现猫娘聊天" readme = "README.md" requires-python = "<4.0,>=3.9"