Skip to content

Commit b7753e2

Browse files
authored
💄 style: Add new gemini & Mistral models (lobehub#7730)
* Update google.ts * Update google.ts * Update google.ts * Update vertexai.ts * Update vertexai.ts * Update mistral.ts
1 parent 7469c10 commit b7753e2

File tree

4 files changed

+107
-135
lines changed

4 files changed

+107
-135
lines changed

src/config/aiModels/google.ts

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@ const googleChatModels: AIChatModelCard[] = [
99
vision: true,
1010
},
1111
contextWindowTokens: 1_048_576 + 65_536,
12-
description: 'Gemini 2.5 Flash Preview 是 Google 性价比最高的模型,提供全面的功能。',
13-
displayName: 'Gemini 2.5 Flash Preview 04-17',
12+
description:
13+
'Gemini 2.5 Pro Experimental 是 Google 最先进的思维模型,能够对代码、数学和STEM领域的复杂问题进行推理,以及使用长上下文分析大型数据集、代码库和文档。',
14+
displayName: 'Gemini 2.5 Pro Experimental 03-25',
1415
enabled: true,
15-
id: 'gemini-2.5-flash-preview-04-17',
16+
id: 'gemini-2.5-pro-exp-03-25',
1617
maxOutput: 65_536,
1718
pricing: {
18-
input: 0.15,
19-
output: 3.5, // Thinking
19+
input: 0,
20+
output: 0,
2021
},
21-
releasedAt: '2025-04-17',
22+
releasedAt: '2025-03-25',
2223
settings: {
2324
searchImpl: 'params',
2425
searchProvider: 'google',
@@ -34,16 +35,15 @@ const googleChatModels: AIChatModelCard[] = [
3435
},
3536
contextWindowTokens: 1_048_576 + 65_536,
3637
description:
37-
'Gemini 2.5 Pro Experimental 是 Google 最先进的思维模型,能够对代码、数学和STEM领域的复杂问题进行推理,以及使用长上下文分析大型数据集、代码库和文档。',
38-
displayName: 'Gemini 2.5 Pro Experimental 03-25',
39-
enabled: true,
40-
id: 'gemini-2.5-pro-exp-03-25',
38+
'Gemini 2.5 Pro Preview 是 Google 最先进的思维模型,能够对代码、数学和STEM领域的复杂问题进行推理,以及使用长上下文分析大型数据集、代码库和文档。',
39+
displayName: 'Gemini 2.5 Pro Preview 05-06 (Paid)',
40+
id: 'gemini-2.5-pro-preview-05-06',
4141
maxOutput: 65_536,
4242
pricing: {
43-
input: 0,
44-
output: 0,
43+
input: 1.25, // prompts <= 200k tokens
44+
output: 10, // prompts <= 200k tokens
4545
},
46-
releasedAt: '2025-03-25',
46+
releasedAt: '2025-05-06',
4747
settings: {
4848
searchImpl: 'params',
4949
searchProvider: 'google',
@@ -74,6 +74,30 @@ const googleChatModels: AIChatModelCard[] = [
7474
},
7575
type: 'chat',
7676
},
77+
{
78+
abilities: {
79+
functionCall: true,
80+
reasoning: true,
81+
search: true,
82+
vision: true,
83+
},
84+
contextWindowTokens: 1_048_576 + 65_536,
85+
description: 'Gemini 2.5 Flash Preview 是 Google 性价比最高的模型,提供全面的功能。',
86+
displayName: 'Gemini 2.5 Flash Preview 04-17',
87+
enabled: true,
88+
id: 'gemini-2.5-flash-preview-04-17',
89+
maxOutput: 65_536,
90+
pricing: {
91+
input: 0.15,
92+
output: 3.5, // Thinking
93+
},
94+
releasedAt: '2025-04-17',
95+
settings: {
96+
searchImpl: 'params',
97+
searchProvider: 'google',
98+
},
99+
type: 'chat',
100+
},
77101
{
78102
abilities: {
79103
reasoning: true,

src/config/aiModels/mistral.ts

Lines changed: 22 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ import { AIChatModelCard } from '@/types/aiModel';
44
// https://mistral.ai/products/la-plateforme#pricing
55

66
const mistralChatModels: AIChatModelCard[] = [
7+
{
8+
abilities: {
9+
functionCall: true,
10+
},
11+
contextWindowTokens: 128_000,
12+
description:
13+
'Mistral Medium 3 以 8 倍的成本提供最先进的性能,并从根本上简化了企业部署。',
14+
displayName: 'Mistral Medium 3',
15+
enabled: true,
16+
id: 'mistral-medium-latest',
17+
pricing: {
18+
input: 0.4,
19+
output: 2,
20+
},
21+
type: 'chat',
22+
},
723
{
824
abilities: {
925
functionCall: true,
@@ -12,11 +28,10 @@ const mistralChatModels: AIChatModelCard[] = [
1228
description:
1329
'Mistral Nemo是一个与Nvidia合作开发的12B模型,提供出色的推理和编码性能,易于集成和替换。',
1430
displayName: 'Mistral Nemo',
15-
enabled: true,
1631
id: 'open-mistral-nemo',
1732
pricing: {
18-
input: 0,
19-
output: 0,
33+
input: 0.15,
34+
output: 0.15,
2035
},
2136
type: 'chat',
2237
},
@@ -26,7 +41,7 @@ const mistralChatModels: AIChatModelCard[] = [
2641
},
2742
contextWindowTokens: 32_000,
2843
description: 'Mistral Small是成本效益高、快速且可靠的选项,适用于翻译、摘要和情感分析等用例。',
29-
displayName: 'Mistral Small',
44+
displayName: 'Mistral Small 3.1',
3045
enabled: true,
3146
id: 'mistral-small-latest',
3247
pricing: {
@@ -42,7 +57,7 @@ const mistralChatModels: AIChatModelCard[] = [
4257
contextWindowTokens: 131_072,
4358
description:
4459
'Mistral Large是旗舰大模型,擅长多语言任务、复杂推理和代码生成,是高端应用的理想选择。',
45-
displayName: 'Mistral Large',
60+
displayName: 'Mistral Large 24.11',
4661
enabled: true,
4762
id: 'mistral-large-latest',
4863
pricing: {
@@ -93,11 +108,10 @@ const mistralChatModels: AIChatModelCard[] = [
93108
description:
94109
'Pixtral 模型在图表和图理解、文档问答、多模态推理和指令遵循等任务上表现出强大的能力,能够以自然分辨率和宽高比摄入图像,还能够在长达 128K 令牌的长上下文窗口中处理任意数量的图像。',
95110
displayName: 'Pixtral 12B',
96-
enabled: true,
97111
id: 'pixtral-12b-2409',
98112
pricing: {
99-
input: 0,
100-
output: 0,
113+
input: 0.15,
114+
output: 0.15,
101115
},
102116
type: 'chat',
103117
},
@@ -129,45 +143,6 @@ const mistralChatModels: AIChatModelCard[] = [
129143
},
130144
type: 'chat',
131145
},
132-
{
133-
contextWindowTokens: 32_768,
134-
description:
135-
'Mistral 7B是一款紧凑但高性能的模型,擅长批量处理和简单任务,如分类和文本生成,具有良好的推理能力。',
136-
displayName: 'Mistral 7B',
137-
id: 'open-mistral-7b', // Deprecated on 2025/03/30
138-
pricing: {
139-
input: 0.25,
140-
output: 0.25,
141-
},
142-
type: 'chat',
143-
},
144-
{
145-
contextWindowTokens: 32_768,
146-
description:
147-
'Mixtral 8x7B是一个稀疏专家模型,利用多个参数提高推理速度,适合处理多语言和代码生成任务。',
148-
displayName: 'Mixtral 8x7B',
149-
id: 'open-mixtral-8x7b', // Deprecated on 2025/03/30
150-
pricing: {
151-
input: 0.7,
152-
output: 0.7,
153-
},
154-
type: 'chat',
155-
},
156-
{
157-
abilities: {
158-
functionCall: true,
159-
},
160-
contextWindowTokens: 65_536,
161-
description:
162-
'Mixtral 8x22B是一个更大的专家模型,专注于复杂任务,提供出色的推理能力和更高的吞吐量。',
163-
displayName: 'Mixtral 8x22B',
164-
id: 'open-mixtral-8x22b', // Deprecated on 2025/03/30
165-
pricing: {
166-
input: 2,
167-
output: 6,
168-
},
169-
type: 'chat',
170-
},
171146
{
172147
contextWindowTokens: 256_000,
173148
description:

src/config/aiModels/vertexai.ts

Lines changed: 47 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -5,59 +5,59 @@ const vertexaiChatModels: AIChatModelCard[] = [
55
{
66
abilities: {
77
functionCall: true,
8+
reasoning: true,
89
vision: true,
910
},
10-
contextWindowTokens: 2_097_152 + 8192,
11+
contextWindowTokens: 1_048_576 + 65_536,
1112
description:
12-
'Gemini 2.0 Pro Experimental 是 Google 最新的实验性多模态AI模型,与历史版本相比有一定的质量提升,特别是对于世界知识、代码和长上下文。',
13-
displayName: 'Gemini 2.0 Pro Experimental 02-05',
13+
'Gemini 2.5 Pro Preview 是 Google 最先进的思维模型,能够对代码、数学和STEM领域的复杂问题进行推理,以及使用长上下文分析大型数据集、代码库和文档。',
14+
displayName: 'Gemini 2.5 Pro Preview 05-06',
1415
enabled: true,
15-
id: 'gemini-2.0-pro-exp-02-05',
16-
maxOutput: 8192,
16+
id: 'gemini-2.5-pro-preview-05-06',
17+
maxOutput: 65_536,
1718
pricing: {
18-
cachedInput: 0,
19-
input: 0,
20-
output: 0,
19+
input: 1.25, // prompts <= 200k tokens
20+
output: 10, // prompts <= 200k tokens
2121
},
22-
releasedAt: '2025-02-05',
22+
releasedAt: '2025-05-06',
2323
type: 'chat',
2424
},
2525
{
2626
abilities: {
2727
functionCall: true,
28+
reasoning: true,
2829
vision: true,
2930
},
30-
contextWindowTokens: 1_048_576 + 8192,
31+
contextWindowTokens: 1_048_576 + 65_536,
3132
description:
32-
'Gemini 2.0 Flash 提供下一代功能和改进,包括卓越的速度、原生工具使用、多模态生成和1M令牌上下文窗口。',
33-
displayName: 'Gemini 2.0 Flash',
34-
enabled: true,
35-
id: 'gemini-2.0-flash',
36-
maxOutput: 8192,
33+
'Gemini 2.5 Pro Preview 是 Google 最先进的思维模型,能够对代码、数学和STEM领域的复杂问题进行推理,以及使用长上下文分析大型数据集、代码库和文档。',
34+
displayName: 'Gemini 2.5 Pro Preview 03-25',
35+
id: 'gemini-2.5-pro-preview-03-25',
36+
maxOutput: 65_536,
3737
pricing: {
38-
cachedInput: 0.0375,
39-
input: 0.15,
40-
output: 0.6,
38+
input: 1.25, // prompts <= 200k tokens
39+
output: 10, // prompts <= 200k tokens
4140
},
42-
releasedAt: '2025-02-05',
41+
releasedAt: '2025-04-09',
4342
type: 'chat',
4443
},
4544
{
4645
abilities: {
4746
functionCall: true,
47+
reasoning: true,
4848
vision: true,
4949
},
50-
contextWindowTokens: 1_048_576 + 8192,
51-
description: 'Gemini 2.0 Flash 模型变体,针对成本效益和低延迟等目标进行了优化。',
52-
displayName: 'Gemini 2.0 Flash-Lite',
53-
id: 'gemini-2.0-flash-lite',
54-
maxOutput: 8192,
50+
contextWindowTokens: 1_048_576 + 65_536,
51+
description: 'Gemini 2.5 Flash Preview 是 Google 性价比最高的模型,提供全面的功能。',
52+
displayName: 'Gemini 2.5 Flash Preview 04-17',
53+
enabled: true,
54+
id: 'gemini-2.5-flash-preview-04-17',
55+
maxOutput: 65_536,
5556
pricing: {
56-
cachedInput: 0.018_75,
57-
input: 0.075,
58-
output: 0.3,
57+
input: 0.15,
58+
output: 3.5, // Thinking
5959
},
60-
releasedAt: '2025-02-05',
60+
releasedAt: '2025-04-17',
6161
type: 'chat',
6262
},
6363
{
@@ -68,8 +68,8 @@ const vertexaiChatModels: AIChatModelCard[] = [
6868
contextWindowTokens: 1_048_576 + 8192,
6969
description:
7070
'Gemini 2.0 Flash 提供下一代功能和改进,包括卓越的速度、原生工具使用、多模态生成和1M令牌上下文窗口。',
71-
displayName: 'Gemini 2.0 Flash 001',
72-
id: 'gemini-2.0-flash-001',
71+
displayName: 'Gemini 2.0 Flash',
72+
id: 'gemini-2.0-flash',
7373
maxOutput: 8192,
7474
pricing: {
7575
cachedInput: 0.0375,
@@ -81,84 +81,57 @@ const vertexaiChatModels: AIChatModelCard[] = [
8181
},
8282
{
8383
abilities: {
84-
reasoning: true,
84+
functionCall: true,
8585
vision: true,
8686
},
87-
contextWindowTokens: 1_048_576 + 65_536,
88-
description:
89-
'Gemini 2.0 Flash Thinking Exp 是 Google 的实验性多模态推理AI模型,能对复杂问题进行推理,拥有新的思维能力。',
90-
displayName: 'Gemini 2.0 Flash Thinking Experimental 01-21',
91-
enabled: true,
92-
id: 'gemini-2.0-flash-thinking-exp-01-21',
93-
maxOutput: 65_536,
87+
contextWindowTokens: 1_048_576 + 8192,
88+
description: 'Gemini 2.0 Flash 模型变体,针对成本效益和低延迟等目标进行了优化。',
89+
displayName: 'Gemini 2.0 Flash-Lite',
90+
id: 'gemini-2.0-flash-lite',
91+
maxOutput: 8192,
9492
pricing: {
95-
cachedInput: 0,
96-
input: 0,
97-
output: 0,
93+
cachedInput: 0.018_75,
94+
input: 0.075,
95+
output: 0.3,
9896
},
99-
releasedAt: '2025-01-21',
97+
releasedAt: '2025-02-05',
10098
type: 'chat',
10199
},
102100
{
103-
abilities: { functionCall: true, vision: true },
101+
abilities: {
102+
functionCall: true,
103+
vision: true
104+
},
104105
contextWindowTokens: 1_000_000 + 8192,
105106
description: 'Gemini 1.5 Flash 002 是一款高效的多模态模型,支持广泛应用的扩展。',
106107
displayName: 'Gemini 1.5 Flash 002',
107108
id: 'gemini-1.5-flash-002',
108109
maxOutput: 8192,
109110
pricing: {
110-
cachedInput: 0.018_75,
111111
input: 0.075,
112112
output: 0.3,
113113
},
114114
releasedAt: '2024-09-25',
115115
type: 'chat',
116116
},
117117
{
118-
abilities: { functionCall: true, vision: true },
119-
contextWindowTokens: 1_000_000 + 8192,
120-
description: 'Gemini 1.5 Flash 001 是一款高效的多模态模型,支持广泛应用的扩展。',
121-
displayName: 'Gemini 1.5 Flash 001',
122-
id: 'gemini-1.5-flash-001',
123-
maxOutput: 8192,
124-
pricing: {
125-
cachedInput: 0.018_75,
126-
input: 0.075,
127-
output: 0.3,
118+
abilities: {
119+
functionCall: true,
120+
vision: true
128121
},
129-
type: 'chat',
130-
},
131-
{
132-
abilities: { functionCall: true, vision: true },
133122
contextWindowTokens: 2_000_000 + 8192,
134123
description:
135124
'Gemini 1.5 Pro 002 是最新的生产就绪模型,提供更高质量的输出,特别在数学、长上下文和视觉任务方面有显著提升。',
136125
displayName: 'Gemini 1.5 Pro 002',
137126
id: 'gemini-1.5-pro-002',
138127
maxOutput: 8192,
139128
pricing: {
140-
cachedInput: 0.315,
141129
input: 1.25,
142130
output: 2.5,
143131
},
144132
releasedAt: '2024-09-24',
145133
type: 'chat',
146134
},
147-
{
148-
abilities: { functionCall: true, vision: true },
149-
contextWindowTokens: 2_000_000 + 8192,
150-
description: 'Gemini 1.5 Pro 001 是可扩展的多模态AI解决方案,支持广泛的复杂任务。',
151-
displayName: 'Gemini 1.5 Pro 001',
152-
id: 'gemini-1.5-pro-001',
153-
maxOutput: 8192,
154-
pricing: {
155-
cachedInput: 0.875,
156-
input: 3.5,
157-
output: 10.5,
158-
},
159-
releasedAt: '2024-02-15',
160-
type: 'chat',
161-
},
162135
];
163136

164137
export const allModels = [...vertexaiChatModels];

0 commit comments

Comments
 (0)