Skip to content

Commit 582f6d1

Browse files
authored
💄 style: Optimized extendParams UI (#9457)
* ✨ feat: 调整滑块参数和步长逻辑以优化用户体验 * ✨ feat: 添加 resolveModelThinkingBudget 函数以优化 Gemini 模型思维预算逻辑 * ✨ feat: 添加 DeepSeek V3.1 Terminus 模型 * ✨ feat: 更新 DeepSeek 模型至 V3.2,调整参数和描述以反映最新功能 * ✨ feat: 更新 DeepSeek 和 Hunyuan 模型,调整描述和发布时间以反映最新信息 * ✨ feat: 添加 DeepSeek V3.2 模型及其定价信息,更新模型解析配置以支持新版本 * Update google.ts * feat: 添加 GLM-4.6 聊天模型,增强推理能力和上下文处理
1 parent 8b12fdf commit 582f6d1

File tree

13 files changed

+487
-72
lines changed

13 files changed

+487
-72
lines changed

packages/model-bank/src/aiModels/aihubmix.ts

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ const aihubmixModels: AIChatModelCard[] = [
405405
},
406406
contextWindowTokens: 256_000,
407407
description:
408-
'我们最新最强大的旗舰模型,在自然语言处理、数学计算和推理方面表现卓越 —— 是一款完美的全能型选手。',
408+
'Grok最新旗舰模型,在自然语言、数学和推理方面提供了无与伦比的性能——堪称完美的‘多面手’。 当前指向模型版本为grok-4-0709;注意该模型由于资源有限暂时比官方贵 10% 预计后续会降至官方原价。',
409409
displayName: 'Grok 4 0709',
410410
enabled: true,
411411
id: 'grok-4',
@@ -656,6 +656,46 @@ const aihubmixModels: AIChatModelCard[] = [
656656
},
657657
type: 'chat',
658658
},
659+
{
660+
abilities: {
661+
functionCall: true,
662+
},
663+
contextWindowTokens: 131_072,
664+
description:
665+
'DeepSeek V3.2 是 DeepSeek 最新发布的通用大模型,支持混合推理架构,具备更强的 Agent 能力。',
666+
displayName: 'DeepSeek V3.2 Exp',
667+
id: 'DeepSeek-V3.2-Exp',
668+
maxOutput: 8192,
669+
pricing: {
670+
units: [
671+
{ name: 'textInput', rate: 0.28, strategy: 'fixed', unit: 'millionTokens' },
672+
{ name: 'textOutput', rate: 0.42, strategy: 'fixed', unit: 'millionTokens' },
673+
],
674+
},
675+
releasedAt: '2025-09-29',
676+
type: 'chat',
677+
},
678+
{
679+
abilities: {
680+
functionCall: true,
681+
reasoning: true,
682+
},
683+
contextWindowTokens: 131_072,
684+
description:
685+
'DeepSeek V3.2 思考模式。在输出最终回答之前,模型会先输出一段思维链内容,以提升最终答案的准确性。',
686+
displayName: 'DeepSeek V3.2 Exp Thinking',
687+
enabled: true,
688+
id: 'DeepSeek-V3.2-Exp-Think',
689+
maxOutput: 65_536,
690+
pricing: {
691+
units: [
692+
{ name: 'textInput', rate: 0.28, strategy: 'fixed', unit: 'millionTokens' },
693+
{ name: 'textOutput', rate: 0.42, strategy: 'fixed', unit: 'millionTokens' },
694+
],
695+
},
696+
releasedAt: '2025-09-29',
697+
type: 'chat',
698+
},
659699
{
660700
abilities: {
661701
functionCall: true,

packages/model-bank/src/aiModels/deepseek.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ const deepseekChatModels: AIChatModelCard[] = [
88
},
99
contextWindowTokens: 131_072,
1010
description:
11-
'DeepSeek V3.1 是 DeepSeek 最新发布的通用大模型,支持混合推理架构,具备更强的 Agent 能力。',
12-
displayName: 'DeepSeek V3.1',
11+
'DeepSeek V3.2 是 DeepSeek 最新发布的通用大模型,支持混合推理架构,具备更强的 Agent 能力。',
12+
displayName: 'DeepSeek V3.2 Exp',
1313
enabled: true,
1414
id: 'deepseek-chat',
1515
maxOutput: 8192,
1616
pricing: {
1717
currency: 'CNY',
1818
units: [
19-
{ name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
20-
{ name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
21-
{ name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
19+
{ name: 'textInput_cacheRead', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },
20+
{ name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
21+
{ name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
2222
],
2323
},
24-
releasedAt: '2025-08-21',
24+
releasedAt: '2025-09-29',
2525
type: 'chat',
2626
},
2727
{
@@ -31,20 +31,20 @@ const deepseekChatModels: AIChatModelCard[] = [
3131
},
3232
contextWindowTokens: 131_072,
3333
description:
34-
'DeepSeek V3.1 思考模式。在输出最终回答之前,模型会先输出一段思维链内容,以提升最终答案的准确性。',
35-
displayName: 'DeepSeek V3.1 Thinking',
34+
'DeepSeek V3.2 思考模式。在输出最终回答之前,模型会先输出一段思维链内容,以提升最终答案的准确性。',
35+
displayName: 'DeepSeek V3.2 Exp Thinking',
3636
enabled: true,
3737
id: 'deepseek-reasoner',
3838
maxOutput: 65_536,
3939
pricing: {
4040
currency: 'CNY',
4141
units: [
42-
{ name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
43-
{ name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
44-
{ name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
42+
{ name: 'textInput_cacheRead', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },
43+
{ name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
44+
{ name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
4545
],
4646
},
47-
releasedAt: '2025-08-21',
47+
releasedAt: '2025-09-29',
4848
type: 'chat',
4949
},
5050
];

packages/model-bank/src/aiModels/google.ts

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,111 @@ import { AIChatModelCard, AIImageModelCard } from '../types';
77
*/
88

99
const googleChatModels: AIChatModelCard[] = [
10+
{
11+
abilities: {
12+
functionCall: true,
13+
reasoning: true,
14+
search: true,
15+
video: true,
16+
vision: true,
17+
},
18+
contextWindowTokens: 1_048_576 + 65_536,
19+
description: 'Latest release of Gemini Pro',
20+
displayName: 'Gemini Pro Latest',
21+
id: 'gemini-pro-latest',
22+
maxOutput: 65_536,
23+
pricing: {
24+
units: [
25+
{
26+
name: 'textInput_cacheRead',
27+
strategy: 'tiered',
28+
tiers: [
29+
{ rate: 0.31, upTo: 200_000 },
30+
{ rate: 0.625, upTo: 'infinity' },
31+
],
32+
unit: 'millionTokens',
33+
},
34+
{
35+
name: 'textInput',
36+
strategy: 'tiered',
37+
tiers: [
38+
{ rate: 1.25, upTo: 200_000 },
39+
{ rate: 2.5, upTo: 'infinity' },
40+
],
41+
unit: 'millionTokens',
42+
},
43+
{
44+
name: 'textOutput',
45+
strategy: 'tiered',
46+
tiers: [
47+
{ rate: 10, upTo: 200_000 },
48+
{ rate: 15, upTo: 'infinity' },
49+
],
50+
unit: 'millionTokens',
51+
},
52+
],
53+
},
54+
settings: {
55+
extendParams: ['thinkingBudget', 'urlContext'],
56+
searchImpl: 'params',
57+
searchProvider: 'google',
58+
},
59+
type: 'chat',
60+
},
61+
{
62+
abilities: {
63+
functionCall: true,
64+
reasoning: true,
65+
search: true,
66+
video: true,
67+
vision: true,
68+
},
69+
contextWindowTokens: 1_048_576 + 65_536,
70+
description: 'Latest release of Gemini Flash',
71+
displayName: 'Gemini Flash Latest',
72+
id: 'gemini-flash-latest',
73+
maxOutput: 65_536,
74+
pricing: {
75+
units: [
76+
{ name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },
77+
{ name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
78+
{ name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
79+
],
80+
},
81+
settings: {
82+
extendParams: ['thinkingBudget', 'urlContext'],
83+
searchImpl: 'params',
84+
searchProvider: 'google',
85+
},
86+
type: 'chat',
87+
},
88+
{
89+
abilities: {
90+
functionCall: true,
91+
reasoning: true,
92+
search: true,
93+
video: true,
94+
vision: true,
95+
},
96+
contextWindowTokens: 1_048_576 + 65_536,
97+
description: 'Latest release of Gemini Flash-Lite',
98+
displayName: 'Gemini Flash-Lite Latest',
99+
id: 'gemini-flash-lite-latest',
100+
maxOutput: 65_536,
101+
pricing: {
102+
units: [
103+
{ name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },
104+
{ name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
105+
{ name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
106+
],
107+
},
108+
settings: {
109+
extendParams: ['thinkingBudget', 'urlContext'],
110+
searchImpl: 'params',
111+
searchProvider: 'google',
112+
},
113+
type: 'chat',
114+
},
10115
{
11116
abilities: {
12117
functionCall: true,
@@ -195,6 +300,34 @@ const googleChatModels: AIChatModelCard[] = [
195300
},
196301
type: 'chat',
197302
},
303+
{
304+
abilities: {
305+
functionCall: true,
306+
reasoning: true,
307+
search: true,
308+
video: true,
309+
vision: true,
310+
},
311+
contextWindowTokens: 1_048_576 + 65_536,
312+
description: 'Preview release (Septempber 25th, 2025) of Gemini 2.5 Flash',
313+
displayName: 'Gemini 2.5 Flash Preview Sep 2025',
314+
id: 'gemini-2.5-flash-preview-09-2025',
315+
maxOutput: 65_536,
316+
pricing: {
317+
units: [
318+
{ name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },
319+
{ name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
320+
{ name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
321+
],
322+
},
323+
releasedAt: '2025-09-25',
324+
settings: {
325+
extendParams: ['thinkingBudget', 'urlContext'],
326+
searchImpl: 'params',
327+
searchProvider: 'google',
328+
},
329+
type: 'chat',
330+
},
198331
{
199332
abilities: {
200333
functionCall: true,
@@ -274,6 +407,34 @@ const googleChatModels: AIChatModelCard[] = [
274407
},
275408
type: 'chat',
276409
},
410+
{
411+
abilities: {
412+
functionCall: true,
413+
reasoning: true,
414+
search: true,
415+
video: true,
416+
vision: true,
417+
},
418+
contextWindowTokens: 1_048_576 + 65_536,
419+
description: 'Preview release (September 25th, 2025) of Gemini 2.5 Flash-Lite',
420+
displayName: 'Gemini 2.5 Flash-Lite Preview Sep 2025',
421+
id: 'gemini-2.5-flash-lite-preview-09-2025',
422+
maxOutput: 65_536,
423+
pricing: {
424+
units: [
425+
{ name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },
426+
{ name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
427+
{ name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
428+
],
429+
},
430+
releasedAt: '2025-09-25',
431+
settings: {
432+
extendParams: ['thinkingBudget', 'urlContext'],
433+
searchImpl: 'params',
434+
searchProvider: 'google',
435+
},
436+
type: 'chat',
437+
},
277438
{
278439
abilities: {
279440
functionCall: true,

packages/model-bank/src/aiModels/hunyuan.ts

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,30 @@ const hunyuanChatModels: AIChatModelCard[] = [
348348
},
349349
type: 'chat',
350350
},
351+
{
352+
abilities: {
353+
functionCall: true,
354+
search: true,
355+
},
356+
contextWindowTokens: 44_000,
357+
description:
358+
'预训练底座数据质量升级。优化 posttrain 阶段训练策略,持续提升 Agent、英语小语种、指令遵循、代码和理科能力。',
359+
displayName: 'Hunyuan TurboS 20250926',
360+
id: 'hunyuan-turbos-20250926',
361+
maxOutput: 16_000,
362+
pricing: {
363+
currency: 'CNY',
364+
units: [
365+
{ name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },
366+
{ name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
367+
],
368+
},
369+
releasedAt: '2025-09-26',
370+
settings: {
371+
searchImpl: 'params',
372+
},
373+
type: 'chat',
374+
},
351375
{
352376
abilities: {
353377
functionCall: true,
@@ -485,39 +509,39 @@ const hunyuanChatModels: AIChatModelCard[] = [
485509
},
486510
contextWindowTokens: 40_000,
487511
description:
488-
'混元最新版t1-vision多模态理解深度思考模型,支持多模态原生长思维链,相比上一代默认版本模型全面提升。',
489-
displayName: 'Hunyuan T1 Vision 20250619',
490-
id: 'hunyuan-t1-vision-20250619',
491-
maxOutput: 24_000,
512+
'混元多模态理解深度思考模型,支持多模态原生长思维链,擅长处理各种图片推理场景,在理科难题上相比快思考模型全面提升。',
513+
displayName: 'Hunyuan T1 Vision 20250916',
514+
id: 'hunyuan-t1-vision-20250916',
515+
maxOutput: 16_000,
492516
pricing: {
493517
currency: 'CNY',
494518
units: [
495-
{ name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
496-
{ name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
519+
{ name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
520+
{ name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },
497521
],
498522
},
499-
releasedAt: '2025-06-19',
523+
releasedAt: '2025-09-16',
500524
type: 'chat',
501525
},
502526
{
503527
abilities: {
504528
reasoning: true,
505529
vision: true,
506530
},
507-
contextWindowTokens: 32_000,
531+
contextWindowTokens: 40_000,
508532
description:
509-
'混元多模态理解深度思考模型,支持多模态原生长思维链,擅长处理各种图片推理场景,在理科难题上相比快思考模型全面提升。',
510-
displayName: 'Hunyuan T1 Vision',
511-
id: 'hunyuan-t1-vision',
512-
maxOutput: 24_000,
533+
'混元最新版t1-vision多模态理解深度思考模型,支持多模态原生长思维链,相比上一代默认版本模型全面提升。',
534+
displayName: 'Hunyuan T1 Vision 20250619',
535+
id: 'hunyuan-t1-vision-20250619',
536+
maxOutput: 16_000,
513537
pricing: {
514538
currency: 'CNY',
515539
units: [
516-
{ name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
517-
{ name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
540+
{ name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
541+
{ name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },
518542
],
519543
},
520-
releasedAt: '2025-05-16',
544+
releasedAt: '2025-06-19',
521545
type: 'chat',
522546
},
523547
{

0 commit comments

Comments
 (0)