@lobehub/chat 1.111.9 → 1.111.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/changelog/v1.json +18 -0
- package/docs/development/state-management/state-management-intro.mdx +2 -2
- package/docs/development/state-management/state-management-intro.zh-CN.mdx +2 -2
- package/package.json +1 -1
- package/packages/model-runtime/src/RouterRuntime/createRuntime.ts +9 -1
- package/packages/model-runtime/src/ai302/index.ts +1 -1
- package/packages/model-runtime/src/aihubmix/index.ts +28 -71
- package/packages/model-runtime/src/anthropic/index.ts +6 -26
- package/packages/model-runtime/src/giteeai/index.ts +2 -37
- package/packages/model-runtime/src/github/index.ts +33 -44
- package/packages/model-runtime/src/modelscope/index.ts +2 -38
- package/packages/model-runtime/src/moonshot/index.ts +2 -36
- package/packages/model-runtime/src/novita/__snapshots__/index.test.ts.snap +40 -22
- package/packages/model-runtime/src/novita/index.ts +1 -32
- package/packages/model-runtime/src/nvidia/index.ts +1 -1
- package/packages/model-runtime/src/openai/__snapshots__/index.test.ts.snap +63 -7
- package/packages/model-runtime/src/openai/index.ts +1 -1
- package/packages/model-runtime/src/openrouter/__snapshots__/index.test.ts.snap +6 -21
- package/packages/model-runtime/src/openrouter/index.ts +29 -37
- package/packages/model-runtime/src/qiniu/index.ts +3 -27
- package/packages/model-runtime/src/qwen/index.ts +1 -1
- package/packages/model-runtime/src/siliconcloud/index.ts +1 -1
- package/packages/model-runtime/src/utils/modelParse.test.ts +6 -6
- package/packages/model-runtime/src/utils/modelParse.ts +238 -40
- package/packages/model-runtime/src/utils/openaiCompatibleFactory/index.test.ts +18 -0
- package/packages/model-runtime/src/utils/streams/openai/openai.ts +12 -0
- package/packages/model-runtime/src/v0/index.ts +2 -2
- package/packages/model-runtime/src/volcengine/index.ts +1 -1
- package/packages/model-runtime/src/xai/index.ts +2 -24
- package/packages/model-runtime/src/zhipu/index.ts +1 -1
- package/src/components/Thinking/index.tsx +1 -1
- package/src/config/aiModels/aihubmix.ts +1 -7
- package/src/config/aiModels/anthropic.ts +24 -4
- package/src/config/aiModels/fal.ts +20 -3
- package/src/config/aiModels/google.ts +60 -6
- package/src/config/aiModels/groq.ts +4 -21
- package/src/config/aiModels/hunyuan.ts +1 -1
- package/src/config/aiModels/mistral.ts +22 -5
- package/src/config/aiModels/moonshot.ts +20 -0
- package/src/config/aiModels/openai.ts +0 -43
- package/src/config/aiModels/qwen.ts +113 -3
- package/src/config/aiModels/sensenova.ts +6 -6
- package/src/config/aiModels/siliconcloud.ts +80 -0
- package/src/config/aiModels/stepfun.ts +38 -4
- package/src/config/aiModels/zhipu.ts +33 -8
- package/src/config/modelProviders/aihubmix.ts +1 -1
- package/src/config/modelProviders/mistral.ts +1 -0
- package/src/config/modelProviders/openai.ts +1 -1
- package/src/config/modelProviders/qwen.ts +1 -1
- package/src/config/modelProviders/v0.ts +1 -0
- package/src/config/modelProviders/volcengine.ts +1 -0
@@ -27,8 +27,6 @@ export const qwenImageParamsSchema: ModelParamsSchema = {
|
|
27
27
|
width: { default: 1328, max: 1536, min: 512, step: 1 },
|
28
28
|
};
|
29
29
|
|
30
|
-
|
31
|
-
|
32
30
|
const falImageModels: AIImageModelCard[] = [
|
33
31
|
{
|
34
32
|
description: '专注于图像编辑任务的FLUX.1模型,支持文本和图像输入。',
|
@@ -41,6 +39,9 @@ const falImageModels: AIImageModelCard[] = [
|
|
41
39
|
seed: { default: null },
|
42
40
|
steps: { default: 28, max: 50, min: 10 },
|
43
41
|
},
|
42
|
+
pricing: {
|
43
|
+
units: [{ name: 'imageGeneration', rate: 0.025, strategy: 'fixed', unit: 'megapixel' }],
|
44
|
+
},
|
44
45
|
releasedAt: '2025-06-28',
|
45
46
|
type: 'image',
|
46
47
|
},
|
@@ -59,6 +60,9 @@ const falImageModels: AIImageModelCard[] = [
|
|
59
60
|
prompt: { default: '' },
|
60
61
|
seed: { default: null },
|
61
62
|
},
|
63
|
+
pricing: {
|
64
|
+
units: [{ name: 'imageGeneration', rate: 0.04, strategy: 'fixed', unit: 'image' }],
|
65
|
+
},
|
62
66
|
releasedAt: '2025-05-01',
|
63
67
|
type: 'image',
|
64
68
|
},
|
@@ -68,6 +72,9 @@ const falImageModels: AIImageModelCard[] = [
|
|
68
72
|
enabled: true,
|
69
73
|
id: 'flux/schnell',
|
70
74
|
parameters: fluxSchnellParamsSchema,
|
75
|
+
pricing: {
|
76
|
+
units: [{ name: 'imageGeneration', rate: 0.003, strategy: 'fixed', unit: 'megapixel' }],
|
77
|
+
},
|
71
78
|
releasedAt: '2024-08-01',
|
72
79
|
type: 'image',
|
73
80
|
},
|
@@ -77,6 +84,9 @@ const falImageModels: AIImageModelCard[] = [
|
|
77
84
|
enabled: true,
|
78
85
|
id: 'flux/krea',
|
79
86
|
parameters: fluxKreaParamsSchema,
|
87
|
+
pricing: {
|
88
|
+
units: [{ name: 'imageGeneration', rate: 0.025, strategy: 'fixed', unit: 'megapixel' }],
|
89
|
+
},
|
80
90
|
releasedAt: '2025-07-31',
|
81
91
|
type: 'image',
|
82
92
|
},
|
@@ -94,15 +104,22 @@ const falImageModels: AIImageModelCard[] = [
|
|
94
104
|
prompt: { default: '' },
|
95
105
|
seed: { default: null },
|
96
106
|
},
|
107
|
+
pricing: {
|
108
|
+
units: [{ name: 'imageGeneration', rate: 0.05, strategy: 'fixed', unit: 'image' }],
|
109
|
+
},
|
97
110
|
releasedAt: '2025-05-21',
|
98
111
|
type: 'image',
|
99
112
|
},
|
100
113
|
{
|
101
|
-
description:
|
114
|
+
description:
|
115
|
+
'Qwen团队带来的强大生图模型,具有令人印象深刻的中文文字生成能力和多样图片视觉风格。',
|
102
116
|
displayName: 'Qwen Image',
|
103
117
|
enabled: true,
|
104
118
|
id: 'qwen-image',
|
105
119
|
parameters: qwenImageParamsSchema,
|
120
|
+
pricing: {
|
121
|
+
units: [{ name: 'imageGeneration', rate: 0.02, strategy: 'fixed', unit: 'megapixel' }],
|
122
|
+
},
|
106
123
|
releasedAt: '2025-08-04',
|
107
124
|
type: 'image',
|
108
125
|
},
|
@@ -19,8 +19,24 @@ const googleChatModels: AIChatModelCard[] = [
|
|
19
19
|
pricing: {
|
20
20
|
units: [
|
21
21
|
{ name: 'textInput_cacheRead', rate: 0.31, strategy: 'fixed', unit: 'millionTokens' },
|
22
|
-
{
|
23
|
-
|
22
|
+
{
|
23
|
+
name: 'textInput',
|
24
|
+
strategy: 'tiered',
|
25
|
+
tiers: [
|
26
|
+
{ rate: 1.25, upTo: 200_000 },
|
27
|
+
{ rate: 2.5, upTo: 'infinity' },
|
28
|
+
],
|
29
|
+
unit: 'millionTokens',
|
30
|
+
},
|
31
|
+
{
|
32
|
+
name: 'textOutput',
|
33
|
+
strategy: 'tiered',
|
34
|
+
tiers: [
|
35
|
+
{ rate: 10, upTo: 200_000 },
|
36
|
+
{ rate: 15, upTo: 'infinity' },
|
37
|
+
],
|
38
|
+
unit: 'millionTokens',
|
39
|
+
},
|
24
40
|
],
|
25
41
|
},
|
26
42
|
releasedAt: '2025-06-17',
|
@@ -47,8 +63,24 @@ const googleChatModels: AIChatModelCard[] = [
|
|
47
63
|
pricing: {
|
48
64
|
units: [
|
49
65
|
{ name: 'textInput_cacheRead', rate: 0.31, strategy: 'fixed', unit: 'millionTokens' },
|
50
|
-
{
|
51
|
-
|
66
|
+
{
|
67
|
+
name: 'textInput',
|
68
|
+
strategy: 'tiered',
|
69
|
+
tiers: [
|
70
|
+
{ rate: 1.25, upTo: 200_000 },
|
71
|
+
{ rate: 2.5, upTo: 'infinity' },
|
72
|
+
],
|
73
|
+
unit: 'millionTokens',
|
74
|
+
},
|
75
|
+
{
|
76
|
+
name: 'textOutput',
|
77
|
+
strategy: 'tiered',
|
78
|
+
tiers: [
|
79
|
+
{ rate: 10, upTo: 200_000 },
|
80
|
+
{ rate: 15, upTo: 'infinity' },
|
81
|
+
],
|
82
|
+
unit: 'millionTokens',
|
83
|
+
},
|
52
84
|
],
|
53
85
|
},
|
54
86
|
releasedAt: '2025-06-05',
|
@@ -75,8 +107,24 @@ const googleChatModels: AIChatModelCard[] = [
|
|
75
107
|
pricing: {
|
76
108
|
units: [
|
77
109
|
{ name: 'textInput_cacheRead', rate: 0.31, strategy: 'fixed', unit: 'millionTokens' },
|
78
|
-
{
|
79
|
-
|
110
|
+
{
|
111
|
+
name: 'textInput',
|
112
|
+
strategy: 'tiered',
|
113
|
+
tiers: [
|
114
|
+
{ rate: 1.25, upTo: 200_000 },
|
115
|
+
{ rate: 2.5, upTo: 'infinity' },
|
116
|
+
],
|
117
|
+
unit: 'millionTokens',
|
118
|
+
},
|
119
|
+
{
|
120
|
+
name: 'textOutput',
|
121
|
+
strategy: 'tiered',
|
122
|
+
tiers: [
|
123
|
+
{ rate: 10, upTo: 200_000 },
|
124
|
+
{ rate: 15, upTo: 'infinity' },
|
125
|
+
],
|
126
|
+
unit: 'millionTokens',
|
127
|
+
},
|
80
128
|
],
|
81
129
|
},
|
82
130
|
releasedAt: '2025-05-06',
|
@@ -544,6 +592,9 @@ const googleImageModels: AIImageModelCard[] = [
|
|
544
592
|
id: 'imagen-4.0-generate-preview-06-06',
|
545
593
|
organization: 'Deepmind',
|
546
594
|
parameters: imagenBaseParameters,
|
595
|
+
pricing: {
|
596
|
+
units: [{ name: 'imageGeneration', rate: 0.04, strategy: 'fixed', unit: 'image' }],
|
597
|
+
},
|
547
598
|
releasedAt: '2024-06-06',
|
548
599
|
type: 'image',
|
549
600
|
},
|
@@ -554,6 +605,9 @@ const googleImageModels: AIImageModelCard[] = [
|
|
554
605
|
id: 'imagen-4.0-ultra-generate-preview-06-06',
|
555
606
|
organization: 'Deepmind',
|
556
607
|
parameters: imagenBaseParameters,
|
608
|
+
pricing: {
|
609
|
+
units: [{ name: 'imageGeneration', rate: 0.06, strategy: 'fixed', unit: 'image' }],
|
610
|
+
},
|
557
611
|
releasedAt: '2024-06-06',
|
558
612
|
type: 'image',
|
559
613
|
},
|
@@ -5,7 +5,7 @@ import { AIChatModelCard } from '@/types/aiModel';
|
|
5
5
|
|
6
6
|
const groqChatModels: AIChatModelCard[] = [
|
7
7
|
{
|
8
|
-
contextWindowTokens:
|
8
|
+
contextWindowTokens: 131_072,
|
9
9
|
description:
|
10
10
|
'Compound-beta 是一个复合 AI 系统,由 GroqCloud 中已经支持的多个开放可用的模型提供支持,可以智能地、有选择地使用工具来回答用户查询。',
|
11
11
|
displayName: 'Compound Beta',
|
@@ -15,7 +15,7 @@ const groqChatModels: AIChatModelCard[] = [
|
|
15
15
|
type: 'chat',
|
16
16
|
},
|
17
17
|
{
|
18
|
-
contextWindowTokens:
|
18
|
+
contextWindowTokens: 131_072,
|
19
19
|
description:
|
20
20
|
'Compound-beta-mini 是一个复合 AI 系统,由 GroqCloud 中已经支持的公开可用模型提供支持,可以智能地、有选择地使用工具来回答用户查询。',
|
21
21
|
displayName: 'Compound Beta Mini',
|
@@ -121,7 +121,7 @@ const groqChatModels: AIChatModelCard[] = [
|
|
121
121
|
contextWindowTokens: 131_072,
|
122
122
|
displayName: 'Qwen3 32B',
|
123
123
|
id: 'qwen/qwen3-32b',
|
124
|
-
maxOutput:
|
124
|
+
maxOutput: 40_960,
|
125
125
|
pricing: {
|
126
126
|
units: [
|
127
127
|
{ name: 'textInput', rate: 0.29, strategy: 'fixed', unit: 'millionTokens' },
|
@@ -147,23 +147,6 @@ const groqChatModels: AIChatModelCard[] = [
|
|
147
147
|
},
|
148
148
|
type: 'chat',
|
149
149
|
},
|
150
|
-
{
|
151
|
-
abilities: {
|
152
|
-
functionCall: true,
|
153
|
-
},
|
154
|
-
contextWindowTokens: 8192,
|
155
|
-
description: 'Gemma 2 9B 是一款优化用于特定任务和工具整合的模型。',
|
156
|
-
displayName: 'Gemma 2 9B',
|
157
|
-
id: 'gemma2-9b-it',
|
158
|
-
maxOutput: 8192,
|
159
|
-
pricing: {
|
160
|
-
units: [
|
161
|
-
{ name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },
|
162
|
-
{ name: 'textOutput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },
|
163
|
-
],
|
164
|
-
},
|
165
|
-
type: 'chat',
|
166
|
-
},
|
167
150
|
{
|
168
151
|
abilities: {
|
169
152
|
functionCall: true,
|
@@ -186,7 +169,7 @@ const groqChatModels: AIChatModelCard[] = [
|
|
186
169
|
abilities: {
|
187
170
|
functionCall: true,
|
188
171
|
},
|
189
|
-
contextWindowTokens:
|
172
|
+
contextWindowTokens: 131_072,
|
190
173
|
description:
|
191
174
|
'Meta Llama 3.3 多语言大语言模型 ( LLM ) 是 70B(文本输入/文本输出)中的预训练和指令调整生成模型。 Llama 3.3 指令调整的纯文本模型针对多语言对话用例进行了优化,并且在常见行业基准上优于许多可用的开源和封闭式聊天模型。',
|
192
175
|
displayName: 'Llama 3.3 70B Versatile',
|
@@ -42,9 +42,9 @@ const mistralChatModels: AIChatModelCard[] = [
|
|
42
42
|
abilities: {
|
43
43
|
functionCall: true,
|
44
44
|
},
|
45
|
-
contextWindowTokens:
|
45
|
+
contextWindowTokens: 128_000,
|
46
46
|
description: 'Mistral Small是成本效益高、快速且可靠的选项,适用于翻译、摘要和情感分析等用例。',
|
47
|
-
displayName: 'Mistral Small 3.
|
47
|
+
displayName: 'Mistral Small 3.2',
|
48
48
|
enabled: true,
|
49
49
|
id: 'mistral-small-latest',
|
50
50
|
pricing: {
|
@@ -62,7 +62,7 @@ const mistralChatModels: AIChatModelCard[] = [
|
|
62
62
|
contextWindowTokens: 131_072,
|
63
63
|
description:
|
64
64
|
'Mistral Large是旗舰大模型,擅长多语言任务、复杂推理和代码生成,是高端应用的理想选择。',
|
65
|
-
displayName: 'Mistral Large
|
65
|
+
displayName: 'Mistral Large 2.1',
|
66
66
|
enabled: true,
|
67
67
|
id: 'mistral-large-latest',
|
68
68
|
pricing: {
|
@@ -73,6 +73,23 @@ const mistralChatModels: AIChatModelCard[] = [
|
|
73
73
|
},
|
74
74
|
type: 'chat',
|
75
75
|
},
|
76
|
+
{
|
77
|
+
abilities: {
|
78
|
+
reasoning: true,
|
79
|
+
},
|
80
|
+
contextWindowTokens: 128_000,
|
81
|
+
description: 'Magistral Medium 1.1 是 Mistral AI 于2025年7月发布的前沿级推理模型。',
|
82
|
+
displayName: 'Magistral Medium 1.1',
|
83
|
+
enabled: true,
|
84
|
+
id: 'magistral-medium-latest',
|
85
|
+
pricing: {
|
86
|
+
units: [
|
87
|
+
{ name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
|
88
|
+
{ name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
|
89
|
+
],
|
90
|
+
},
|
91
|
+
type: 'chat',
|
92
|
+
},
|
76
93
|
{
|
77
94
|
abilities: {
|
78
95
|
functionCall: true,
|
@@ -80,7 +97,7 @@ const mistralChatModels: AIChatModelCard[] = [
|
|
80
97
|
contextWindowTokens: 256_000,
|
81
98
|
description:
|
82
99
|
'Codestral 是我们最先进的编码语言模型,第二个版本于2025年1月发布,专门从事低延迟、高频任务如中间填充(RST)、代码纠正和测试生成。',
|
83
|
-
displayName: 'Codestral',
|
100
|
+
displayName: 'Codestral 2508',
|
84
101
|
id: 'codestral-latest',
|
85
102
|
pricing: {
|
86
103
|
units: [
|
@@ -88,7 +105,7 @@ const mistralChatModels: AIChatModelCard[] = [
|
|
88
105
|
{ name: 'textOutput', rate: 0.9, strategy: 'fixed', unit: 'millionTokens' },
|
89
106
|
],
|
90
107
|
},
|
91
|
-
releasedAt: '2025-
|
108
|
+
releasedAt: '2025-07-30',
|
92
109
|
type: 'chat',
|
93
110
|
},
|
94
111
|
{
|
@@ -23,6 +23,26 @@ const moonshotChatModels: AIChatModelCard[] = [
|
|
23
23
|
releasedAt: '2025-07-11',
|
24
24
|
type: 'chat',
|
25
25
|
},
|
26
|
+
{
|
27
|
+
abilities: {
|
28
|
+
functionCall: true,
|
29
|
+
},
|
30
|
+
contextWindowTokens: 131_072,
|
31
|
+
description:
|
32
|
+
'kimi-k2 是一款具备超强代码和 Agent 能力的 MoE 架构基础模型,总参数 1T,激活参数 32B。在通用知识推理、编程、数学、Agent 等主要类别的基准性能测试中,K2 模型的性能超过其他主流开源模型。',
|
33
|
+
displayName: 'Kimi K2 Turbo',
|
34
|
+
id: 'kimi-k2-turbo-preview',
|
35
|
+
pricing: {
|
36
|
+
currency: 'CNY',
|
37
|
+
units: [
|
38
|
+
{ name: 'textInput_cacheRead', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
|
39
|
+
{ name: 'textInput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },
|
40
|
+
{ name: 'textOutput', rate: 64, strategy: 'fixed', unit: 'millionTokens' },
|
41
|
+
],
|
42
|
+
},
|
43
|
+
releasedAt: '2025-07-11',
|
44
|
+
type: 'chat',
|
45
|
+
},
|
26
46
|
{
|
27
47
|
abilities: {
|
28
48
|
functionCall: true,
|
@@ -352,28 +352,6 @@ export const openaiChatModels: AIChatModelCard[] = [
|
|
352
352
|
},
|
353
353
|
type: 'chat',
|
354
354
|
},
|
355
|
-
{
|
356
|
-
abilities: {
|
357
|
-
reasoning: true,
|
358
|
-
},
|
359
|
-
contextWindowTokens: 128_000,
|
360
|
-
description:
|
361
|
-
'o1是OpenAI新的推理模型,适用于需要广泛通用知识的复杂任务。该模型具有128K上下文和2023年10月的知识截止日期。',
|
362
|
-
displayName: 'o1-preview',
|
363
|
-
id: 'o1-preview',
|
364
|
-
maxOutput: 32_768,
|
365
|
-
pricing: {
|
366
|
-
units: [
|
367
|
-
{ name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
|
368
|
-
{ name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },
|
369
|
-
],
|
370
|
-
},
|
371
|
-
releasedAt: '2024-09-12',
|
372
|
-
settings: {
|
373
|
-
extendParams: ['reasoningEffort'],
|
374
|
-
},
|
375
|
-
type: 'chat',
|
376
|
-
},
|
377
355
|
{
|
378
356
|
abilities: {
|
379
357
|
functionCall: true,
|
@@ -443,27 +421,6 @@ export const openaiChatModels: AIChatModelCard[] = [
|
|
443
421
|
releasedAt: '2025-04-14',
|
444
422
|
type: 'chat',
|
445
423
|
},
|
446
|
-
{
|
447
|
-
abilities: {
|
448
|
-
functionCall: true,
|
449
|
-
vision: true,
|
450
|
-
},
|
451
|
-
contextWindowTokens: 128_000,
|
452
|
-
description:
|
453
|
-
'GPT-4.5 的研究预览版,它是我们迄今为止最大、最强大的 GPT 模型。它拥有广泛的世界知识,并能更好地理解用户意图,使其在创造性任务和自主规划方面表现出色。GPT-4.5 可接受文本和图像输入,并生成文本输出(包括结构化输出)。支持关键的开发者功能,如函数调用、批量 API 和流式输出。在需要创造性、开放式思考和对话的任务(如写作、学习或探索新想法)中,GPT-4.5 表现尤为出色。知识截止日期为 2023 年 10 月。',
|
454
|
-
displayName: 'GPT-4.5 Preview',
|
455
|
-
id: 'gpt-4.5-preview', // deprecated on 2025-07-14
|
456
|
-
maxOutput: 16_384,
|
457
|
-
pricing: {
|
458
|
-
units: [
|
459
|
-
{ name: 'textInput_cacheRead', rate: 37.5, strategy: 'fixed', unit: 'millionTokens' },
|
460
|
-
{ name: 'textInput', rate: 75, strategy: 'fixed', unit: 'millionTokens' },
|
461
|
-
{ name: 'textOutput', rate: 150, strategy: 'fixed', unit: 'millionTokens' },
|
462
|
-
],
|
463
|
-
},
|
464
|
-
releasedAt: '2025-02-27',
|
465
|
-
type: 'chat',
|
466
|
-
},
|
467
424
|
{
|
468
425
|
abilities: {
|
469
426
|
functionCall: true,
|
@@ -60,7 +60,7 @@ const qwenChatModels: AIChatModelCard[] = [
|
|
60
60
|
config: {
|
61
61
|
deploymentName: 'qwen3-coder-flash',
|
62
62
|
},
|
63
|
-
contextWindowTokens:
|
63
|
+
contextWindowTokens: 1_000_000,
|
64
64
|
description:
|
65
65
|
'通义千问代码模型。最新的 Qwen3-Coder 系列模型是基于 Qwen3 的代码生成模型,具有强大的Coding Agent能力,擅长工具调用和环境交互,能够实现自主编程,代码能力卓越的同时兼具通用能力。',
|
66
66
|
displayName: 'Qwen3 Coder Flash',
|
@@ -423,6 +423,64 @@ const qwenChatModels: AIChatModelCard[] = [
|
|
423
423
|
},
|
424
424
|
type: 'chat',
|
425
425
|
},
|
426
|
+
{
|
427
|
+
abilities: {
|
428
|
+
functionCall: true,
|
429
|
+
reasoning: true,
|
430
|
+
search: true,
|
431
|
+
},
|
432
|
+
config: {
|
433
|
+
deploymentName: 'qwen-flash',
|
434
|
+
},
|
435
|
+
contextWindowTokens: 1_000_000,
|
436
|
+
description: '通义千问系列速度最快、成本极低的模型,适合简单任务。',
|
437
|
+
displayName: 'Qwen Flash',
|
438
|
+
enabled: true,
|
439
|
+
id: 'qwen-flash',
|
440
|
+
maxOutput: 32_768,
|
441
|
+
organization: 'Qwen',
|
442
|
+
pricing: {
|
443
|
+
currency: 'CNY',
|
444
|
+
units: [
|
445
|
+
{
|
446
|
+
name: 'textInput',
|
447
|
+
strategy: 'tiered',
|
448
|
+
tiers: [
|
449
|
+
{ rate: 0.15, upTo: 0.128 },
|
450
|
+
{ rate: 0.6, upTo: 0.256 },
|
451
|
+
{ rate: 1.2, upTo: 'infinity' },
|
452
|
+
],
|
453
|
+
unit: 'millionTokens',
|
454
|
+
},
|
455
|
+
{
|
456
|
+
name: 'textOutput',
|
457
|
+
strategy: 'tiered',
|
458
|
+
tiers: [
|
459
|
+
{ rate: 1.5, upTo: 0.128 },
|
460
|
+
{ rate: 6, upTo: 0.256 },
|
461
|
+
{ rate: 12, upTo: 'infinity' },
|
462
|
+
],
|
463
|
+
unit: 'millionTokens',
|
464
|
+
},
|
465
|
+
{
|
466
|
+
name: 'textInput_cacheRead',
|
467
|
+
strategy: 'tiered',
|
468
|
+
tiers: [
|
469
|
+
{ rate: 0.15 * 0.4, upTo: 0.128 },
|
470
|
+
{ rate: 0.6 * 0.4, upTo: 0.256 },
|
471
|
+
{ rate: 1.2 * 0.4, upTo: 'infinity' },
|
472
|
+
],
|
473
|
+
unit: 'millionTokens',
|
474
|
+
},
|
475
|
+
],
|
476
|
+
},
|
477
|
+
releasedAt: '2025-07-28',
|
478
|
+
settings: {
|
479
|
+
extendParams: ['enableReasoning', 'reasoningBudgetToken'],
|
480
|
+
searchImpl: 'params',
|
481
|
+
},
|
482
|
+
type: 'chat',
|
483
|
+
},
|
426
484
|
{
|
427
485
|
abilities: {
|
428
486
|
functionCall: true,
|
@@ -433,9 +491,9 @@ const qwenChatModels: AIChatModelCard[] = [
|
|
433
491
|
deploymentName: 'qwen-turbo-2025-07-15',
|
434
492
|
},
|
435
493
|
contextWindowTokens: 1_000_000, // Non-thinking mode
|
436
|
-
description:
|
494
|
+
description:
|
495
|
+
'通义千问 Turbo 后续不再更新,建议替换为通义千问 Flash 。通义千问超大规模语言模型,支持中文、英文等不同语言输入。',
|
437
496
|
displayName: 'Qwen Turbo',
|
438
|
-
enabled: true,
|
439
497
|
id: 'qwen-turbo',
|
440
498
|
maxOutput: 16_384,
|
441
499
|
organization: 'Qwen',
|
@@ -1261,6 +1319,10 @@ const qwenImageModels: AIImageModelCard[] = [
|
|
1261
1319
|
seed: { default: null },
|
1262
1320
|
width: { default: 1024, max: 1440, min: 512, step: 1 },
|
1263
1321
|
},
|
1322
|
+
pricing: {
|
1323
|
+
currency: 'CNY',
|
1324
|
+
units: [{ name: 'imageGeneration', rate: 0.14, strategy: 'fixed', unit: 'image' }],
|
1325
|
+
},
|
1264
1326
|
releasedAt: '2025-07-28',
|
1265
1327
|
type: 'image',
|
1266
1328
|
},
|
@@ -1279,6 +1341,10 @@ const qwenImageModels: AIImageModelCard[] = [
|
|
1279
1341
|
seed: { default: null },
|
1280
1342
|
width: { default: 1024, max: 1440, min: 512, step: 1 },
|
1281
1343
|
},
|
1344
|
+
pricing: {
|
1345
|
+
currency: 'CNY',
|
1346
|
+
units: [{ name: 'imageGeneration', rate: 0.2, strategy: 'fixed', unit: 'image' }],
|
1347
|
+
},
|
1282
1348
|
releasedAt: '2025-07-28',
|
1283
1349
|
type: 'image',
|
1284
1350
|
},
|
@@ -1295,6 +1361,10 @@ const qwenImageModels: AIImageModelCard[] = [
|
|
1295
1361
|
seed: { default: null },
|
1296
1362
|
width: { default: 1024, max: 1440, min: 512, step: 1 },
|
1297
1363
|
},
|
1364
|
+
pricing: {
|
1365
|
+
currency: 'CNY',
|
1366
|
+
units: [{ name: 'imageGeneration', rate: 0.14, strategy: 'fixed', unit: 'image' }],
|
1367
|
+
},
|
1298
1368
|
releasedAt: '2025-01-08',
|
1299
1369
|
type: 'image',
|
1300
1370
|
},
|
@@ -1311,6 +1381,10 @@ const qwenImageModels: AIImageModelCard[] = [
|
|
1311
1381
|
seed: { default: null },
|
1312
1382
|
width: { default: 1024, max: 1440, min: 512, step: 1 },
|
1313
1383
|
},
|
1384
|
+
pricing: {
|
1385
|
+
currency: 'CNY',
|
1386
|
+
units: [{ name: 'imageGeneration', rate: 0.2, strategy: 'fixed', unit: 'image' }],
|
1387
|
+
},
|
1314
1388
|
releasedAt: '2025-01-08',
|
1315
1389
|
type: 'image',
|
1316
1390
|
},
|
@@ -1327,6 +1401,10 @@ const qwenImageModels: AIImageModelCard[] = [
|
|
1327
1401
|
seed: { default: null },
|
1328
1402
|
width: { default: 1024, max: 1440, min: 512, step: 1 },
|
1329
1403
|
},
|
1404
|
+
pricing: {
|
1405
|
+
currency: 'CNY',
|
1406
|
+
units: [{ name: 'imageGeneration', rate: 0.04, strategy: 'fixed', unit: 'image' }],
|
1407
|
+
},
|
1330
1408
|
releasedAt: '2025-01-17',
|
1331
1409
|
type: 'image',
|
1332
1410
|
},
|
@@ -1343,6 +1421,10 @@ const qwenImageModels: AIImageModelCard[] = [
|
|
1343
1421
|
seed: { default: null },
|
1344
1422
|
width: { default: 1024, max: 1440, min: 512, step: 1 },
|
1345
1423
|
},
|
1424
|
+
pricing: {
|
1425
|
+
currency: 'CNY',
|
1426
|
+
units: [{ name: 'imageGeneration', rate: 0.04, strategy: 'fixed', unit: 'image' }],
|
1427
|
+
},
|
1346
1428
|
releasedAt: '2024-05-22',
|
1347
1429
|
type: 'image',
|
1348
1430
|
},
|
@@ -1364,6 +1446,10 @@ const qwenImageModels: AIImageModelCard[] = [
|
|
1364
1446
|
},
|
1365
1447
|
steps: { default: 4, max: 12, min: 1 },
|
1366
1448
|
},
|
1449
|
+
pricing: {
|
1450
|
+
currency: 'CNY',
|
1451
|
+
units: [{ name: 'imageGeneration', rate: 0, strategy: 'fixed', unit: 'image' }],
|
1452
|
+
},
|
1367
1453
|
releasedAt: '2024-08-07',
|
1368
1454
|
type: 'image',
|
1369
1455
|
},
|
@@ -1385,6 +1471,10 @@ const qwenImageModels: AIImageModelCard[] = [
|
|
1385
1471
|
},
|
1386
1472
|
steps: { default: 50, max: 50, min: 1 },
|
1387
1473
|
},
|
1474
|
+
pricing: {
|
1475
|
+
currency: 'CNY',
|
1476
|
+
units: [{ name: 'imageGeneration', rate: 0, strategy: 'fixed', unit: 'image' }],
|
1477
|
+
},
|
1388
1478
|
releasedAt: '2024-08-07',
|
1389
1479
|
type: 'image',
|
1390
1480
|
},
|
@@ -1406,6 +1496,10 @@ const qwenImageModels: AIImageModelCard[] = [
|
|
1406
1496
|
},
|
1407
1497
|
steps: { default: 30, max: 30, min: 1 },
|
1408
1498
|
},
|
1499
|
+
pricing: {
|
1500
|
+
currency: 'CNY',
|
1501
|
+
units: [{ name: 'imageGeneration', rate: 0, strategy: 'fixed', unit: 'image' }],
|
1502
|
+
},
|
1409
1503
|
releasedAt: '2024-08-22',
|
1410
1504
|
type: 'image',
|
1411
1505
|
},
|
@@ -1423,6 +1517,10 @@ const qwenImageModels: AIImageModelCard[] = [
|
|
1423
1517
|
steps: { default: 40, max: 500, min: 1 },
|
1424
1518
|
width: { default: 1024, max: 1024, min: 512, step: 128 },
|
1425
1519
|
},
|
1520
|
+
pricing: {
|
1521
|
+
currency: 'CNY',
|
1522
|
+
units: [{ name: 'imageGeneration', rate: 0, strategy: 'fixed', unit: 'image' }],
|
1523
|
+
},
|
1426
1524
|
releasedAt: '2024-10-25',
|
1427
1525
|
type: 'image',
|
1428
1526
|
},
|
@@ -1440,6 +1538,10 @@ const qwenImageModels: AIImageModelCard[] = [
|
|
1440
1538
|
steps: { default: 40, max: 500, min: 1 },
|
1441
1539
|
width: { default: 1024, max: 1024, min: 512, step: 128 },
|
1442
1540
|
},
|
1541
|
+
pricing: {
|
1542
|
+
currency: 'CNY',
|
1543
|
+
units: [{ name: 'imageGeneration', rate: 0, strategy: 'fixed', unit: 'image' }],
|
1544
|
+
},
|
1443
1545
|
releasedAt: '2024-10-25',
|
1444
1546
|
type: 'image',
|
1445
1547
|
},
|
@@ -1457,6 +1559,10 @@ const qwenImageModels: AIImageModelCard[] = [
|
|
1457
1559
|
steps: { default: 50, max: 500, min: 1 },
|
1458
1560
|
width: { default: 1024, max: 1024, min: 512, step: 128 },
|
1459
1561
|
},
|
1562
|
+
pricing: {
|
1563
|
+
currency: 'CNY',
|
1564
|
+
units: [{ name: 'imageGeneration', rate: 0, strategy: 'fixed', unit: 'image' }],
|
1565
|
+
},
|
1460
1566
|
releasedAt: '2024-04-09',
|
1461
1567
|
type: 'image',
|
1462
1568
|
},
|
@@ -1474,6 +1580,10 @@ const qwenImageModels: AIImageModelCard[] = [
|
|
1474
1580
|
steps: { default: 50, max: 500, min: 1 },
|
1475
1581
|
width: { default: 512, max: 1024, min: 512, step: 128 },
|
1476
1582
|
},
|
1583
|
+
pricing: {
|
1584
|
+
currency: 'CNY',
|
1585
|
+
units: [{ name: 'imageGeneration', rate: 0, strategy: 'fixed', unit: 'image' }],
|
1586
|
+
},
|
1477
1587
|
releasedAt: '2024-04-09',
|
1478
1588
|
type: 'image',
|
1479
1589
|
},
|
@@ -23,9 +23,9 @@ const sensenovaChatModels: AIChatModelCard[] = [
|
|
23
23
|
],
|
24
24
|
},
|
25
25
|
releasedAt: '2025-07-23',
|
26
|
-
settings: {
|
27
|
-
|
28
|
-
},
|
26
|
+
// settings: {
|
27
|
+
// extendParams: ['enableReasoning'],
|
28
|
+
// },
|
29
29
|
type: 'chat',
|
30
30
|
},
|
31
31
|
{
|
@@ -47,9 +47,9 @@ const sensenovaChatModels: AIChatModelCard[] = [
|
|
47
47
|
],
|
48
48
|
},
|
49
49
|
releasedAt: '2025-07-23',
|
50
|
-
settings: {
|
51
|
-
|
52
|
-
},
|
50
|
+
// settings: {
|
51
|
+
// extendParams: ['enableReasoning'],
|
52
|
+
// },
|
53
53
|
type: 'chat',
|
54
54
|
},
|
55
55
|
{
|