🤯 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.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix: correct extend params reasoning payloads and persist cleared model settings & add MiniMax M2.7 (#12760)
sxjeruc60c02bcfee2
diff --git a/packages/const/src/settings/llm.ts b/packages/const/src/settings/llm.tsindex 7e5b70bc742..5ecdd7520a6 100644--- a/packages/const/src/settings/llm.ts+++ b/packages/const/src/settings/llm.ts@@ -1,6 +1,6 @@export const DEFAULT_MODEL = 'claude-sonnet-4-6';export const DEFAULT_ONBOARDING_MODEL = 'gemini-3-flash-preview';-export const DEFAULT_MINI_MODEL = 'gpt-5-mini';+export const DEFAULT_MINI_MODEL = 'gpt-5.4-mini';export const DEFAULT_EMBEDDING_MODEL = 'text-embedding-3-small';diff --git a/packages/model-bank/src/aiModels/aihubmix.ts b/packages/model-bank/src/aiModels/aihubmix.tsindex c9ea7f3ff76..c3f806d3d17 100644--- a/packages/model-bank/src/aiModels/aihubmix.ts+++ b/packages/model-bank/src/aiModels/aihubmix.ts@@ -63,6 +63,63 @@ const aihubmixModels: AIChatModelCard[] = [},type: 'chat',},+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ search: true,+ structuredOutput: true,+ vision: true,+ },+ contextWindowTokens: 400_000,+ description:+ 'GPT-5.4 mini brings GPT-5.4 strengths to a faster, more efficient model for high-volume coding and agentic workflows.',+ displayName: 'GPT-5.4 mini',+ enabled: true,+ id: 'gpt-5.4-mini',+ maxOutput: 128_000,+ pricing: {+ units: [+ { name: 'textInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 4.5, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-03-17',+ settings: {+ extendParams: ['gpt5_2ReasoningEffort', 'textVerbosity'],+ searchImpl: 'params',+ },+ type: 'chat',+ },+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ search: true,+ structuredOutput: true,+ vision: true,+ },+ contextWindowTokens: 400_000,+ description:+ 'GPT-5.4 nano is our lowest-cost GPT-5.4-class model for high-throughput tasks where speed and cost matter most.',+ displayName: 'GPT-5.4 nano',+ id: 'gpt-5.4-nano',+ maxOutput: 128_000,+ pricing: {+ units: [+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.02, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-03-17',+ settings: {+ extendParams: ['gpt5_2ReasoningEffort', 'textVerbosity'],+ searchImpl: 'params',+ },+ type: 'chat',+ },{abilities: {functionCall: true,@@ -121,7 +178,6 @@ const aihubmixModels: AIChatModelCard[] = [description:'GPT-5.3 Chat is the latest ChatGPT model used in ChatGPT with improved conversation experiences.',displayName: 'GPT-5.3 Chat',- enabled: true,id: 'gpt-5.3-chat-latest',maxOutput: 16_384,pricing: {@@ -406,7 +462,6 @@ const aihubmixModels: AIChatModelCard[] = [description:'A faster, more cost-effective GPT-5 variant for well-defined tasks, delivering faster responses while maintaining quality.',displayName: 'GPT-5 mini',- enabled: true,id: 'gpt-5-mini',maxOutput: 128_000,pricing: {@@ -1380,6 +1435,36 @@ const aihubmixModels: AIChatModelCard[] = [},type: 'chat',},+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ search: true,+ structuredOutput: true,+ video: true,+ vision: true,+ },+ contextWindowTokens: 1_048_576 + 65_536,+ description:+ "Gemini 3.1 Flash-Lite Preview is Google's most cost-efficient multimodal model, optimized for high-volume agentic tasks, translation, and data processing.",+ displayName: 'Gemini 3.1 Flash-Lite Preview',+ id: 'gemini-3.1-flash-lite-preview',+ maxOutput: 65_536,+ pricing: {+ units: [+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-03-04',+ settings: {+ extendParams: ['thinkingLevel5', 'urlContext'],+ searchImpl: 'params',+ searchProvider: 'google',+ },+ type: 'chat',+ },{abilities: {functionCall: true,@@ -1486,7 +1571,6 @@ const aihubmixModels: AIChatModelCard[] = [description:'Gemini 3 Pro Image (Nano Banana Pro) is Google’s image generation model with multimodal chat support.',displayName: 'Nano Banana Pro',- enabled: true,id: 'gemini-3-pro-image-preview',maxOutput: 32_768,pricing: {diff --git a/packages/model-bank/src/aiModels/infiniai.ts b/packages/model-bank/src/aiModels/infiniai.tsindex b4ab4fc6358..7cdd170b354 100644--- a/packages/model-bank/src/aiModels/infiniai.ts+++ b/packages/model-bank/src/aiModels/infiniai.ts@@ -3,6 +3,27 @@ import { type AIChatModelCard } from '../types/aiModel';// https://cloud.infini-ai.com/genstudio/modelconst infiniaiChatModels: AIChatModelCard[] = [+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ },+ contextWindowTokens: 204_800,+ description:+ 'MiniMax-M2.7 has reached or refreshed the latest SOTA benchmark in programming, tool calling and search, office productivity and many other scenarios, officially starting the journey of model recursive self-improvement.',+ displayName: 'MiniMax M2.7',+ enabled: true,+ id: 'minimax-m2.7',+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput', rate: 2.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8.4, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-03-17',+ type: 'chat',+ },{abilities: {functionCall: true,@@ -56,7 +77,6 @@ const infiniaiChatModels: AIChatModelCard[] = [description:'MiniMax-M2.5 is a state-of-the-art large language model designed for real-world productivity and coding tasks.',displayName: 'MiniMax M2.5',- enabled: true,id: 'minimax-m2.5',pricing: {currency: 'CNY',@@ -118,7 +138,6 @@ const infiniaiChatModels: AIChatModelCard[] = [description:'MiniMax-M2.1 is the latest version of the MiniMax series, optimized for multilingual programming and real-world complex tasks. As an AI-native model, MiniMax-M2.1 achieves significant improvements in model performance, agent framework support, and multi-scenario adaptation, aiming to help enterprises and individuals find AI-native work and lifestyle more quickly.',displayName: 'MiniMax M2.1',- enabled: true,id: 'minimax-m2.1',maxOutput: 200_000,pricing: {@@ -159,7 +178,6 @@ const infiniaiChatModels: AIChatModelCard[] = [description:'GLM-4.7 is the latest large language model launched by Zhipu AI, with enhanced reasoning and generation capabilities.',displayName: 'GLM-4.7',- enabled: true,id: 'glm-4.7',maxOutput: 4096,pricing: {diff --git a/packages/model-bank/src/aiModels/minimax.ts b/packages/model-bank/src/aiModels/minimax.tsindex dab8877b9cc..14f4c812291 100644--- a/packages/model-bank/src/aiModels/minimax.ts+++ b/packages/model-bank/src/aiModels/minimax.ts@@ -1,6 +1,55 @@import { type AIChatModelCard, type AIImageModelCard } from '../types/aiModel';const minimaxChatModels: AIChatModelCard[] = [+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ search: true,+ },+ contextWindowTokens: 204_800,+ description:+ 'Beginning the journey of recursive self-improvement. Optimized for top real-world engineering, professional office delivery, and character-rich interaction.',+ displayName: 'MiniMax M2.7',+ enabled: true,+ id: 'MiniMax-M2.7',+ maxOutput: 131_072,+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput_cacheRead', rate: 0.42, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheWrite', rate: 2.625, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 2.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8.4, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-03-18',+ type: 'chat',+ },+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ search: true,+ },+ contextWindowTokens: 204_800,+ description:+ 'Same performance as M2.7, with significantly faster inference for low-latency coding and refactoring.',+ displayName: 'MiniMax M2.7 highspeed',+ id: 'MiniMax-M2.7-highspeed',+ maxOutput: 131_072,+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput_cacheRead', rate: 0.42, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheWrite', rate: 2.625, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 4.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 16.8, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-03-18',+ type: 'chat',+ },{abilities: {functionCall: true,@@ -56,7 +105,6 @@ const minimaxChatModels: AIChatModelCard[] = [description:'Top-tier performance and ultimate cost-effectiveness, easily handling complex tasks (approx. 60 tps).',displayName: 'MiniMax M2.5',- enabled: true,id: 'MiniMax-M2.5',maxOutput: 131_072,pricing: {@@ -77,22 +125,39 @@ const minimaxChatModels: AIChatModelCard[] = [reasoning: true,},contextWindowTokens: 204_800,- description: 'M2.5 Lightning: Same performance, faster and more agile (approx. 100 tps).',- displayName: 'MiniMax M2.5 Lightning',- id: 'MiniMax-M2.5-Lightning',+ description: 'M2.5 highspeed: Same performance, faster and more agile (approx. 100 tps).',+ displayName: 'MiniMax M2.5 highspeed',+ id: 'MiniMax-M2.5-highspeed',maxOutput: 131_072,pricing: {currency: 'CNY',units: [{ name: 'textInput_cacheRead', rate: 0.21, strategy: 'fixed', unit: 'millionTokens' },{ name: 'textInput_cacheWrite', rate: 2.625, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textInput', rate: 2.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 4.2, strategy: 'fixed', unit: 'millionTokens' },{ name: 'textOutput', rate: 16.8, strategy: 'fixed', unit: 'millionTokens' },],},releasedAt: '2026-02-12',type: 'chat',},+ {+ contextWindowTokens: 655_36,+ description:+ 'A text dialogue model designed for role-playing and multi-turn conversations, with character customization and emotional expression.',+ displayName: 'MiniMax M2-her',+ id: 'M2-her',+ maxOutput: 2048,+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput', rate: 2.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8.4, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-01-23',+ type: 'chat',+ },{abilities: {functionCall: true,@@ -124,15 +189,15 @@ const minimaxChatModels: AIChatModelCard[] = [contextWindowTokens: 204_800,description:'Powerful multilingual programming capabilities, comprehensively upgraded programming experience. Faster and more efficient.',- displayName: 'MiniMax M2.1 Lightning',- id: 'MiniMax-M2.1-Lightning',+ displayName: 'MiniMax M2.1 highspeed',+ id: 'MiniMax-M2.1-highspeed',maxOutput: 131_072,pricing: {currency: 'CNY',units: [{ name: 'textInput_cacheRead', rate: 0.21, strategy: 'fixed', unit: 'millionTokens' },{ name: 'textInput_cacheWrite', rate: 2.625, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textInput', rate: 2.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 4.2, strategy: 'fixed', unit: 'millionTokens' },{ name: 'textOutput', rate: 16.8, strategy: 'fixed', unit: 'millionTokens' },],},diff --git a/packages/model-bank/src/aiModels/nvidia.ts b/packages/model-bank/src/aiModels/nvidia.tsindex 092a56be3ae..9c87f25d47f 100644--- a/packages/model-bank/src/aiModels/nvidia.ts+++ b/packages/model-bank/src/aiModels/nvidia.ts@@ -1,19 +1,6 @@import { type AIChatModelCard } from '../types/aiModel';const nvidiaChatModels: AIChatModelCard[] = [- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 128_000,- description:- 'MiniMax-M2 is a compact, fast, cost-effective MoE model (230B total, 10B active) built for top-tier coding and agent performance while retaining strong general intelligence. It excels at multi-file edits, code-run-fix loops, test validation, and complex toolchains.',- displayName: 'MiniMax-M2',- id: 'minimaxai/minimax-m2',- maxOutput: 16_384,- type: 'chat',- },{abilities: {functionCall: true,@@ -21,95 +8,32 @@ const nvidiaChatModels: AIChatModelCard[] = [},contextWindowTokens: 204_800,description:- 'MiniMax-M2.1 is a compact, fast, cost-effective MoE model built for top-tier coding and agent performance.',- displayName: 'MiniMax-M2.1',- enabled: true,- id: 'minimaxai/minimax-m2.1',- maxOutput: 131_072,- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 131_072,- description:- 'DeepSeek V3.2 is a next-gen reasoning model with stronger complex reasoning and chain-of-thought capabilities.',- displayName: 'DeepSeek V3.2',- enabled: true,- id: 'deepseek-ai/deepseek-v3.2',- maxOutput: 65_536,- settings: {- extendParams: ['enableReasoning'],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 200_000,- description:- 'GLM-4.7 is Zhipu latest flagship model, enhanced for Agentic Coding scenarios with improved coding capabilities.',- displayName: 'GLM-4.7',- enabled: true,- id: 'z-ai/glm4.7',- maxOutput: 131_072,- settings: {- extendParams: ['enableReasoning'],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 200_000,- description:- "GLM-5 is Zhipu AI's new flagship foundation model for agent engineering, achieving open-source SOTA performance in coding and agent capabilities. It matches Claude Opus 4.5 in performance.",- displayName: 'GLM-5',+ 'MiniMax-M2.5 is the latest large language model from MiniMax, featuring a Mixture-of-Experts (MoE) architecture with 229 billion total parameters. It achieves industry-leading performance in programming, agent tool calling, search tasks, and office scenarios.',+ displayName: 'MiniMax-M2.5',enabled: true,- id: 'z-ai/glm5',+ id: 'minimaxai/minimax-m2.5',maxOutput: 131_072,- settings: {- extendParams: ['enableReasoning'],- },type: 'chat',},{abilities: {functionCall: true,reasoning: true,+ vision: true,+ video: true,},- contextWindowTokens: 262_144,+ contextWindowTokens: 1_010_000,description:- 'Kimi K2.5 is the most intelligent Kimi model to date, featuring native multimodal architecture.',- displayName: 'Kimi K2.5',+ 'Supports text, image, and video inputs. For text-only tasks, its performance is comparable to Qwen3 Max, offering higher efficiency and lower cost. In multimodal capabilities, it delivers significant improvements over the Qwen3 VL series.',+ displayName: 'Qwen3.5-397B-A17B',enabled: true,- id: 'moonshotai/kimi-k2.5',+ id: 'qwen/qwen3.5-397b-a17b',maxOutput: 65_536,settings: {extendParams: ['enableReasoning'],},type: 'chat',},- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 204_800,- description:- 'MiniMax-M2.1 is a compact, fast, cost-effective MoE model built for top-tier coding and agent performance.',- displayName: 'MiniMax-M2.1',- enabled: true,- id: 'minimaxai/minimax-m2.1',- maxOutput: 131_072,- type: 'chat',- },{abilities: {functionCall: true,@@ -136,7 +60,6 @@ const nvidiaChatModels: AIChatModelCard[] = [description:'GLM-4.7 is Zhipu latest flagship model, enhanced for Agentic Coding scenarios with improved coding capabilities.',displayName: 'GLM-4.7',- enabled: true,id: 'z-ai/glm4.7',maxOutput: 131_072,settings: {@@ -356,39 +279,6 @@ const nvidiaChatModels: AIChatModelCard[] = [id: 'qwen/qwen2.5-coder-32b-instruct',type: 'chat',},- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 204_800,- description:- 'MiniMax-M2.5 is the latest large language model from MiniMax, featuring a Mixture-of-Experts (MoE) architecture with 229 billion total parameters. It achieves industry-leading performance in programming, agent tool calling, search tasks, and office scenarios.',- displayName: 'MiniMax-M2.5',- enabled: true,- id: 'minimaxai/minimax-m2.5',- maxOutput: 131_072,- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- vision: true,- video: true,- },- contextWindowTokens: 1_010_000,- description:- 'Supports text, image, and video inputs. For text-only tasks, its performance is comparable to Qwen3 Max, offering higher efficiency and lower cost. In multimodal capabilities, it delivers significant improvements over the Qwen3 VL series.',- displayName: 'Qwen3.5-397B-A17B',- enabled: true,- id: 'qwen/qwen3.5-397b-a17b',- maxOutput: 65_536,- settings: {- extendParams: ['enableReasoning'],- },- type: 'chat',- },];export const allModels = [...nvidiaChatModels];diff --git a/packages/model-bank/src/aiModels/ollamacloud.ts b/packages/model-bank/src/aiModels/ollamacloud.tsindex 398306c563c..84f4be95773 100644--- a/packages/model-bank/src/aiModels/ollamacloud.ts+++ b/packages/model-bank/src/aiModels/ollamacloud.ts@@ -1,6 +1,19 @@import { type AIChatModelCard } from '../types/aiModel';const ollamaCloudModels: AIChatModelCard[] = [+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ },+ contextWindowTokens: 204_800,+ description:+ 'MiniMax M2.7 is an efficient large language model built specifically for coding and agent workflows.',+ displayName: 'MiniMax M2.7',+ enabled: true,+ id: 'minimax-m2.7',+ type: 'chat',+ },{abilities: {functionCall: true,@@ -34,7 +47,6 @@ const ollamaCloudModels: AIChatModelCard[] = [description:'MiniMax-M2.5 is a state-of-the-art large language model designed for real-world productivity and coding tasks.',displayName: 'MiniMax M2.5',- enabled: true,id: 'minimax-m2.5',type: 'chat',},@@ -47,7 +59,6 @@ const ollamaCloudModels: AIChatModelCard[] = [description:'K2 long thinking model supports 256k contexts, supports multi-step tool calling and thinking, and is good at solving more complex problems.',displayName: 'Kimi K2 Thinking',- enabled: true,id: 'kimi-k2-thinking',type: 'chat',},diff --git a/packages/model-bank/src/aiModels/openai.ts b/packages/model-bank/src/aiModels/openai.tsindex 95055ae2ef3..08ba31bb764 100644--- a/packages/model-bank/src/aiModels/openai.ts+++ b/packages/model-bank/src/aiModels/openai.ts@@ -196,7 +196,6 @@ export const openaiChatModels: AIChatModelCard[] = [description:'GPT-5.3 Chat is the latest ChatGPT model used in ChatGPT with improved conversation experiences.',displayName: 'GPT-5.3 Chat',- enabled: true,id: 'gpt-5.3-chat-latest',maxOutput: 16_384,pricing: {@@ -561,7 +560,6 @@ export const openaiChatModels: AIChatModelCard[] = [description:'A faster, more cost-efficient GPT-5 variant for well-defined tasks, delivering quicker responses while maintaining quality.',displayName: 'GPT-5 mini',- enabled: true,id: 'gpt-5-mini',maxOutput: 128_000,pricing: {diff --git a/packages/model-bank/src/aiModels/qwen.ts b/packages/model-bank/src/aiModels/qwen.tsindex 52c472a4481..d234d973d9d 100644--- a/packages/model-bank/src/aiModels/qwen.ts+++ b/packages/model-bank/src/aiModels/qwen.ts@@ -1843,11 +1843,11 @@ const qwenChatModels: AIChatModelCard[] = [vision: true,},config: {- deploymentName: 'qwen3.5-omni-plus-2026-03-15',+ deploymentName: 'qwen3.5-omni-plus',},contextWindowTokens: 262_144,description:- 'Qwen3.5-Omni is the latest generation multimodal large model from Qwen. It supports understanding and interaction across text, images, audio, and video. As a comprehensive evolution of Qwen3-Omni, it enables audio understanding for over 10 hours and supports video understanding and dialogue for more than 400 seconds of 720P (1 FPS) content. It further expands language coverage, supporting audio input in over 60 languages and speech output in more than 30 languages. Additionally, it features powerful structured audio-video understanding capabilities and is widely applicable in scenarios such as text creation, voice assistants, and multimedia analysis, delivering a natural and seamless multimodal interaction experience.',+ 'Qwen3.5 Omni Plus supports text, image, and video input. It is the latest full-modal Qwen model for high-quality multimodal understanding and generation.',displayName: 'Qwen3.5 Omni Plus',id: 'qwen3.5-omni-plus',maxOutput: 65_536,@@ -1859,7 +1859,7 @@ const qwenChatModels: AIChatModelCard[] = [lookup: {prices: {'[0, 0.128]': 0.8,- '[0.128, infinity]': 2,+ '[0.128, 0.256]': 2,},pricingParams: ['textInputRange'],},@@ -1884,7 +1884,7 @@ const qwenChatModels: AIChatModelCard[] = [lookup: {prices: {'[0, 0.128]': 9.6,- '[0.128, infinity]': 24,+ '[0.128, 0.256]': 24,},pricingParams: ['textInputRange'],},@@ -1907,11 +1907,11 @@ const qwenChatModels: AIChatModelCard[] = [vision: true,},config: {- deploymentName: 'qwen3.5-omni-flash-2026-03-15',+ deploymentName: 'qwen3.5-omni-flash',},contextWindowTokens: 262_144,description:- 'Qwen3.5-Omni is the latest generation multimodal large model from Qwen. It supports understanding and interaction across text, images, audio, and video. As a comprehensive evolution of Qwen3-Omni, it enables audio understanding for over 10 hours and supports video understanding and dialogue for more than 400 seconds of 720P (1 FPS) content. It further expands language coverage, supporting audio input in over 60 languages and speech output in more than 30 languages. Additionally, it features powerful structured audio-video understanding capabilities and is widely applicable in scenarios such as text creation, voice assistants, and multimedia analysis, delivering a natural and seamless multimodal interaction experience.',+ 'Qwen3.5 Omni Flash is a fast, cost-effective full-modal Qwen model that supports text, image, and video input.',displayName: 'Qwen3.5 Omni Flash',id: 'qwen3.5-omni-flash',maxOutput: 65_536,@@ -1923,7 +1923,7 @@ const qwenChatModels: AIChatModelCard[] = [lookup: {prices: {'[0, 0.128]': 0.2,- '[0.128, infinity]': 0.8,+ '[0.128, 0.256]': 0.8,},pricingParams: ['textInputRange'],},@@ -1948,7 +1948,7 @@ const qwenChatModels: AIChatModelCard[] = [lookup: {prices: {'[0, 0.128]': 4,- '[0.128, infinity]': 16,+ '[0.128, 0.256]': 16,},pricingParams: ['textInputRange'],},diff --git a/packages/model-bank/src/aiModels/siliconcloud.ts b/packages/model-bank/src/aiModels/siliconcloud.tsindex ee2966f1684..61319c44204 100644--- a/packages/model-bank/src/aiModels/siliconcloud.ts+++ b/packages/model-bank/src/aiModels/siliconcloud.ts@@ -459,7 +459,7 @@ const siliconcloudChatModels: AIChatModelCard[] = [lookup: {prices: {'[0, 0.131072]': 0.8,- '[0.131072, infinity]': 2.0,+ '[0.131072, infinity]': 2,},pricingParams: ['textInput'],},@@ -471,7 +471,7 @@ const siliconcloudChatModels: AIChatModelCard[] = [lookup: {prices: {'[0, 0.131072]': 4.8,- '[0.131072, infinity]': 12.0,+ '[0.131072, infinity]': 12,},pricingParams: ['textInput'],},@@ -506,7 +506,7 @@ const siliconcloudChatModels: AIChatModelCard[] = [lookup: {prices: {'[0, 0.131072]': 0.8,- '[0.131072, infinity]': 2.0,+ '[0.131072, infinity]': 2,},pricingParams: ['textInput'],},@@ -518,7 +518,7 @@ const siliconcloudChatModels: AIChatModelCard[] = [lookup: {prices: {'[0, 0.131072]': 6.4,- '[0.131072, infinity]': 16.0,+ '[0.131072, infinity]': 16,},pricingParams: ['textInput'],},@@ -658,8 +658,8 @@ const siliconcloudChatModels: AIChatModelCard[] = [{lookup: {prices: {- '[0, 0.131072]': 4.0,- '[0.131072, infinity]': 12.0,+ '[0, 0.131072]': 4,+ '[0.131072, infinity]': 12,},pricingParams: ['textInput'],},@@ -718,29 +718,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [releasedAt: '2026-01-29',type: 'chat',},- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 192_000,- description:- 'MiniMax-M2.1 is an open-source large language model optimized for agent capabilities, excelling in programming, tool usage, instruction following, and long-term planning. The model supports multilingual software development and complex multi-step workflow execution, achieving a score of 74.0 on SWE-bench Verified and surpassing Claude Sonnet 4.5 in multilingual scenarios.',- displayName: 'MiniMax-M2.1 (Pro)',- id: 'Pro/MiniMaxAI/MiniMax-M2.1',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 2.1, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 8.4, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2025-12-23',- settings: {- extendParams: ['reasoningBudgetToken'],- },- type: 'chat',- },{abilities: {functionCall: true,@@ -1058,46 +1035,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [{abilities: {functionCall: true,- reasoning: true,- },- contextWindowTokens: 256_000,- description:- 'Qwen3-Next-80B-A3B-Thinking is a next-gen base model for complex reasoning. It uses the Qwen3-Next architecture with hybrid attention (Gated DeltaNet + Gated Attention) and highly sparse MoE for extreme training/inference efficiency. With 80B total parameters but ~3B active at inference, it cuts compute and delivers 10x+ throughput over Qwen3-32B on >32K contexts. This Thinking version targets multi-step tasks like proofs, code synthesis, logic analysis, and planning, outputting structured chain-of-thought. It outperforms Qwen3-32B-Thinking and beats Gemini-2.5-Flash-Thinking on several benchmarks.',- displayName: 'Qwen3 Next 80B A3B Thinking',- id: 'Qwen/Qwen3-Next-80B-A3B-Thinking',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2025-09-10',- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 131_072,- description:- 'Qwen3-Next-80B-A3B-Instruct is a next-gen base model using the Qwen3-Next architecture for extreme training and inference efficiency. It combines hybrid attention (Gated DeltaNet + Gated Attention), highly sparse MoE, and training stability optimizations. With 80B total parameters but ~3B active at inference, it reduces compute and delivers 10x+ throughput over Qwen3-32B on >32K contexts. This instruction-tuned version targets general tasks (no Thinking mode). It performs comparably to Qwen3-235B on some benchmarks and shows strong advantages in ultra-long context tasks.',- displayName: 'Qwen3 Next 80B A3B Instruct',- id: 'Qwen/Qwen3-Next-80B-A3B-Instruct',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2025-09-10',- type: 'chat',- },- {- abilities: {- functionCall: true,- video: true,vision: true,},contextWindowTokens: 256_000,@@ -1897,44 +1834,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [releasedAt: '2025-04-14',type: 'chat',},- {- abilities: {- functionCall: true,- },- contextWindowTokens: 131_072,- description:- 'GLM-4-9B-Chat is the open-source GLM-4 model from Zhipu AI. It performs strongly across semantics, math, reasoning, code, and knowledge. Beyond multi-turn chat, it supports web browsing, code execution, custom tool calls, and long-text reasoning. It supports 26 languages (including Chinese, English, Japanese, Korean, German). It performs well on AlignBench-v2, MT-Bench, MMLU, and C-Eval, and supports up to 128K context for academic and business use.',- displayName: 'GLM-4 9B Chat (Free)',- id: 'THUDM/glm-4-9b-chat',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2024-06-04',- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 131_072,- description:- 'GLM-4-9B-Chat is the open-source GLM-4 model from Zhipu AI. It performs strongly across semantics, math, reasoning, code, and knowledge. Beyond multi-turn chat, it supports web browsing, code execution, custom tool calls, and long-text reasoning. It supports 26 languages (including Chinese, English, Japanese, Korean, German). It performs well on AlignBench-v2, MT-Bench, MMLU, and C-Eval, and supports up to 128K context for academic and business use.',- displayName: 'GLM-4 9B Chat (Pro)',- id: 'Pro/THUDM/glm-4-9b-chat',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2024-06-04',- type: 'chat',- },{abilities: {reasoning: true,@@ -2127,24 +2026,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- vision: true,- },- contextWindowTokens: 4096,- description:- 'DeepSeek-VL2 is a MoE vision-language model based on DeepSeekMoE-27B with sparse activation, achieving strong performance with only 4.5B active parameters. It excels at visual QA, OCR, document/table/chart understanding, and visual grounding.',- displayName: 'DeepSeek VL2',- id: 'deepseek-ai/deepseek-vl2',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{abilities: {reasoning: true,@@ -2294,36 +2175,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [},type: 'chat',},- {- contextWindowTokens: 32_768,- description:- 'Qwen2.5-Coder-7B-Instruct is the latest Alibaba Cloud code-focused LLM. Built on Qwen2.5 and trained on 5.5T tokens, it significantly improves code generation, reasoning, and repair while retaining math and general strengths, providing a solid base for coding agents.',- displayName: 'Qwen2.5 Coder 7B Instruct (Free)',- id: 'Qwen/Qwen2.5-Coder-7B-Instruct',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- contextWindowTokens: 32_768,- description:- 'Qwen2.5-Coder-7B-Instruct is the latest Alibaba Cloud code-focused LLM. Built on Qwen2.5 and trained on 5.5T tokens, it significantly improves code generation, reasoning, and repair while retaining math and general strengths, providing a solid base for coding agents.',- displayName: 'Qwen2.5 Coder 7B Instruct (Pro)',- id: 'Pro/Qwen/Qwen2.5-Coder-7B-Instruct',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{contextWindowTokens: 32_768,description:@@ -2339,36 +2190,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [},type: 'chat',},- {- contextWindowTokens: 32_768,- description:- 'Qwen2-7B-Instruct is a 7B instruction-tuned LLM in the Qwen2 series. It uses Transformer architecture with SwiGLU, attention QKV bias, and grouped-query attention, and handles large inputs. It performs strongly across language understanding, generation, multilingual tasks, coding, math, and reasoning, outperforming most open models and competing with proprietary ones. It surpasses Qwen1.5-7B-Chat on multiple benchmarks.',- displayName: 'Qwen2 7B Instruct (Free)',- id: 'Qwen/Qwen2-7B-Instruct',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- contextWindowTokens: 32_768,- description:- 'Qwen2-7B-Instruct is a 7B instruction-tuned LLM in the Qwen2 series. It uses Transformer architecture with SwiGLU, attention QKV bias, and grouped-query attention, and handles large inputs. It performs strongly across language understanding, generation, multilingual tasks, coding, math, and reasoning, outperforming most open models and competing with proprietary ones. It surpasses Qwen1.5-7B-Chat on multiple benchmarks.',- displayName: 'Qwen2 7B Instruct (Pro)',- id: 'Pro/Qwen/Qwen2-7B-Instruct',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{abilities: {vision: true,@@ -2387,24 +2208,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- vision: true,- },- contextWindowTokens: 32_768,- description:- 'Qwen2.5-VL is a new Qwen vision-language model with strong visual understanding. It analyzes text, charts, and layouts in images, understands long videos and events, supports reasoning and tool use, multi-format object grounding, and structured outputs. It improves dynamic resolution and frame-rate training for video understanding and boosts vision encoder efficiency.',- displayName: 'Qwen2.5 VL 7B Instruct (Pro)',- id: 'Pro/Qwen/Qwen2.5-VL-7B-Instruct',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{abilities: {vision: true,diff --git a/packages/model-bank/src/aiModels/xiaomimimo.ts b/packages/model-bank/src/aiModels/xiaomimimo.tsindex f99d0b71d99..d06b7980624 100644--- a/packages/model-bank/src/aiModels/xiaomimimo.ts+++ b/packages/model-bank/src/aiModels/xiaomimimo.ts@@ -10,7 +10,7 @@ const xiaomimimoChatModels: AIChatModelCard[] = [},contextWindowTokens: 1_000_000,description:- 'Xiaomi MiMo-V2-Pro is specifically designed for high-intensity agent workflows in real-world scenarios. It features over 1 trillion total parameters (42B activated parameters), adopts an innovative hybrid attention architecture, and supports an ultra-long context length of up to 1 million tokens. Built on a powerful foundational model, we continuously scale computational resources across a broader range of agent scenarios, further expanding the action space of intelligence and achieving significant generalization—from coding to real-world task execution (“claw”).',+ 'MiMo-V2-Pro is specifically designed for high-intensity agent workflows in real-world scenarios. It features over 1 trillion total parameters (42B activated parameters), adopts an innovative hybrid attention architecture, and supports an ultra-long context length of up to 1 million tokens. Built on a powerful foundational model, we continuously scale computational resources across a broader range of agent scenarios, further expanding the action space of intelligence and achieving significant generalization—from coding to real-world task execution (“claw”).',displayName: 'MiMo-V2 Pro',enabled: true,id: 'mimo-v2-pro',@@ -19,20 +19,20 @@ const xiaomimimoChatModels: AIChatModelCard[] = [currency: 'CNY',units: [{- name: 'textInput',+ name: 'textInput_cacheRead',strategy: 'tiered',tiers: [- { rate: 7, upTo: 256_000 },- { rate: 14, upTo: 'infinity' },+ { rate: 1.4, upTo: 0.256 },+ { rate: 2.8, upTo: 'infinity' },],unit: 'millionTokens',},{- name: 'textInput_cacheRead',+ name: 'textInput',strategy: 'tiered',tiers: [- { rate: 1.4, upTo: 256_000 },- { rate: 2.8, upTo: 'infinity' },+ { rate: 7, upTo: 0.256 },+ { rate: 14, upTo: 'infinity' },],unit: 'millionTokens',},@@ -40,7 +40,7 @@ const xiaomimimoChatModels: AIChatModelCard[] = [name: 'textOutput',strategy: 'tiered',tiers: [- { rate: 21, upTo: 256_000 },+ { rate: 21, upTo: 0.256 },{ rate: 42, upTo: 'infinity' },],unit: 'millionTokens',diff --git a/packages/model-runtime/src/core/openaiCompatibleFactory/index.test.ts b/packages/model-runtime/src/core/openaiCompatibleFactory/index.test.tsindex 2e9abd361c9..d0e6cbd8333 100644--- a/packages/model-runtime/src/core/openaiCompatibleFactory/index.test.ts+++ b/packages/model-runtime/src/core/openaiCompatibleFactory/index.test.ts@@ -1881,7 +1881,7 @@ describe('LobeOpenAICompatibleFactory', () => {const payload = {messages: [{ content: 'Generate data', role: 'user' as const }],- model: 'gpt-5-mini',+ model: 'gpt-5.4-mini',responseApi: true,schema: {name: 'test_tool',diff --git a/packages/model-runtime/src/providers/qwen/index.test.ts b/packages/model-runtime/src/providers/qwen/index.test.tsindex fe4de78ac34..eceb53768d5 100644--- a/packages/model-runtime/src/providers/qwen/index.test.ts+++ b/packages/model-runtime/src/providers/qwen/index.test.ts@@ -1,6 +1,8 @@// @vitest-environment nodeimport { ModelProvider } from 'model-bank';+import { beforeEach, describe, expect, it, vi } from 'vitest';+import type { LobeOpenAICompatibleRuntime } from '../../core/BaseAI';import { testProvider } from '../../providerTestUtils';import { LobeQwenAI } from './index';@@ -17,3 +19,47 @@ testProvider({skipAPICall: true,},});++let instance: LobeOpenAICompatibleRuntime;++beforeEach(() => {+ instance = new LobeQwenAI({ apiKey: 'test' });++ vi.spyOn(instance['client'].chat.completions, 'create').mockResolvedValue(+ new ReadableStream() as any,+ );+});++describe('LobeQwenAI - custom features', () => {+ describe('thinking payload mapping', () => {+ it('should only send thinking_budget for budget-only non-thinking models', async () => {+ await instance.chat({+ messages: [{ content: 'Hello', role: 'user' }],+ model: 'deepseek-r1-0528',+ thinking: {+ budget_tokens: 2048,+ },+ });++ const calledPayload = (instance['client'].chat.completions.create as any).mock.calls[0][0];++ expect(calledPayload.enable_thinking).toBeUndefined();+ expect(calledPayload.thinking_budget).toBe(2048);+ });++ it('should still force enable_thinking for dedicated thinking models', async () => {+ await instance.chat({+ messages: [{ content: 'Hello', role: 'user' }],+ model: 'qwen3-235b-a22b-thinking-2507',+ thinking: {+ budget_tokens: 4096,+ },+ });++ const calledPayload = (instance['client'].chat.completions.create as any).mock.calls[0][0];++ expect(calledPayload.enable_thinking).toBe(true);+ expect(calledPayload.thinking_budget).toBe(4096);+ });+ });+});diff --git a/packages/model-runtime/src/providers/siliconcloud/index.test.ts b/packages/model-runtime/src/providers/siliconcloud/index.test.tsindex 30a9ccc0986..9f3dbfbe1ef 100644--- a/packages/model-runtime/src/providers/siliconcloud/index.test.ts+++ b/packages/model-runtime/src/providers/siliconcloud/index.test.ts@@ -143,10 +143,10 @@ describe('LobeSiliconCloudAI - custom features', () => {expect(calledPayload.thinking_budget).toBe(1000);});- it('should only set thinking_budget when type is not provided', async () => {+ it('should only set thinking_budget for budget-only models when type is not provided', async () => {await instance.chat({messages: [{ content: 'Hello', role: 'user' }],- model: 'Qwen/Qwen3-8B',+ model: 'Pro/MiniMaxAI/MiniMax-M2.5',thinking: {budget_tokens: 1500,},@@ -156,6 +156,20 @@ describe('LobeSiliconCloudAI - custom features', () => {expect(calledPayload.enable_thinking).toBeUndefined();expect(calledPayload.thinking_budget).toBe(1500);});++ it('should not send enable_thinking for DeepSeek R1 budget-only models without type', async () => {+ await instance.chat({+ messages: [{ content: 'Hello', role: 'user' }],+ model: 'deepseek-ai/DeepSeek-R1',+ thinking: {+ budget_tokens: 2048,+ },+ });++ const calledPayload = (instance['client'].chat.completions.create as any).mock.calls[0][0];+ expect(calledPayload.enable_thinking).toBeUndefined();+ expect(calledPayload.thinking_budget).toBe(2048);+ });});describe('handleError', () => {diff --git a/packages/model-runtime/src/providers/wenxin/index.test.ts b/packages/model-runtime/src/providers/wenxin/index.test.tsindex 044f1aaecea..ddb13dbc798 100644--- a/packages/model-runtime/src/providers/wenxin/index.test.ts+++ b/packages/model-runtime/src/providers/wenxin/index.test.ts@@ -260,5 +260,20 @@ describe('LobeWenxinAI - Custom Features', () => {const result2 = params.chatCompletion!.handlePayload!(payloadWithStreamFalse as any);expect(result2.stream).toBe(true);});++ it('should only send thinking_budget for budget-only models without thinking type', () => {+ const payload = {+ messages: [{ role: 'user', content: 'Hello' }],+ model: 'deepseek-r1-250528',+ thinking: {+ budget_tokens: 2048,+ },+ };++ const result = params.chatCompletion!.handlePayload!(payload as any);++ expect(result.enable_thinking).toBeUndefined();+ expect(result.thinking_budget).toBe(2048);+ });});});diff --git a/packages/model-runtime/src/utils/modelParse.test.ts b/packages/model-runtime/src/utils/modelParse.test.tsindex 29000bafdad..cc25d7a14a9 100644--- a/packages/model-runtime/src/utils/modelParse.test.ts+++ b/packages/model-runtime/src/utils/modelParse.test.ts@@ -302,6 +302,44 @@ describe('modelParse', () => {});});+ it('xiaomimimo: should infer multimodal abilities for omni', async () => {+ const out = await processModelList(+ [{ id: 'mimo-v2-flash' }, { id: 'mimo-v2-pro' }, { id: 'mimo-v2-omni' }],+ MODEL_LIST_CONFIGS.xiaomimimo,+ 'xiaomimimo',+ );++ expect(out).toHaveLength(3);++ const flash = out.find((m) => m.id === 'mimo-v2-flash')!;+ const pro = out.find((m) => m.id === 'mimo-v2-pro')!;+ const omni = out.find((m) => m.id === 'mimo-v2-omni')!;++ expect(flash.functionCall).toBe(true);+ expect(flash.reasoning).toBe(true);+ expect(flash.vision).toBe(false);++ expect(pro.functionCall).toBe(true);+ expect(pro.reasoning).toBe(true);+ expect(pro.vision).toBe(false);++ expect(omni.functionCall).toBe(true);+ expect(omni.reasoning).toBe(true);+ expect(omni.vision).toBe(true);++ const tts = await processModelList(+ [{ id: 'mimo-v2-tts' }],+ MODEL_LIST_CONFIGS.xiaomimimo,+ 'xiaomimimo',+ );++ expect(tts).toHaveLength(1);+ expect(tts[0].functionCall).toBe(false);+ expect(tts[0].reasoning).toBe(false);+ expect(tts[0].search).toBe(false);+ expect(tts[0].vision).toBe(false);+ });+describe('Detailed capability and property processing in processModelList', () => {const config = MODEL_LIST_CONFIGS.openai;diff --git a/packages/model-runtime/src/utils/modelParse.ts b/packages/model-runtime/src/utils/modelParse.tsindex 16d0ea52fdb..f00471a4ec5 100644--- a/packages/model-runtime/src/utils/modelParse.ts+++ b/packages/model-runtime/src/utils/modelParse.ts@@ -121,9 +121,10 @@ export const MODEL_LIST_CONFIGS = {visionKeywords: ['vision', 'grok-4'],},xiaomimimo: {+ excludeKeywords: ['tts'],functionCallKeywords: ['mimo'],reasoningKeywords: ['mimo'],- visionKeywords: [],+ visionKeywords: ['omni'],},zeroone: {functionCallKeywords: ['fc'],diff --git a/src/routes/(main)/settings/provider/features/ModelList/CreateNewModelModal/ExtendParamsSelect.tsx b/src/routes/(main)/settings/provider/features/ModelList/CreateNewModelModal/ExtendParamsSelect.tsxindex d2fd8d0fa9d..08df7b02917 100644--- a/src/routes/(main)/settings/provider/features/ModelList/CreateNewModelModal/ExtendParamsSelect.tsx+++ b/src/routes/(main)/settings/provider/features/ModelList/CreateNewModelModal/ExtendParamsSelect.tsx@@ -235,10 +235,21 @@ type ExtendParamsDefinition = {};interface ExtendParamsSelectProps {- onChange?: (value: ExtendParamsType[] | undefined) => void;+ onChange?: (value: ExtendParamsType[]) => void;value?: ExtendParamsType[];}+export const normalizeExtendParamsValue = (+ value: ExtendParamsType[] | undefined,+ definitionMap: Map<ExtendParamsType, ExtendParamsDefinition>,+): ExtendParamsType[] => {+ if (!Array.isArray(value) || value.length === 0) {+ return [];+ }++ return value.filter((item) => definitionMap.has(item));+};+const PreviewContent = ({desc,hint,@@ -416,13 +427,7 @@ const ExtendParamsSelect = memo<ExtendParamsSelectProps>(({ value, onChange }) =const placeholder = String(t('providerModels.item.modelConfig.extendParams.placeholder'));const handleChange = (val: ExtendParamsType[]) => {- if (!Array.isArray(val) || val.length === 0) {- onChange?.(undefined);- return;- }-- const filtered = val.filter((item) => definitionMap.has(item));- onChange?.(filtered.length ? filtered : undefined);+ onChange?.(normalizeExtendParamsValue(val, definitionMap));};return (diff --git a/src/routes/(main)/settings/provider/features/ModelList/CreateNewModelModal/__tests__/ExtendParamsSelect.test.tsx b/src/routes/(main)/settings/provider/features/ModelList/CreateNewModelModal/__tests__/ExtendParamsSelect.test.tsxindex 6426617414d..76cece9cafc 100644--- a/src/routes/(main)/settings/provider/features/ModelList/CreateNewModelModal/__tests__/ExtendParamsSelect.test.tsx+++ b/src/routes/(main)/settings/provider/features/ModelList/CreateNewModelModal/__tests__/ExtendParamsSelect.test.tsx@@ -1,9 +1,32 @@import { describe, expect, it } from 'vitest';+import { normalizeExtendParamsValue } from '../ExtendParamsSelect';+// Import the constant directly for testing// We'll need to test the TITLE_KEY_ALIASES logicdescribe('ExtendParamsSelect', () => {+ describe('normalizeExtendParamsValue', () => {+ const definitionMap = new Map([+ ['enableReasoning', { key: 'enableReasoning' }],+ ['reasoningBudgetToken', { key: 'reasoningBudgetToken' }],+ ]) as any;++ it('should keep an explicit empty array when cleared', () => {+ expect(normalizeExtendParamsValue([], definitionMap)).toEqual([]);+ expect(normalizeExtendParamsValue(undefined, definitionMap)).toEqual([]);+ });++ it('should filter unsupported extend params while keeping valid values', () => {+ expect(+ normalizeExtendParamsValue(+ ['enableReasoning', 'unsupportedParam', 'reasoningBudgetToken'] as any,+ definitionMap,+ ),+ ).toEqual(['enableReasoning', 'reasoningBudgetToken']);+ });+ });+describe('TITLE_KEY_ALIASES mapping', () => {// This mapping should be synced with ControlsForm.tsxconst TITLE_KEY_ALIASES: Record<string, string> = {diff --git a/src/services/chat/mecha/modelParamsResolver.test.ts b/src/services/chat/mecha/modelParamsResolver.test.tsindex d4391992fda..2a61418e8ac 100644--- a/src/services/chat/mecha/modelParamsResolver.test.ts+++ b/src/services/chat/mecha/modelParamsResolver.test.ts@@ -136,7 +136,7 @@ describe('resolveModelExtendParams', () => {]);});- it('should set thinking to enabled when only reasoningBudgetToken is supported', () => {+ it('should only set thinking budget when only reasoningBudgetToken is supported', () => {const result = resolveModelExtendParams({chatConfig: {reasoningBudgetToken: 4096,@@ -147,7 +147,6 @@ describe('resolveModelExtendParams', () => {expect(result.thinking).toEqual({budget_tokens: 4096,- type: 'enabled',});});@@ -160,7 +159,6 @@ describe('resolveModelExtendParams', () => {expect(result.thinking).toEqual({budget_tokens: 1024,- type: 'enabled',});});});diff --git a/src/services/chat/mecha/modelParamsResolver.ts b/src/services/chat/mecha/modelParamsResolver.tsindex 4234dee8bc9..24a30e91766 100644--- a/src/services/chat/mecha/modelParamsResolver.ts+++ b/src/services/chat/mecha/modelParamsResolver.ts@@ -22,7 +22,7 @@ export interface ModelExtendParams {reasoning_effort?: string;thinking?: {budget_tokens?: number;- type: string;+ type?: string;};thinkingBudget?: number;thinkingLevel?: string;@@ -95,7 +95,6 @@ export const resolveModelExtendParams = (ctx: ModelParamsContext): ModelExtendPa// For models that only have reasoningBudgetToken without enableReasoningextendParams.thinking = {budget_tokens: chatConfig.reasoningBudgetToken || 1024,- type: 'enabled',};}diff --git a/src/store/user/slices/settings/selectors/__snapshots__/settings.test.ts.snap b/src/store/user/slices/settings/selectors/__snapshots__/settings.test.ts.snapindex 2290f668b95..638db791609 100644--- a/src/store/user/slices/settings/selectors/__snapshots__/settings.test.ts.snap+++ b/src/store/user/slices/settings/selectors/__snapshots__/settings.test.ts.snap@@ -56,7 +56,7 @@ exports[`settingsSelectors > currentSystemAgent > should merge DEFAULT_SYSTEM_AG},"enableAutoReply": true,"generationTopic": {- "model": "gpt-5-mini",+ "model": "gpt-5.4-mini","provider": "openai",},"historyCompress": {@@ -65,7 +65,7 @@ exports[`settingsSelectors > currentSystemAgent > should merge DEFAULT_SYSTEM_AG},"queryRewrite": {"enabled": true,- "model": "gpt-5-mini",+ "model": "gpt-5.4-mini","provider": "openai",},"replyMessage": "Custom auto reply",@@ -74,11 +74,11 @@ exports[`settingsSelectors > currentSystemAgent > should merge DEFAULT_SYSTEM_AG"provider": "anthropic",},"topic": {- "model": "gpt-5-mini",+ "model": "gpt-5.4-mini","provider": "openai",},"translation": {- "model": "gpt-5-mini",+ "model": "gpt-5.4-mini","provider": "openai",},}