Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style: Optimized `extendParams` UI (#9457)

sxjeru582f6d1fbfc2
diff --git a/packages/model-bank/src/aiModels/aihubmix.ts b/packages/model-bank/src/aiModels/aihubmix.ts
index 2106817c378..dc7d5d5b464 100644
--- a/packages/model-bank/src/aiModels/aihubmix.ts
+++ b/packages/model-bank/src/aiModels/aihubmix.ts
@@ -405,7 +405,7 @@ const aihubmixModels: AIChatModelCard[] = [
},
contextWindowTokens: 256_000,
description:
- '我们最新最强大的旗舰模型,在自然语言处理、数学计算和推理方面表现卓越 —— 是一款完美的全能型选手。',
+ 'Grok最新旗舰模型,在自然语言、数学和推理方面提供了无与伦比的性能——堪称完美的‘多面手’。 当前指向模型版本为grok-4-0709;注意该模型由于资源有限暂时比官方贵 10% 预计后续会降至官方原价。',
displayName: 'Grok 4 0709',
enabled: true,
id: 'grok-4',
@@ -656,6 +656,46 @@ const aihubmixModels: AIChatModelCard[] = [
},
type: 'chat',
},
+ {
+ abilities: {
+ functionCall: true,
+ },
+ contextWindowTokens: 131_072,
+ description:
+ 'DeepSeek V3.2 是 DeepSeek 最新发布的通用大模型,支持混合推理架构,具备更强的 Agent 能力。',
+ displayName: 'DeepSeek V3.2 Exp',
+ id: 'DeepSeek-V3.2-Exp',
+ maxOutput: 8192,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 0.28, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 0.42, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-09-29',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ },
+ contextWindowTokens: 131_072,
+ description:
+ 'DeepSeek V3.2 思考模式。在输出最终回答之前,模型会先输出一段思维链内容,以提升最终答案的准确性。',
+ displayName: 'DeepSeek V3.2 Exp Thinking',
+ enabled: true,
+ id: 'DeepSeek-V3.2-Exp-Think',
+ maxOutput: 65_536,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 0.28, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 0.42, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-09-29',
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
diff --git a/packages/model-bank/src/aiModels/deepseek.ts b/packages/model-bank/src/aiModels/deepseek.ts
index a6a1ac273be..aa3af269826 100644
--- a/packages/model-bank/src/aiModels/deepseek.ts
+++ b/packages/model-bank/src/aiModels/deepseek.ts
@@ -8,20 +8,20 @@ const deepseekChatModels: AIChatModelCard[] = [
},
contextWindowTokens: 131_072,
description:
- 'DeepSeek V3.1 是 DeepSeek 最新发布的通用大模型,支持混合推理架构,具备更强的 Agent 能力。',
- displayName: 'DeepSeek V3.1',
+ 'DeepSeek V3.2 是 DeepSeek 最新发布的通用大模型,支持混合推理架构,具备更强的 Agent 能力。',
+ displayName: 'DeepSeek V3.2 Exp',
enabled: true,
id: 'deepseek-chat',
maxOutput: 8192,
pricing: {
currency: 'CNY',
units: [
- { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
],
},
- releasedAt: '2025-08-21',
+ releasedAt: '2025-09-29',
type: 'chat',
},
{
@@ -31,20 +31,20 @@ const deepseekChatModels: AIChatModelCard[] = [
},
contextWindowTokens: 131_072,
description:
- 'DeepSeek V3.1 思考模式。在输出最终回答之前,模型会先输出一段思维链内容,以提升最终答案的准确性。',
- displayName: 'DeepSeek V3.1 Thinking',
+ 'DeepSeek V3.2 思考模式。在输出最终回答之前,模型会先输出一段思维链内容,以提升最终答案的准确性。',
+ displayName: 'DeepSeek V3.2 Exp Thinking',
enabled: true,
id: 'deepseek-reasoner',
maxOutput: 65_536,
pricing: {
currency: 'CNY',
units: [
- { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
],
},
- releasedAt: '2025-08-21',
+ releasedAt: '2025-09-29',
type: 'chat',
},
];
diff --git a/packages/model-bank/src/aiModels/google.ts b/packages/model-bank/src/aiModels/google.ts
index 01201268805..d1162159d52 100644
--- a/packages/model-bank/src/aiModels/google.ts
+++ b/packages/model-bank/src/aiModels/google.ts
@@ -7,6 +7,111 @@ import { AIChatModelCard, AIImageModelCard } from '../types';
*/
const googleChatModels: AIChatModelCard[] = [
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ video: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_048_576 + 65_536,
+ description: 'Latest release of Gemini Pro',
+ displayName: 'Gemini Pro Latest',
+ id: 'gemini-pro-latest',
+ maxOutput: 65_536,
+ pricing: {
+ units: [
+ {
+ name: 'textInput_cacheRead',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.31, upTo: 200_000 },
+ { rate: 0.625, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 1.25, upTo: 200_000 },
+ { rate: 2.5, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textOutput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 10, upTo: 200_000 },
+ { rate: 15, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ settings: {
+ extendParams: ['thinkingBudget', 'urlContext'],
+ searchImpl: 'params',
+ searchProvider: 'google',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ video: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_048_576 + 65_536,
+ description: 'Latest release of Gemini Flash',
+ displayName: 'Gemini Flash Latest',
+ id: 'gemini-flash-latest',
+ maxOutput: 65_536,
+ pricing: {
+ units: [
+ { name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ settings: {
+ extendParams: ['thinkingBudget', 'urlContext'],
+ searchImpl: 'params',
+ searchProvider: 'google',
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ video: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_048_576 + 65_536,
+ description: 'Latest release of Gemini Flash-Lite',
+ displayName: 'Gemini Flash-Lite Latest',
+ id: 'gemini-flash-lite-latest',
+ maxOutput: 65_536,
+ pricing: {
+ units: [
+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ settings: {
+ extendParams: ['thinkingBudget', 'urlContext'],
+ searchImpl: 'params',
+ searchProvider: 'google',
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
@@ -195,6 +300,34 @@ const googleChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ video: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_048_576 + 65_536,
+ description: 'Preview release (Septempber 25th, 2025) of Gemini 2.5 Flash',
+ displayName: 'Gemini 2.5 Flash Preview Sep 2025',
+ id: 'gemini-2.5-flash-preview-09-2025',
+ maxOutput: 65_536,
+ pricing: {
+ units: [
+ { name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-09-25',
+ settings: {
+ extendParams: ['thinkingBudget', 'urlContext'],
+ searchImpl: 'params',
+ searchProvider: 'google',
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
@@ -274,6 +407,34 @@ const googleChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ video: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_048_576 + 65_536,
+ description: 'Preview release (September 25th, 2025) of Gemini 2.5 Flash-Lite',
+ displayName: 'Gemini 2.5 Flash-Lite Preview Sep 2025',
+ id: 'gemini-2.5-flash-lite-preview-09-2025',
+ maxOutput: 65_536,
+ pricing: {
+ units: [
+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-09-25',
+ settings: {
+ extendParams: ['thinkingBudget', 'urlContext'],
+ searchImpl: 'params',
+ searchProvider: 'google',
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
diff --git a/packages/model-bank/src/aiModels/hunyuan.ts b/packages/model-bank/src/aiModels/hunyuan.ts
index 9db8a4693eb..9ab708c920b 100644
--- a/packages/model-bank/src/aiModels/hunyuan.ts
+++ b/packages/model-bank/src/aiModels/hunyuan.ts
@@ -348,6 +348,30 @@ const hunyuanChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
+ {
+ abilities: {
+ functionCall: true,
+ search: true,
+ },
+ contextWindowTokens: 44_000,
+ description:
+ '预训练底座数据质量升级。优化 posttrain 阶段训练策略,持续提升 Agent、英语小语种、指令遵循、代码和理科能力。',
+ displayName: 'Hunyuan TurboS 20250926',
+ id: 'hunyuan-turbos-20250926',
+ maxOutput: 16_000,
+ pricing: {
+ currency: 'CNY',
+ units: [
+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-09-26',
+ settings: {
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
@@ -485,18 +509,18 @@ const hunyuanChatModels: AIChatModelCard[] = [
},
contextWindowTokens: 40_000,
description:
- '混元最新版t1-vision多模态理解深度思考模型,支持多模态原生长思维链,相比上一代默认版本模型全面提升。',
- displayName: 'Hunyuan T1 Vision 20250619',
- id: 'hunyuan-t1-vision-20250619',
- maxOutput: 24_000,
+ '混元多模态理解深度思考模型,支持多模态原生长思维链,擅长处理各种图片推理场景,在理科难题上相比快思考模型全面提升。',
+ displayName: 'Hunyuan T1 Vision 20250916',
+ id: 'hunyuan-t1-vision-20250916',
+ maxOutput: 16_000,
pricing: {
currency: 'CNY',
units: [
- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },
],
},
- releasedAt: '2025-06-19',
+ releasedAt: '2025-09-16',
type: 'chat',
},
{
@@ -504,20 +528,20 @@ const hunyuanChatModels: AIChatModelCard[] = [
reasoning: true,
vision: true,
},
- contextWindowTokens: 32_000,
+ contextWindowTokens: 40_000,
description:
- '混元多模态理解深度思考模型,支持多模态原生长思维链,擅长处理各种图片推理场景,在理科难题上相比快思考模型全面提升。',
- displayName: 'Hunyuan T1 Vision',
- id: 'hunyuan-t1-vision',
- maxOutput: 24_000,
+ '混元最新版t1-vision多模态理解深度思考模型,支持多模态原生长思维链,相比上一代默认版本模型全面提升。',
+ displayName: 'Hunyuan T1 Vision 20250619',
+ id: 'hunyuan-t1-vision-20250619',
+ maxOutput: 16_000,
pricing: {
currency: 'CNY',
units: [
- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },
],
},
- releasedAt: '2025-05-16',
+ releasedAt: '2025-06-19',
type: 'chat',
},
{
diff --git a/packages/model-bank/src/aiModels/novita.ts b/packages/model-bank/src/aiModels/novita.ts
index a2dabf977df..7a9c98c0f63 100644
--- a/packages/model-bank/src/aiModels/novita.ts
+++ b/packages/model-bank/src/aiModels/novita.ts
@@ -100,6 +100,23 @@ const novitaChatModels: AIChatModelCard[] = [
releasedAt: '2025-09-05',
type: 'chat',
},
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ },
+ contextWindowTokens: 163_840,
+ displayName: 'Deepseek V3.2 Exp',
+ enabled: true,
+ id: 'deepseek/deepseek-v3.2-exp',
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 0.27, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 0.41, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
@@ -107,7 +124,6 @@ const novitaChatModels: AIChatModelCard[] = [
},
contextWindowTokens: 131_072,
displayName: 'DeepSeek V3.1 Terminus',
- enabled: true,
id: 'deepseek/deepseek-v3.1-terminus',
maxOutput: 65_536,
pricing: {
@@ -501,7 +517,6 @@ const novitaChatModels: AIChatModelCard[] = [
},
contextWindowTokens: 131_072,
displayName: 'Llama 4 Scout 17B Instruct',
- enabled: true,
id: 'meta-llama/llama-4-scout-17b-16e-instruct',
pricing: {
units: [
@@ -518,7 +533,6 @@ const novitaChatModels: AIChatModelCard[] = [
},
contextWindowTokens: 1_048_576,
displayName: 'Llama 4 Maverick 17B Instruct',
- enabled: true,
id: 'meta-llama/llama-4-maverick-17b-128e-instruct-fp8',
pricing: {
units: [
diff --git a/packages/model-bank/src/aiModels/siliconcloud.ts b/packages/model-bank/src/aiModels/siliconcloud.ts
index b3fd23a5a1c..4e9bf476163 100644
--- a/packages/model-bank/src/aiModels/siliconcloud.ts
+++ b/packages/model-bank/src/aiModels/siliconcloud.ts
@@ -2,6 +2,29 @@ import { AIChatModelCard, AIImageModelCard } from '../types/aiModel';
// https://siliconflow.cn/zh-cn/models
const siliconcloudChatModels: AIChatModelCard[] = [
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ },
+ contextWindowTokens: 198_000,
+ description:
+ '与 GLM-4.5 相比,GLM-4.6 带来了多项关键改进。其上下文窗口从 128K 扩展到 200K tokens,使模型能够处理更复杂的智能体任务。模型在代码基准测试中取得了更高的分数,并在 Claude Code、Cline、Roo Code 和 Kilo Code 等应用中展现了更强的真实世界性能,包括在生成视觉效果精致的前端页面方面有所改进。GLM-4.6 在推理性能上表现出明显提升,并支持在推理过程中使用工具,从而带来了更强的综合能力。它在工具使用和基于搜索的智能体方面表现更强,并且能更有效地集成到智能体框架中。在写作方面,该模型在风格和可读性上更符合人类偏好,并在角色扮演场景中表现得更自然。',
+ displayName: 'GLM-4.6',
+ id: 'zai-org/GLM-4.6',
+ pricing: {
+ currency: 'CNY',
+ units: [
+ { name: 'textInput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 14, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-09-30',
+ settings: {
+ extendParams: ['enableReasoning', 'reasoningBudgetToken'],
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
@@ -41,6 +64,51 @@ const siliconcloudChatModels: AIChatModelCard[] = [
releasedAt: '2025-09-10',
type: 'chat',
},
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ },
+ contextWindowTokens: 163_840,
+ description:
+ 'DeepSeek-V3.1-Terminus 是由深度求索(DeepSeek)发布的 V3.1 模型的更新版本,定位为混合智能体大语言模型。此次更新在保持模型原有能力的基础上,专注于修复用户反馈的问题并提升稳定性。它显著改善了语言一致性,减少了中英文混用和异常字符的出现。模型集成了“思考模式”(Thinking Mode)和“非思考模式”(Non-thinking Mode),用户可通过聊天模板灵活切换以适应不同任务。作为一个重要的优化,V3.1-Terminus 增强了代码智能体(Code Agent)和搜索智能体(Search Agent)的性能,使其在工具调用和执行多步复杂任务方面更加可靠。',
+ displayName: 'DeepSeek V3.1 Terminus',
+ enabled: true,
+ id: 'deepseek-ai/DeepSeek-V3.1-Terminus',
+ pricing: {
+ currency: 'CNY',
+ units: [
+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ settings: {
+ extendParams: ['enableReasoning', 'reasoningBudgetToken'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ },
+ contextWindowTokens: 163_840,
+ description:
+ 'DeepSeek-V3.1-Terminus 是由深度求索(DeepSeek)发布的 V3.1 模型的更新版本,定位为混合智能体大语言模型。此次更新在保持模型原有能力的基础上,专注于修复用户反馈的问题并提升稳定性。它显著改善了语言一致性,减少了中英文混用和异常字符的出现。模型集成了“思考模式”(Thinking Mode)和“非思考模式”(Non-thinking Mode),用户可通过聊天模板灵活切换以适应不同任务。作为一个重要的优化,V3.1-Terminus 增强了代码智能体(Code Agent)和搜索智能体(Search Agent)的性能,使其在工具调用和执行多步复杂任务方面更加可靠。',
+ displayName: 'DeepSeek V3.1 Terminus (Pro)',
+ id: 'Pro/deepseek-ai/DeepSeek-V3.1-Terminus',
+ pricing: {
+ currency: 'CNY',
+ units: [
+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ settings: {
+ extendParams: ['enableReasoning', 'reasoningBudgetToken'],
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
@@ -50,7 +118,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [
description:
'DeepSeek-V3.1 是由深度求索(DeepSeek AI)发布的混合模式大语言模型,它在前代模型的基础上进行了多方面的重要升级。该模型的一大创新是集成了“思考模式”(Thinking Mode)和“非思考模式”(Non-thinking Mode)于一体,用户可以通过调整聊天模板灵活切换,以适应不同的任务需求。通过专门的训练后优化,V3.1 在工具调用和 Agent 任务方面的性能得到了显著增强,能够更好地支持外部搜索工具和执行多步复杂任务。该模型基于 DeepSeek-V3.1-Base 进行后训练,通过两阶段长文本扩展方法,大幅增加了训练数据量,使其在处理长文档和长篇代码方面表现更佳。作为一个开源模型,DeepSeek-V3.1 在编码、数学和推理等多个基准测试中展现了与顶尖闭源模型相媲美的能力,同时凭借其混合专家(MoE)架构,在保持巨大模型容量的同时,有效降低了推理成本。',
displayName: 'DeepSeek V3.1',
- enabled: true,
id: 'deepseek-ai/DeepSeek-V3.1',
pricing: {
currency: 'CNY',
@@ -677,7 +744,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [
description:
'GLM-4.1V-9B-Thinking 是由智谱 AI 和清华大学 KEG 实验室联合发布的一款开源视觉语言模型(VLM),专为处理复杂的多模态认知任务而设计。该模型基于 GLM-4-9B-0414 基础模型,通过引入“思维链”(Chain-of-Thought)推理机制和采用强化学习策略,显著提升了其跨模态的推理能力和稳定性。',
displayName: 'GLM-4.1V 9B Thinking (Free)',
- enabled: true,
id: 'THUDM/GLM-4.1V-9B-Thinking',
pricing: {
currency: 'CNY',
@@ -855,7 +921,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [
description:
'DeepSeek-R1-0528-Qwen3-8B 是通过从 DeepSeek-R1-0528 模型蒸馏思维链到 Qwen3 8B Base 获得的模型。该模型在开源模型中达到了最先进(SOTA)的性能,在 AIME 2024 测试中超越了 Qwen3 8B 10%,并达到了 Qwen3-235B-thinking 的性能水平。该模型在数学推理、编程和通用逻辑等多个基准测试中表现出色,其架构与 Qwen3-8B 相同,但共享 DeepSeek-R1-0528 的分词器配置。',
displayName: 'DeepSeek R1 0528 Qwen3 8B (Free)',
- enabled: true,
id: 'deepseek-ai/DeepSeek-R1-0528-Qwen3-8B',
pricing: {
currency: 'CNY',
diff --git a/packages/model-runtime/src/providers/google/index.test.ts b/packages/model-runtime/src/providers/google/index.test.ts
index d0e62eaed44..775a2693b51 100644
--- a/packages/model-runtime/src/providers/google/index.test.ts
+++ b/packages/model-runtime/src/providers/google/index.test.ts
@@ -9,7 +9,7 @@ import { LOBE_ERROR_KEY } from '../../core/streams';
import { AgentRuntimeErrorType } from '../../types/error';
import * as debugStreamModule from '../../utils/debugStream';
import * as imageToBase64Module from '../../utils/imageToBase64';
-import { LobeGoogleAI } from './index';
+import { LobeGoogleAI, resolveModelThinkingBudget } from './index';
const provider = 'google';
const bizErrorType = 'ProviderBizError';
@@ -981,3 +981,41 @@ describe('LobeGoogleAI', () => {
});
});
});
+
+describe('resolveModelThinkingBudget', () => {
+ it('returns dynamic defaults for 2.5 pro models', () => {
+ expect(resolveModelThinkingBudget('gemini-2.5-pro')).toBe(-1);
+ });
+
+ it('clamps manual budgets for 2.5 pro models', () => {
+ expect(resolveModelThinkingBudget('gemini-2.5-pro', 0)).toBe(128);
+ expect(resolveModelThinkingBudget('gemini-2.5-pro', 40_000)).toBe(32_768);
+ });
+
+ it('supports disabling and dynamic thinking for flash models', () => {
+ expect(resolveModelThinkingBudget('gemini-2.5-flash')).toBe(-1);
+ expect(resolveModelThinkingBudget('gemini-2.5-flash', 0)).toBe(0);
+ expect(resolveModelThinkingBudget('gemini-2.5-flash', -1)).toBe(-1);
+ expect(resolveModelThinkingBudget('gemini-2.5-flash', -5)).toBe(0);
+ expect(resolveModelThinkingBudget('gemini-2.5-flash-preview', 30_000)).toBe(24_576);
+ });
+
+ it('enforces flash lite family defaults and ranges', () => {
+ expect(resolveModelThinkingBudget('gemini-2.5-flash-lite')).toBe(0);
+ expect(resolveModelThinkingBudget('gemini-2.5-flash-lite', 400)).toBe(512);
+ expect(resolveModelThinkingBudget('gemini-2.5-flash-lite', 600)).toBe(600);
+ expect(resolveModelThinkingBudget('gemini-2.5-flash-lite-preview', 25_000)).toBe(24_576);
+ });
+
+ it('applies robotics preview defaults and overrides', () => {
+ expect(resolveModelThinkingBudget('robotics-er-1.5-preview')).toBe(0);
+ expect(resolveModelThinkingBudget('robotics-er-1.5-preview', -1)).toBe(-1);
+ expect(resolveModelThinkingBudget('robotics-er-1.5-preview', 256)).toBe(512);
+ });
+
+ it('falls back to generic behaviour for other models', () => {
+ expect(resolveModelThinkingBudget('unknown-model')).toBeUndefined();
+ expect(resolveModelThinkingBudget('unknown-model', 999)).toBe(999);
+ expect(resolveModelThinkingBudget('unknown-model', 99_999)).toBe(24_576);
+ });
+});
diff --git a/packages/model-runtime/src/providers/google/index.ts b/packages/model-runtime/src/providers/google/index.ts
index 6db5bc7d94b..283e930b8ee 100644
--- a/packages/model-runtime/src/providers/google/index.ts
+++ b/packages/model-runtime/src/providers/google/index.ts
@@ -59,6 +59,67 @@ const modelsDisableInstuction = new Set([
'gemma-3n-e4b-it',
]);
+const PRO_THINKING_MIN = 128;
+const PRO_THINKING_MAX = 32_768;
+const FLASH_THINKING_MAX = 24_576;
+const FLASH_LITE_THINKING_MIN = 512;
+const FLASH_LITE_THINKING_MAX = 24_576;
+
+const clamp = (value: number, min: number, max: number) => Math.min(Math.max(value, min), max);
+
+type ThinkingModelCategory = 'pro' | 'flash' | 'flashLite' | 'robotics' | 'other';
+
+const getThinkingModelCategory = (model?: string): ThinkingModelCategory => {
+ if (!model) return 'other';
+
+ const normalized = model.toLowerCase();
+
+ if (normalized.includes('robotics-er-1.5-preview')) return 'robotics';
+ if (normalized.includes('-2.5-flash-lite')) return 'flashLite';
+ if (normalized.includes('-2.5-flash')) return 'flash';
+ if (normalized.includes('-2.5-pro')) return 'pro';
+
+ return 'other';
+};
+
+export const resolveModelThinkingBudget = (
+ model: string,
+ thinkingBudget?: number | null,
+): number | undefined => {
+ const category = getThinkingModelCategory(model);
+ const hasBudget = thinkingBudget !== undefined && thinkingBudget !== null;
+
+ switch (category) {
+ case 'pro': {
+ if (!hasBudget) return -1;
+ if (thinkingBudget === -1) return -1;
+
+ return clamp(thinkingBudget, PRO_THINKING_MIN, PRO_THINKING_MAX);
+ }
+
+ case 'flash': {
+ if (!hasBudget) return -1;
+ if (thinkingBudget === -1 || thinkingBudget === 0) return thinkingBudget;
+
+ return clamp(thinkingBudget, 0, FLASH_THINKING_MAX);
+ }
+
+ case 'flashLite':
+ case 'robotics': {
+ if (!hasBudget) return 0;
+ if (thinkingBudget === -1 || thinkingBudget === 0) return thinkingBudget;
+
+ return clamp(thinkingBudget, FLASH_LITE_THINKING_MIN, FLASH_LITE_THINKING_MAX);
+ }
+
+ default: {
+ if (!hasBudget) return undefined;
+
+ return Math.min(thinkingBudget, FLASH_THINKING_MAX);
+ }
+ }
+};
+
export interface GoogleModelCard {
displayName: string;
inputTokenLimit: number;
@@ -141,28 +202,7 @@ export class LobeGoogleAI implements LobeRuntimeAI {
const { model, thinkingBudget } = payload;
// https://ai.google.dev/gemini-api/docs/thinking#set-budget
- const resolvedThinkingBudget = (() => {
- if (thinkingBudget !== undefined && thinkingBudget !== null) {
- if (model.includes('-2.5-flash-lite')) {
- if (thinkingBudget === 0 || thinkingBudget === -1) {
- return thinkingBudget;
- }
- return Math.max(512, Math.min(thinkingBudget, 24_576));
- } else if (model.includes('-2.5-flash')) {
- return Math.min(thinkingBudget, 24_576);
- } else if (model.includes('-2.5-pro')) {
- return thinkingBudget === -1 ? -1 : Math.max(128, Math.min(thinkingBudget, 32_768));
- }
- return Math.min(thinkingBudget, 24_576);
- }
-
- if (model.includes('-2.5-pro') || model.includes('-2.5-flash')) {
- return -1;
- } else if (model.includes('-2.5-flash-lite')) {
- return 0;
- }
- return undefined;
- })();
+ const resolvedThinkingBudget = resolveModelThinkingBudget(model, thinkingBudget);
const thinkingConfig: ThinkingConfig = {
includeThoughts:
diff --git a/packages/model-runtime/src/utils/modelParse.ts b/packages/model-runtime/src/utils/modelParse.ts
index ddf59df74e7..6f5247a8be5 100644
--- a/packages/model-runtime/src/utils/modelParse.ts
+++ b/packages/model-runtime/src/utils/modelParse.ts
@@ -19,7 +19,7 @@ export const MODEL_LIST_CONFIGS = {
},
deepseek: {
functionCallKeywords: ['v3', 'r1', 'deepseek-chat'],
- reasoningKeywords: ['r1', 'deepseek-reasoner', 'v3.1'],
+ reasoningKeywords: ['r1', 'deepseek-reasoner', 'v3.1', 'v3.2'],
},
google: {
functionCallKeywords: ['gemini'],
diff --git a/src/config/modelProviders/deepseek.ts b/src/config/modelProviders/deepseek.ts
index 4fa8a5781ef..916e34a229f 100644
--- a/src/config/modelProviders/deepseek.ts
+++ b/src/config/modelProviders/deepseek.ts
@@ -1,26 +1,23 @@
import { ModelProviderCard } from '@/types/llm';
-// ref: https://platform.deepseek.com/api-docs/pricing
const DeepSeek: ModelProviderCard = {
chatModels: [
{
- contextWindowTokens: 65_536,
+ contextWindowTokens: 131_072,
description:
'最新模型 DeepSeek-V3 多项评测成绩超越 Qwen2.5-72B 和 Llama-3.1-405B 等开源模型,性能对齐领军闭源模型 GPT-4o 与 Claude-3.5-Sonnet。',
- displayName: 'DeepSeek V3',
+ displayName: 'DeepSeek V3.2 Exp',
enabled: true,
functionCall: true,
id: 'deepseek-chat',
- releasedAt: '2024-12-26',
},
{
- contextWindowTokens: 65_536,
+ contextWindowTokens: 131_072,
description:
'DeepSeek 推出的推理模型。在输出最终回答之前,模型会先输出一段思维链内容,以提升最终答案的准确性。',
- displayName: 'DeepSeek R1',
+ displayName: 'DeepSeek V3.2 Exp Thinking',
enabled: true,
id: 'deepseek-reasoner',
- releasedAt: '2025-01-20',
},
],
checkModel: 'deepseek-chat',
diff --git a/src/features/ChatInput/ActionBar/Model/ControlsForm.tsx b/src/features/ChatInput/ActionBar/Model/ControlsForm.tsx
index 113316e8e0e..8c9634b43d2 100644
--- a/src/features/ChatInput/ActionBar/Model/ControlsForm.tsx
+++ b/src/features/ChatInput/ActionBar/Model/ControlsForm.tsx
@@ -1,6 +1,6 @@
import { Form } from '@lobehub/ui';
import type { FormItemProps } from '@lobehub/ui';
-import { Form as AntdForm, Switch, Grid } from 'antd';
+import { Form as AntdForm, Grid, Switch } from 'antd';
import isEqual from 'fast-deep-equal';
import Link from 'next/link';
import { memo } from 'react';
@@ -134,7 +134,7 @@ const ControlsForm = memo(() => {
children: <ThinkingBudgetSlider />,
label: t('extendParams.reasoningBudgetToken.title'),
layout: 'vertical',
- minWidth: 470,
+ minWidth: 460,
name: 'thinkingBudget',
style: {
paddingBottom: 0,
diff --git a/src/features/ChatInput/ActionBar/Model/ReasoningTokenSlider.tsx b/src/features/ChatInput/ActionBar/Model/ReasoningTokenSlider.tsx
index 103a7f4e815..8e35553eab5 100644
--- a/src/features/ChatInput/ActionBar/Model/ReasoningTokenSlider.tsx
+++ b/src/features/ChatInput/ActionBar/Model/ReasoningTokenSlider.tsx
@@ -51,6 +51,16 @@ const ReasoningTokenSlider = memo<MaxTokenSliderProps>(({ value, onChange, defau
};
}, []);
+ const step = useMemo(() => {
+ const current = token ?? 0;
+
+ if (current <= Kibi) return 128;
+
+ if (current < 8 * Kibi) return Kibi;
+
+ return 4 * Kibi;
+ }, [token]);
+
return (
<Flexbox align={'center'} gap={12} horizontal paddingInline={'4px 0'}>
<Flexbox flex={1}>
@@ -73,8 +83,8 @@ const ReasoningTokenSlider = memo<MaxTokenSliderProps>(({ value, onChange, defau
if (!e && e !== 0) return;
updateWithRealValue(e as number);
}}
- step={4 * Kibi}
- style={{ width: 60 }}
+ step={step}
+ style={{ width: 80 }}
value={token}
/>
</div>
diff --git a/src/features/ChatInput/ActionBar/Model/ThinkingBudgetSlider.tsx b/src/features/ChatInput/ActionBar/Model/ThinkingBudgetSlider.tsx
index 58fdfea09f6..ec1f21beee4 100644
--- a/src/features/ChatInput/ActionBar/Model/ThinkingBudgetSlider.tsx
+++ b/src/features/ChatInput/ActionBar/Model/ThinkingBudgetSlider.tsx
@@ -27,8 +27,24 @@ const SLIDER_TO_VALUE_MAP = [
// 从实际值获取滑块位置
const getSliderPosition = (value: number): number => {
- const index = SLIDER_TO_VALUE_MAP.indexOf(value);
- return index === -1 ? 0 : index;
+ const exactIndex = SLIDER_TO_VALUE_MAP.indexOf(value);
+ if (exactIndex !== -1) return exactIndex;
+
+ if (value <= SPECIAL_VALUES.AUTO) return 0;
+ if (value > SPECIAL_VALUES.OFF && value <= 128) return 2;
+
+ let position = 0;
+
+ for (const [index, mappedValue] of SLIDER_TO_VALUE_MAP.entries()) {
+ if (mappedValue <= value) {
+ position = index;
+ continue;
+ }
+
+ break;
+ }
+
+ return position;
};
// 从滑块位置获取实际值(修复:0 不再被当作 falsy)
@@ -37,6 +53,13 @@ const getValueFromPosition = (position: number): number => {
return v === undefined ? SPECIAL_VALUES.AUTO : v;
};
+const getStepForValue = (value: number): number => {
+ if (value < 0) return 1;
+ if (value <= 1024) return 128;
+ if (value < 8192) return 1024;
+ return 2048;
+};
+
interface ThinkingBudgetSliderProps {
defaultValue?: number;
onChange?: (value: number) => void;
@@ -65,6 +88,8 @@ const ThinkingBudgetSlider = memo<ThinkingBudgetSliderProps>(
setBudget(value);
};
+ const inputStep = useMemo(() => getStepForValue(budget), [budget]);
+
const marks = useMemo(() => {
return {
0: 'Auto',
@@ -97,6 +122,7 @@ const ThinkingBudgetSlider = memo<ThinkingBudgetSliderProps>(
</Flexbox>
<div>
<InputNumber
+ changeOnWheel
// eslint-disable-next-line @typescript-eslint/no-unused-vars
formatter={(value, _info) => {
if (value === SPECIAL_VALUES.AUTO) return 'Auto';
@@ -120,7 +146,7 @@ const ThinkingBudgetSlider = memo<ThinkingBudgetSliderProps>(
}
return SPECIAL_VALUES.AUTO;
}}
- step={128}
+ step={inputStep}
style={{ width: 80 }}
value={budget}
/>