@lobehub/lobehub 2.0.0-next.101 → 2.0.0-next.102
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 +25 -0
- package/changelog/v1.json +9 -0
- package/package.json +1 -1
- package/packages/model-bank/package.json +1 -0
- package/packages/model-bank/src/aiModels/aihubmix.ts +27 -0
- package/packages/model-bank/src/aiModels/google.ts +69 -10
- package/packages/model-bank/src/aiModels/index.ts +3 -0
- package/packages/model-bank/src/aiModels/infiniai.ts +5 -22
- package/packages/model-bank/src/aiModels/ollamacloud.ts +12 -0
- package/packages/model-bank/src/aiModels/siliconcloud.ts +0 -61
- package/packages/model-bank/src/aiModels/vertexai.ts +88 -1
- package/packages/model-bank/src/aiModels/zenmux.ts +1423 -0
- package/packages/model-bank/src/const/modelProvider.ts +1 -0
- package/packages/model-bank/src/standard-parameters/index.ts +9 -0
- package/packages/model-runtime/src/core/openaiCompatibleFactory/index.test.ts +2 -2
- package/packages/model-runtime/src/core/streams/google/index.ts +7 -2
- package/packages/model-runtime/src/core/streams/openai/__snapshots__/responsesStream.test.ts.snap +166 -166
- package/packages/model-runtime/src/index.ts +1 -1
- package/packages/model-runtime/src/providers/google/createImage.ts +1 -0
- package/packages/model-runtime/src/providers/google/index.ts +11 -1
- package/packages/model-runtime/src/providers/zenmux/index.test.ts +320 -0
- package/packages/model-runtime/src/providers/zenmux/index.ts +84 -0
- package/packages/model-runtime/src/runtimeMap.ts +2 -0
- package/packages/types/src/user/settings/keyVaults.ts +1 -0
- package/src/app/[variants]/(main)/image/@menu/features/ConfigPanel/components/ResolutionSelect.tsx +88 -0
- package/src/app/[variants]/(main)/image/@menu/features/ConfigPanel/index.tsx +9 -0
- package/src/config/modelProviders/index.ts +3 -0
- package/src/config/modelProviders/zenmux.ts +21 -0
- package/src/envs/llm.ts +6 -0
- package/src/locales/default/image.ts +8 -0
- package/src/store/chat/slices/aiChat/actions/__tests__/conversationLifecycle.test.ts +3 -0
- package/src/store/chat/slices/aiChat/actions/streamingExecutor.ts +11 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
## [Version 2.0.0-next.102](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.101...v2.0.0-next.102)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2025-11-22**</sup>
|
|
8
|
+
|
|
9
|
+
#### ✨ Features
|
|
10
|
+
|
|
11
|
+
- **misc**: Add new provider ZenMux & Gemini 3 Pro Image Preview.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's improved
|
|
19
|
+
|
|
20
|
+
- **misc**: Add new provider ZenMux & Gemini 3 Pro Image Preview, closes [#10310](https://github.com/lobehub/lobe-chat/issues/10310) ([f2291e4](https://github.com/lobehub/lobe-chat/commit/f2291e4))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
## [Version 2.0.0-next.101](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.100...v2.0.0-next.101)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2025-11-22**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/lobehub",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.102",
|
|
4
4
|
"description": "LobeHub - an open-source,comprehensive AI Agent framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"framework",
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"./wenxin": "./src/aiModels/wenxin.ts",
|
|
70
70
|
"./xai": "./src/aiModels/xai.ts",
|
|
71
71
|
"./xinference": "./src/aiModels/xinference.ts",
|
|
72
|
+
"./zenmux": "./src/aiModels/zenmux.ts",
|
|
72
73
|
"./zeroone": "./src/aiModels/zeroone.ts",
|
|
73
74
|
"./zhipu": "./src/aiModels/zhipu.ts",
|
|
74
75
|
"./types": "./src/types/index.ts"
|
|
@@ -1046,6 +1046,33 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
|
1046
1046
|
},
|
|
1047
1047
|
type: 'chat',
|
|
1048
1048
|
},
|
|
1049
|
+
{
|
|
1050
|
+
abilities: {
|
|
1051
|
+
imageOutput: true,
|
|
1052
|
+
reasoning: true,
|
|
1053
|
+
search: true,
|
|
1054
|
+
vision: true,
|
|
1055
|
+
},
|
|
1056
|
+
contextWindowTokens: 131_072 + 32_768,
|
|
1057
|
+
description:
|
|
1058
|
+
'Gemini 3 Pro Image(Nano Banana Pro)是 Google 的图像生成模型,同时支持多模态对话。',
|
|
1059
|
+
displayName: 'Nano Banana Pro',
|
|
1060
|
+
id: 'gemini-3-pro-image-preview',
|
|
1061
|
+
maxOutput: 32_768,
|
|
1062
|
+
pricing: {
|
|
1063
|
+
approximatePricePerImage: 0.134,
|
|
1064
|
+
units: [
|
|
1065
|
+
{ name: 'imageOutput', rate: 120, strategy: 'fixed', unit: 'millionTokens' },
|
|
1066
|
+
{ name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
|
|
1067
|
+
{ name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
|
|
1068
|
+
],
|
|
1069
|
+
},
|
|
1070
|
+
settings: {
|
|
1071
|
+
searchImpl: 'params',
|
|
1072
|
+
searchProvider: 'google',
|
|
1073
|
+
},
|
|
1074
|
+
type: 'chat',
|
|
1075
|
+
},
|
|
1049
1076
|
{
|
|
1050
1077
|
abilities: {
|
|
1051
1078
|
functionCall: true,
|
|
@@ -173,6 +173,33 @@ const googleChatModels: AIChatModelCard[] = [
|
|
|
173
173
|
},
|
|
174
174
|
type: 'chat',
|
|
175
175
|
},
|
|
176
|
+
{
|
|
177
|
+
abilities: {
|
|
178
|
+
imageOutput: true,
|
|
179
|
+
reasoning: true,
|
|
180
|
+
search: true,
|
|
181
|
+
vision: true,
|
|
182
|
+
},
|
|
183
|
+
contextWindowTokens: 131_072 + 32_768,
|
|
184
|
+
description:
|
|
185
|
+
'Gemini 3 Pro Image(Nano Banana Pro)是 Google 的图像生成模型,同时支持多模态对话。',
|
|
186
|
+
displayName: 'Nano Banana Pro',
|
|
187
|
+
id: 'gemini-3-pro-image-preview',
|
|
188
|
+
maxOutput: 32_768,
|
|
189
|
+
pricing: {
|
|
190
|
+
approximatePricePerImage: 0.134,
|
|
191
|
+
units: [
|
|
192
|
+
{ name: 'imageOutput', rate: 120, strategy: 'fixed', unit: 'millionTokens' },
|
|
193
|
+
{ name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
|
|
194
|
+
{ name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
|
|
195
|
+
],
|
|
196
|
+
},
|
|
197
|
+
settings: {
|
|
198
|
+
searchImpl: 'params',
|
|
199
|
+
searchProvider: 'google',
|
|
200
|
+
},
|
|
201
|
+
type: 'chat',
|
|
202
|
+
},
|
|
176
203
|
{
|
|
177
204
|
abilities: {
|
|
178
205
|
functionCall: true,
|
|
@@ -820,16 +847,16 @@ export const imagenGenParameters: ModelParamsSchema = {
|
|
|
820
847
|
};
|
|
821
848
|
|
|
822
849
|
const NANO_BANANA_ASPECT_RATIOS = [
|
|
823
|
-
'1:1', // 1024x1024
|
|
824
|
-
'2:3', //
|
|
825
|
-
'3:2', //
|
|
826
|
-
'3:4', //
|
|
827
|
-
'4:3', //
|
|
828
|
-
'4:5', //
|
|
829
|
-
'5:4', //
|
|
830
|
-
'9:16', //
|
|
831
|
-
'16:9', //
|
|
832
|
-
'21:9', //
|
|
850
|
+
'1:1', // 1024x1024 / 2048x2048 / 4096x4096
|
|
851
|
+
'2:3', // 848x1264 / 1696x2528 / 3392x5056
|
|
852
|
+
'3:2', // 1264x848 / 2528x1696 / 5056x3392
|
|
853
|
+
'3:4', // 896x1200 / 1792x2400 / 3584x4800
|
|
854
|
+
'4:3', // 1200x896 / 2400x1792 / 4800x3584
|
|
855
|
+
'4:5', // 928x1152 / 1856x2304 / 3712x4608
|
|
856
|
+
'5:4', // 1152x928 / 2304x1856 / 4608x3712
|
|
857
|
+
'9:16', // 768x1376 / 1536x2752 / 3072x5504
|
|
858
|
+
'16:9', // 1376x768 / 2752x1536 / 5504x3072
|
|
859
|
+
'21:9', // 1584x672 / 3168x1344 / 6336x2688
|
|
833
860
|
];
|
|
834
861
|
|
|
835
862
|
export const nanoBananaParameters: ModelParamsSchema = {
|
|
@@ -843,8 +870,40 @@ export const nanoBananaParameters: ModelParamsSchema = {
|
|
|
843
870
|
prompt: { default: '' },
|
|
844
871
|
};
|
|
845
872
|
|
|
873
|
+
export const nanoBananaProParameters: ModelParamsSchema = {
|
|
874
|
+
aspectRatio: {
|
|
875
|
+
default: '1:1',
|
|
876
|
+
enum: NANO_BANANA_ASPECT_RATIOS,
|
|
877
|
+
},
|
|
878
|
+
imageUrls: {
|
|
879
|
+
default: [],
|
|
880
|
+
},
|
|
881
|
+
prompt: { default: '' },
|
|
882
|
+
resolution: {
|
|
883
|
+
default: '1K',
|
|
884
|
+
enum: ['1K', '2K', '4K'],
|
|
885
|
+
},
|
|
886
|
+
};
|
|
887
|
+
|
|
846
888
|
/* eslint-disable sort-keys-fix/sort-keys-fix */
|
|
847
889
|
const googleImageModels: AIImageModelCard[] = [
|
|
890
|
+
{
|
|
891
|
+
displayName: 'Nano Banana Pro',
|
|
892
|
+
id: 'gemini-3-pro-image-preview:image',
|
|
893
|
+
type: 'image',
|
|
894
|
+
description:
|
|
895
|
+
'Gemini 3 Pro Image(Nano Banana Pro)是 Google 的图像生成模型,同时支持多模态对话。',
|
|
896
|
+
releasedAt: '2025-11-18',
|
|
897
|
+
parameters: nanoBananaProParameters,
|
|
898
|
+
pricing: {
|
|
899
|
+
approximatePricePerImage: 0.134,
|
|
900
|
+
units: [
|
|
901
|
+
{ name: 'imageOutput', rate: 120, strategy: 'fixed', unit: 'millionTokens' },
|
|
902
|
+
{ name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
|
|
903
|
+
{ name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
|
|
904
|
+
],
|
|
905
|
+
},
|
|
906
|
+
},
|
|
848
907
|
{
|
|
849
908
|
displayName: 'Nano Banana',
|
|
850
909
|
id: 'gemini-2.5-flash-image:image',
|
|
@@ -63,6 +63,7 @@ import { default as volcengine } from './volcengine';
|
|
|
63
63
|
import { default as wenxin } from './wenxin';
|
|
64
64
|
import { default as xai } from './xai';
|
|
65
65
|
import { default as xinference } from './xinference';
|
|
66
|
+
import { default as zenmux } from './zenmux';
|
|
66
67
|
import { default as zeroone } from './zeroone';
|
|
67
68
|
import { default as zhipu } from './zhipu';
|
|
68
69
|
|
|
@@ -150,6 +151,7 @@ export const LOBE_DEFAULT_MODEL_LIST = buildDefaultModelList({
|
|
|
150
151
|
wenxin,
|
|
151
152
|
xai,
|
|
152
153
|
xinference,
|
|
154
|
+
zenmux,
|
|
153
155
|
zeroone,
|
|
154
156
|
zhipu,
|
|
155
157
|
});
|
|
@@ -219,5 +221,6 @@ export { default as volcengine } from './volcengine';
|
|
|
219
221
|
export { default as wenxin } from './wenxin';
|
|
220
222
|
export { default as xai } from './xai';
|
|
221
223
|
export { default as xinference } from './xinference';
|
|
224
|
+
export { default as zenmux } from './zenmux';
|
|
222
225
|
export { default as zeroone } from './zeroone';
|
|
223
226
|
export { default as zhipu } from './zhipu';
|
|
@@ -53,8 +53,7 @@ const infiniaiChatModels: AIChatModelCard[] = [
|
|
|
53
53
|
reasoning: true,
|
|
54
54
|
},
|
|
55
55
|
contextWindowTokens: 131_072,
|
|
56
|
-
description:
|
|
57
|
-
'DeepSeek-V3.2-Exp 是深度求索推出的实验性大语言模型,具有更强的推理和生成能力。',
|
|
56
|
+
description: 'DeepSeek-V3.2-Exp 是深度求索推出的实验性大语言模型,具有更强的推理和生成能力。',
|
|
58
57
|
displayName: 'DeepSeek V3.2 Exp',
|
|
59
58
|
enabled: true,
|
|
60
59
|
id: 'deepseek-v3.2-exp',
|
|
@@ -263,24 +262,6 @@ const infiniaiChatModels: AIChatModelCard[] = [
|
|
|
263
262
|
},
|
|
264
263
|
type: 'chat',
|
|
265
264
|
},
|
|
266
|
-
{
|
|
267
|
-
abilities: {
|
|
268
|
-
vision: true,
|
|
269
|
-
},
|
|
270
|
-
contextWindowTokens: 131_072,
|
|
271
|
-
description: 'Step3 是阶跃星辰推出的多模态模型,具备强大的视觉理解能力。',
|
|
272
|
-
displayName: 'Step3',
|
|
273
|
-
id: 'step3',
|
|
274
|
-
maxOutput: 4096,
|
|
275
|
-
pricing: {
|
|
276
|
-
currency: 'CNY',
|
|
277
|
-
units: [
|
|
278
|
-
{ name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
|
|
279
|
-
{ name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
|
|
280
|
-
],
|
|
281
|
-
},
|
|
282
|
-
type: 'chat',
|
|
283
|
-
},
|
|
284
265
|
{
|
|
285
266
|
abilities: {
|
|
286
267
|
functionCall: true,
|
|
@@ -704,7 +685,8 @@ const infiniaiChatModels: AIChatModelCard[] = [
|
|
|
704
685
|
},
|
|
705
686
|
{
|
|
706
687
|
contextWindowTokens: 131_072,
|
|
707
|
-
description:
|
|
688
|
+
description:
|
|
689
|
+
'该模型需要申请体验。GPT-OSS-120B 是 OpenAI 推出的开源大规模语言模型,具备强大的文本生成能力。',
|
|
708
690
|
displayName: 'GPT-OSS-120B',
|
|
709
691
|
id: 'gpt-oss-120b',
|
|
710
692
|
maxOutput: 32_768,
|
|
@@ -719,7 +701,8 @@ const infiniaiChatModels: AIChatModelCard[] = [
|
|
|
719
701
|
},
|
|
720
702
|
{
|
|
721
703
|
contextWindowTokens: 131_072,
|
|
722
|
-
description:
|
|
704
|
+
description:
|
|
705
|
+
'该模型需要申请体验。GPT-OSS-20B 是 OpenAI 推出的开源中型语言模型,具备高效的文本生成能力。',
|
|
723
706
|
displayName: 'GPT-OSS-20B',
|
|
724
707
|
id: 'gpt-oss-20b',
|
|
725
708
|
maxOutput: 32_768,
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { AIChatModelCard } from '../types/aiModel';
|
|
2
2
|
|
|
3
3
|
const ollamaCloudModels: AIChatModelCard[] = [
|
|
4
|
+
{
|
|
5
|
+
abilities: {
|
|
6
|
+
functionCall: true,
|
|
7
|
+
reasoning: true,
|
|
8
|
+
},
|
|
9
|
+
contextWindowTokens: 163_840,
|
|
10
|
+
description:
|
|
11
|
+
'Cogito v2.1 671B 是一款可免费商用的美国开源大语言模型,它以媲美顶尖模型的性能、更高的 token 推理效率、128k 长上下文和强大的综合能力为核心优势。',
|
|
12
|
+
displayName: 'Cogito v2.1 671B',
|
|
13
|
+
id: 'cogito-2.1:671b',
|
|
14
|
+
type: 'chat',
|
|
15
|
+
},
|
|
4
16
|
{
|
|
5
17
|
abilities: {
|
|
6
18
|
functionCall: true,
|
|
@@ -184,67 +184,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [
|
|
|
184
184
|
releasedAt: '2025-09-27',
|
|
185
185
|
type: 'chat',
|
|
186
186
|
},
|
|
187
|
-
{
|
|
188
|
-
abilities: {
|
|
189
|
-
functionCall: true,
|
|
190
|
-
},
|
|
191
|
-
contextWindowTokens: 131_072,
|
|
192
|
-
description:
|
|
193
|
-
'Ling-1T 是 "灵 2.0" 系列的首款旗舰级 non-thinking 模型,拥有 1 万亿总参数和每 token 约 500 亿个活动参数。基于灵 2.0 架构构建,Ling-1T 旨在突破高效推理和可扩展认知的极限。Ling-1T-base 在超过 20 万亿个高质量、推理密集的 token 上进行训练,针对大型知识密集型任务与长文档理解进行了优化,具备出色的工具调用和上下文记忆能力。',
|
|
194
|
-
displayName: 'Ling 1T',
|
|
195
|
-
id: 'inclusionAI/Ling-1T',
|
|
196
|
-
pricing: {
|
|
197
|
-
currency: 'CNY',
|
|
198
|
-
units: [
|
|
199
|
-
{ name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
|
|
200
|
-
{ name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },
|
|
201
|
-
],
|
|
202
|
-
},
|
|
203
|
-
releasedAt: '2025-10-09',
|
|
204
|
-
type: 'chat',
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
abilities: {
|
|
208
|
-
functionCall: true,
|
|
209
|
-
reasoning: true,
|
|
210
|
-
},
|
|
211
|
-
contextWindowTokens: 131_072,
|
|
212
|
-
description:
|
|
213
|
-
'Ring-1T 是一款由百灵(Bailing)团队发布的万亿参数规模的开源思想模型。它基于 Ling 2.0 架构和 Ling-1T-base 基础模型训练,总参数量达 1 万亿,激活参数量为 500 亿,并支持高达 128K 的上下文窗口。该模型通过大规模可验证奖励强化学习进行优化。',
|
|
214
|
-
displayName: 'Ring-1T',
|
|
215
|
-
id: 'inclusionAI/Ring-1T',
|
|
216
|
-
pricing: {
|
|
217
|
-
currency: 'CNY',
|
|
218
|
-
units: [
|
|
219
|
-
{ name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
|
|
220
|
-
{ name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },
|
|
221
|
-
],
|
|
222
|
-
},
|
|
223
|
-
releasedAt: '2025-10-14',
|
|
224
|
-
settings: {
|
|
225
|
-
extendParams: ['reasoningBudgetToken'],
|
|
226
|
-
},
|
|
227
|
-
type: 'chat',
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
abilities: {
|
|
231
|
-
functionCall: true,
|
|
232
|
-
},
|
|
233
|
-
contextWindowTokens: 131_072,
|
|
234
|
-
description:
|
|
235
|
-
'Ling-1T 是"灵 2.0"系列的首款旗舰级 non-thinking 模型,拥有 1 万亿总参数和每 token 约 500 亿个活动参数。基于灵 2.0 架构构建,Ling-1T 旨在突破高效推理和可扩展认知的极限。Ling-1T-base 在超过 20 万亿个高质量、推理密集的 token 上进行训练。',
|
|
236
|
-
displayName: 'Ling-1T',
|
|
237
|
-
id: 'inclusionAI/Ling-1T',
|
|
238
|
-
pricing: {
|
|
239
|
-
currency: 'CNY',
|
|
240
|
-
units: [
|
|
241
|
-
{ name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
|
|
242
|
-
{ name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },
|
|
243
|
-
],
|
|
244
|
-
},
|
|
245
|
-
releasedAt: '2025-10-09',
|
|
246
|
-
type: 'chat',
|
|
247
|
-
},
|
|
248
187
|
{
|
|
249
188
|
abilities: {
|
|
250
189
|
functionCall: true,
|
|
@@ -3,6 +3,93 @@ import { imagenGenParameters, nanoBananaParameters } from './google';
|
|
|
3
3
|
|
|
4
4
|
// ref: https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models
|
|
5
5
|
const vertexaiChatModels: AIChatModelCard[] = [
|
|
6
|
+
{
|
|
7
|
+
abilities: {
|
|
8
|
+
imageOutput: true,
|
|
9
|
+
reasoning: true,
|
|
10
|
+
search: true,
|
|
11
|
+
vision: true,
|
|
12
|
+
},
|
|
13
|
+
contextWindowTokens: 131_072 + 32_768,
|
|
14
|
+
description:
|
|
15
|
+
'Gemini 3 Pro Image(Nano Banana Pro)是 Google 的图像生成模型,同时支持多模态对话。',
|
|
16
|
+
displayName: 'Nano Banana Pro',
|
|
17
|
+
id: 'gemini-3-pro-image-preview',
|
|
18
|
+
maxOutput: 32_768,
|
|
19
|
+
pricing: {
|
|
20
|
+
approximatePricePerImage: 0.134,
|
|
21
|
+
units: [
|
|
22
|
+
{ name: 'imageOutput', rate: 120, strategy: 'fixed', unit: 'millionTokens' },
|
|
23
|
+
{ name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
|
|
24
|
+
{ name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
|
|
25
|
+
],
|
|
26
|
+
},
|
|
27
|
+
settings: {
|
|
28
|
+
searchImpl: 'params',
|
|
29
|
+
searchProvider: 'google',
|
|
30
|
+
},
|
|
31
|
+
type: 'chat',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
abilities: {
|
|
35
|
+
functionCall: true,
|
|
36
|
+
reasoning: true,
|
|
37
|
+
search: true,
|
|
38
|
+
video: true,
|
|
39
|
+
vision: true,
|
|
40
|
+
},
|
|
41
|
+
contextWindowTokens: 1_048_576 + 65_536,
|
|
42
|
+
description:
|
|
43
|
+
'Gemini 3 Pro 是 全球最佳的多模态理解模型,也是 Google 迄今为止最强大的智能体和氛围编程模型,提供更丰富的视觉效果和更深层次的交互性,所有这些都建立在最先进的推理能力基础之上。',
|
|
44
|
+
displayName: 'Gemini 3 Pro Preview',
|
|
45
|
+
enabled: true,
|
|
46
|
+
id: 'gemini-3-pro-preview',
|
|
47
|
+
maxOutput: 65_536,
|
|
48
|
+
pricing: {
|
|
49
|
+
units: [
|
|
50
|
+
{
|
|
51
|
+
name: 'textInput_cacheRead',
|
|
52
|
+
strategy: 'tiered',
|
|
53
|
+
tiers: [
|
|
54
|
+
{ rate: 0.2, upTo: 200_000 },
|
|
55
|
+
{ rate: 0.4, upTo: 'infinity' },
|
|
56
|
+
],
|
|
57
|
+
unit: 'millionTokens',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'textInput',
|
|
61
|
+
strategy: 'tiered',
|
|
62
|
+
tiers: [
|
|
63
|
+
{ rate: 2, upTo: 200_000 },
|
|
64
|
+
{ rate: 4, upTo: 'infinity' },
|
|
65
|
+
],
|
|
66
|
+
unit: 'millionTokens',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'textOutput',
|
|
70
|
+
strategy: 'tiered',
|
|
71
|
+
tiers: [
|
|
72
|
+
{ rate: 12, upTo: 200_000 },
|
|
73
|
+
{ rate: 18, upTo: 'infinity' },
|
|
74
|
+
],
|
|
75
|
+
unit: 'millionTokens',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
lookup: { prices: { '1h': 4.5 }, pricingParams: ['ttl'] },
|
|
79
|
+
name: 'textInput_cacheWrite',
|
|
80
|
+
strategy: 'lookup',
|
|
81
|
+
unit: 'millionTokens',
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
},
|
|
85
|
+
releasedAt: '2025-11-18',
|
|
86
|
+
settings: {
|
|
87
|
+
extendParams: ['thinkingLevel', 'urlContext'],
|
|
88
|
+
searchImpl: 'params',
|
|
89
|
+
searchProvider: 'google',
|
|
90
|
+
},
|
|
91
|
+
type: 'chat',
|
|
92
|
+
},
|
|
6
93
|
{
|
|
7
94
|
abilities: {
|
|
8
95
|
functionCall: true,
|
|
@@ -132,7 +219,7 @@ const vertexaiChatModels: AIChatModelCard[] = [
|
|
|
132
219
|
'Nano Banana 是 Google 最新、最快、最高效的原生多模态模型,它允许您通过对话生成和编辑图像。',
|
|
133
220
|
displayName: 'Nano Banana',
|
|
134
221
|
enabled: true,
|
|
135
|
-
id: 'gemini-2.5-flash-image
|
|
222
|
+
id: 'gemini-2.5-flash-image',
|
|
136
223
|
maxOutput: 8192,
|
|
137
224
|
pricing: {
|
|
138
225
|
approximatePricePerImage: 0.039,
|