👀v0.3.1,增加2个支持图片处理的模型

This commit is contained in:
Asankilp 2024-10-21 02:23:01 +08:00
parent 5f2ee2f745
commit 74429a3e6c
3 changed files with 4 additions and 3 deletions

View File

@ -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"] REASONING_MODELS: list = ["o1-preview","o1-mini"]
INTRODUCTION: str = """你好喵~我是一只可爱的猫娘AI名叫小棉~🐾! INTRODUCTION: str = """你好喵~我是一只可爱的猫娘AI名叫小棉~🐾!
我的代码在这里哦~ 我的代码在这里哦~

View File

@ -107,7 +107,8 @@ def suggest_solution(errinfo: str) -> str:
"tokens_limit_reached": "请求token达到上限。请重置上下文。", "tokens_limit_reached": "请求token达到上限。请重置上下文。",
"content_length_limit": "请求体过大。请重置上下文。", "content_length_limit": "请求体过大。请重置上下文。",
"unauthorized": "Azure凭据无效。请联系Bot管理员。", "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(): for key, suggestion in suggestions.items():

View File

@ -1,6 +1,6 @@
[project] [project]
name = "nonebot-plugin-marshoai" name = "nonebot-plugin-marshoai"
version = "0.3" version = "0.3.1"
description = "Nonebot2插件调用Azure OpenAI服务实现猫娘聊天" description = "Nonebot2插件调用Azure OpenAI服务实现猫娘聊天"
readme = "README.md" readme = "README.md"
requires-python = "<4.0,>=3.9" requires-python = "<4.0,>=3.9"