Skip to content

Commit

Permalink
Update qwen.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
LovelyGuYiMeng authored Sep 19, 2024
1 parent 104888e commit 04cd407
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion src/config/modelProviders/qwen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ const Qwen: ModelProviderCard = {
description:
'通义千问超大规模语言模型,支持长文本上下文,以及基于长文档、多文档等多个场景的对话功能。',
displayName: 'Qwen Long',
enabled: true,
id: 'qwen-long',
pricing: {
currency: 'CNY',
input: 0.5,
output: 2,
},
tokens: 1_000_000, // https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction
},
{
Expand All @@ -17,6 +21,11 @@ const Qwen: ModelProviderCard = {
enabled: true,
functionCall: true,
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
},
{
Expand All @@ -25,6 +34,11 @@ const Qwen: ModelProviderCard = {
enabled: true,
functionCall: true,
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 @@ -34,6 +48,11 @@ const Qwen: ModelProviderCard = {
enabled: true,
functionCall: true,
id: 'qwen-max-latest',
pricing: {
currency: 'CNY',
input: 20,
output: 60,
},
tokens: 32_768, // https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction
},
{
Expand All @@ -42,6 +61,11 @@ const Qwen: ModelProviderCard = {
displayName: 'Qwen VL Plus',
enabled: true,
id: 'qwen-vl-plus',
pricing: {
currency: 'CNY',
input: 8,
output: 8,
},
tokens: 8192,
vision: true, // https://help.aliyun.com/zh/dashscope/developer-reference/tongyi-qianwen-vl-plus-api
},
Expand All @@ -51,6 +75,11 @@ const Qwen: ModelProviderCard = {
displayName: 'Qwen VL Max',
enabled: true,
id: 'qwen-vl-max',
pricing: {
currency: 'CNY',
input: 20,
output: 20,
},
tokens: 32_768,
vision: true, // https://help.aliyun.com/zh/dashscope/developer-reference/tongyi-qianwen-vl-plus-api
},
Expand Down

0 comments on commit 04cd407

Please sign in to comment.