Skip to content

Commit

Permalink
💄 style: updata qwen model info & add qwen2.5 & reorder provider list (
Browse files Browse the repository at this point in the history
…lobehub#4020)

* Update qwen.ts

* Update qwen.ts

* Update index.ts

* Update providers.tsx

* Update qwen.ts

* Update qwen.ts
  • Loading branch information
LovelyGuYiMeng authored Sep 19, 2024
1 parent 5d03c2b commit d5e7578
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 25 deletions.
8 changes: 4 additions & 4 deletions src/app/(main)/settings/llm/ProviderList/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ export const useProviderList = (): ProviderItem[] => {
DeepSeekProviderCard,
OpenRouterProviderCard,
GithubProvider,
GroqProviderCard,
NovitaProviderCard,
PerplexityProviderCard,
MistralProviderCard,
TogetherAIProviderCard,
FireworksAIProviderCard,
UpstageProviderCard,
GroqProviderCard,
PerplexityProviderCard,
MistralProviderCard,
Ai21ProviderCard,
UpstageProviderCard,
QwenProviderCard,
SparkProviderCard,
ZhiPuProviderCard,
Expand Down
8 changes: 4 additions & 4 deletions src/config/modelProviders/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ export const DEFAULT_MODEL_PROVIDER_LIST = [
DeepSeekProvider,
OpenRouterProvider,
GithubProvider,
GroqProvider,
NovitaProvider,
PerplexityProvider,
MistralProvider,
TogetherAIProvider,
FireworksAIProvider,
UpstageProvider,
GroqProvider,
PerplexityProvider,
MistralProvider,
Ai21Provider,
UpstageProvider,
QwenProvider,
SparkProvider,
ZhiPuProvider,
Expand Down
80 changes: 63 additions & 17 deletions src/config/modelProviders/qwen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,38 @@ const Qwen: ModelProviderCard = {
description:
'通义千问超大规模语言模型,支持长文本上下文,以及基于长文档、多文档等多个场景的对话功能。',
displayName: 'Qwen Long',
enabled: true,
id: 'qwen-long',
tokens: 1_000_000,
pricing: {
currency: 'CNY',
input: 0.5,
output: 2,
},
tokens: 1_000_000, // https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction
},
{
description: '通义千问超大规模语言模型,支持中文、英文等不同语言输入',
displayName: 'Qwen Turbo',
enabled: true,
functionCall: true,
id: 'qwen-turbo',
tokens: 8000, // https://www.alibabacloud.com/help/zh/model-studio/developer-reference/use-qwen-by-calling-api
id: 'qwen-turbo-latest',
pricing: {
currency: 'CNY',
input: 0.3,
output: 0.6,
},
tokens: 131_072, // https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction
},
{
description: '通义千问超大规模语言模型增强版,支持中文、英文等不同语言输入',
displayName: 'Qwen Plus',
enabled: true,
functionCall: true,
id: 'qwen-plus',
id: 'qwen-plus-latest',
pricing: {
currency: 'CNY',
input: 0.8,
output: 2,
},
tokens: 131_072, // https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction
},
{
Expand All @@ -33,57 +47,89 @@ const Qwen: ModelProviderCard = {
displayName: 'Qwen Max',
enabled: true,
functionCall: true,
id: 'qwen-max',
tokens: 8000,
},
{
description:
'通义千问千亿级别超大规模语言模型,支持中文、英文等不同语言输入,扩展了上下文窗口',
displayName: 'Qwen Max LongContext',
functionCall: true,
id: 'qwen-max-longcontext',
tokens: 30_000,
id: 'qwen-max-latest',
pricing: {
currency: 'CNY',
input: 20,
output: 60,
},
tokens: 32_768, // https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction
},
{
description:
'通义千问大规模视觉语言模型增强版。大幅提升细节识别能力和文字识别能力,支持超百万像素分辨率和任意长宽比规格的图像。',
displayName: 'Qwen VL Plus',
enabled: true,
id: 'qwen-vl-plus',
pricing: {
currency: 'CNY',
input: 8,
output: 8,
},
tokens: 8192,
vision: true,
vision: true, // https://help.aliyun.com/zh/dashscope/developer-reference/tongyi-qianwen-vl-plus-api
},
{
description:
'通义千问超大规模视觉语言模型。相比增强版,再次提升视觉推理能力和指令遵循能力,提供更高的视觉感知和认知水平。',
displayName: 'Qwen VL Max',
enabled: true,
id: 'qwen-vl-max',
pricing: {
currency: 'CNY',
input: 20,
output: 20,
},
tokens: 32_768,
vision: true,
vision: true, // https://help.aliyun.com/zh/dashscope/developer-reference/tongyi-qianwen-vl-plus-api
},
// ref :https://help.aliyun.com/zh/dashscope/developer-reference/tongyi-qianwen-7b-14b-72b-api-detailes
{
description: '通义千问2.5对外开源的7B规模的模型',
displayName: 'Qwen2.5 7B',
functionCall: true,
id: 'qwen2.5-7b-instruct',
tokens: 131_072, // https://huggingface.co/Qwen/Qwen2.5-7B-Instruct
},
{
description: '通义千问2.5对外开源的32B规模的模型',
displayName: 'Qwen2.5 32B',
functionCall: true,
id: 'qwen2.5-32b-instruct',
tokens: 131_072, // https://huggingface.co/Qwen/Qwen2.5-32B-Instruct
},
{
description: '通义千问2.5对外开源的72B规模的模型',
displayName: 'Qwen2.5 72B',
functionCall: true,
id: 'qwen2.5-72b-instruct',
tokens: 131_072, // https://huggingface.co/Qwen/Qwen2.5-72B-Instruct
},
{
description: '通义千问2对外开源的7B规模的模型',
displayName: 'Qwen2 7B',
functionCall: true,
id: 'qwen2-7b-instruct',
tokens: 131_072, // https://huggingface.co/Qwen/Qwen2-7B-Instruct
},
{
description: '通义千问2对外开源的57B规模14B激活参数的MOE模型',
displayName: 'Qwen2 57B A14B MoE',
functionCall: true,
id: 'qwen2-57b-a14b-instruct',
tokens: 65_536, // https://huggingface.co/Qwen/Qwen2-57B-A14B-Instruct
},
{
description: '通义千问2对外开源的72B规模的模型',
displayName: 'Qwen2 72B',
functionCall: true,
id: 'qwen2-72b-instruct',
tokens: 131_072, // https://huggingface.co/Qwen/Qwen2-72B-Instruct
},
{
description: 'Qwen2-Math 模型具有强大的数学解题能力',
displayName: 'Qwen2 Math 72B',
functionCall: true,
id: 'qwen2-math-72b-instruct',
tokens: 4096, // https://help.aliyun.com/zh/dashscope/developer-reference/use-qwen2-math-by-calling-api
},
Expand Down

0 comments on commit d5e7578

Please sign in to comment.