From e82c9dd2b85b8e7b91905b1e55d619adf744ed9b Mon Sep 17 00:00:00 2001 From: LovelyGuYiMeng <76251800+LovelyGuYiMeng@users.noreply.github.com> Date: Fri, 30 Aug 2024 22:28:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20Update=20the=20sorting?= =?UTF-8?q?=20of=20each=20provider=20model=20(#3689)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update zeroone.ts * Update zeroone.ts * Update zhipu.ts * Update moonshot.ts * Update baichuan.ts * Update minimax.ts * Update qwen.ts * Update qwen.ts * Update qwen.ts --- src/config/modelProviders/baichuan.ts | 2 +- src/config/modelProviders/minimax.ts | 2 +- src/config/modelProviders/qwen.ts | 75 ++++++++++++++------------- 3 files changed, 42 insertions(+), 37 deletions(-) diff --git a/src/config/modelProviders/baichuan.ts b/src/config/modelProviders/baichuan.ts index 12570eebdb056..88545d4825371 100644 --- a/src/config/modelProviders/baichuan.ts +++ b/src/config/modelProviders/baichuan.ts @@ -46,7 +46,7 @@ const Baichuan: ModelProviderCard = { tokens: 192_000, }, ], - checkModel: 'Baichuan4', + checkModel: 'Baichuan3-Turbo', id: 'baichuan', modelList: { showModelFetcher: true }, name: 'Baichuan', diff --git a/src/config/modelProviders/minimax.ts b/src/config/modelProviders/minimax.ts index 4194387ccc74c..9d53339f4502e 100644 --- a/src/config/modelProviders/minimax.ts +++ b/src/config/modelProviders/minimax.ts @@ -42,7 +42,7 @@ const Minimax: ModelProviderCard = { tokens: 8192, }, ], - checkModel: 'abab5.5s-chat', + checkModel: 'abab6.5s-chat', id: 'minimax', name: 'Minimax', }; diff --git a/src/config/modelProviders/qwen.ts b/src/config/modelProviders/qwen.ts index 88cc84a6e5d0a..9dae9545807eb 100644 --- a/src/config/modelProviders/qwen.ts +++ b/src/config/modelProviders/qwen.ts @@ -3,6 +3,14 @@ import { ModelProviderCard } from '@/types/llm'; // ref https://help.aliyun.com/zh/dashscope/developer-reference/api-details const Qwen: ModelProviderCard = { chatModels: [ + { + description: '通义千问超大规模语言模型,支持长文本上下文,以及基于长文档、多文档等多个场景的对话功能。', + displayName: 'Qwen Long', + enabled: true, + functionCall: true, + id: 'qwen-long', + tokens: 1_000_000, + }, { description: '通义千问超大规模语言模型,支持中文、英文等不同语言输入', displayName: 'Qwen Turbo', @@ -17,7 +25,7 @@ const Qwen: ModelProviderCard = { enabled: true, functionCall: true, id: 'qwen-plus', - tokens: 32_768, + tokens: 130_000, }, { description: @@ -34,7 +42,34 @@ const Qwen: ModelProviderCard = { displayName: 'Qwen Max LongContext', functionCall: true, id: 'qwen-max-longcontext', + tokens: 30_720, + }, + { + description: + '通义千问大规模视觉语言模型增强版。大幅提升细节识别能力和文字识别能力,支持超百万像素分辨率和任意长宽比规格的图像。', + displayName: 'Qwen VL Plus', + enabled: true, + id: 'qwen-vl-plus', + tokens: 8192, + vision: true, + }, + { + description: + '通义千问超大规模视觉语言模型。相比增强版,再次提升视觉推理能力和指令遵循能力,提供更高的视觉感知和认知水平。', + displayName: 'Qwen VL Max', + enabled: true, + id: 'qwen-vl-max', + tokens: 8192, + vision: true, + }, + { + description: + '抢先体验即将升级的 qwen-vl-max 大模型。', + displayName: 'Qwen VL Max 0809', + enabled: true, + id: 'qwen-vl-max-0809', tokens: 32_768, + vision: true, }, { description: '通义千问2对外开源的7B规模的模型', @@ -55,28 +90,15 @@ const Qwen: ModelProviderCard = { tokens: 128_000, }, { - description: - '通义千问大规模视觉语言模型增强版。大幅提升细节识别能力和文字识别能力,支持超百万像素分辨率和任意长宽比规格的图像。', - displayName: 'Qwen VL Plus', - enabled: true, - id: 'qwen-vl-plus', - tokens: 8192, - vision: true, - }, - { - description: - '通义千问超大规模视觉语言模型。相比增强版,再次提升视觉推理能力和指令遵循能力,提供更高的视觉感知和认知水平。', - displayName: 'Qwen VL Max', - enabled: true, - id: 'qwen-vl-max', - tokens: 8192, - vision: true, + description: 'Qwen2-Math 模型具有强大的数学解题能力', + displayName: 'Qwen2 Math 72B', + id: 'qwen2-math-72b-instruct', + tokens: 128_000, }, { description: '以 Qwen-7B 语言模型初始化,添加图像模型,图像输入分辨率为448的预训练模型。', displayName: 'Qwen VL', - enabled: true, id: 'qwen-vl-v1', tokens: 8192, vision: true, @@ -85,27 +107,10 @@ const Qwen: ModelProviderCard = { description: '通义千问VL支持灵活的交互方式,包括多图、多轮问答、创作等能力的模型。', displayName: 'Qwen VL Chat', - enabled: true, id: 'qwen-vl-chat-v1', tokens: 8192, vision: true, }, - { - description: 'Qwen2-Math 模型具有强大的数学解题能力', - displayName: 'Qwen2 Math 72B', - enabled: true, - id: 'qwen2-math-72b-instruct', - tokens: 4096, - }, - { - description: - '抢先体验即将升级的 qwen-vl-max 大模型。', - displayName: 'Qwen VL Max 0809', - enabled: true, - id: 'qwen-vl-max-0809', - tokens: 32_768, - vision: true, - }, ], checkModel: 'qwen-turbo', disableBrowserRequest: true,