🤯 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: add provider settings normalization & add Gemma 4 models (#13313)
sxjeru7fc41a967759
diff --git a/packages/model-bank/src/aiModels/google.ts b/packages/model-bank/src/aiModels/google.tsindex 2dde1bd79ac..c87e6b565d0 100644--- a/packages/model-bank/src/aiModels/google.ts+++ b/packages/model-bank/src/aiModels/google.ts@@ -17,7 +17,7 @@ const googleChatModels: AIChatModelCard[] = [vision: true,},contextWindowTokens: 1_048_576 + 65_536,- description: 'Latest release of Gemini Pro',+ description: 'Points to gemini-3.1-pro-preview',displayName: 'Gemini Pro Latest',id: 'gemini-pro-latest',maxOutput: 65_536,@@ -68,7 +68,7 @@ const googleChatModels: AIChatModelCard[] = [vision: true,},contextWindowTokens: 1_048_576 + 65_536,- description: 'Latest release of Gemini Flash',+ description: 'Points to gemini-3-flash-preview',displayName: 'Gemini Flash Latest',id: 'gemini-flash-latest',maxOutput: 65_536,@@ -95,7 +95,7 @@ const googleChatModels: AIChatModelCard[] = [vision: true,},contextWindowTokens: 1_048_576 + 65_536,- description: 'Latest release of Gemini Flash-Lite',+ description: 'Points to gemini-2.5-flash-lite-preview-09-2025',displayName: 'Gemini Flash-Lite Latest',id: 'gemini-flash-lite-latest',maxOutput: 65_536,@@ -113,6 +113,56 @@ const googleChatModels: AIChatModelCard[] = [},type: 'chat',},+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ search: true,+ vision: true,+ },+ contextWindowTokens: 262_144 + 32_768,+ displayName: 'Gemma 4 26B A4B IT',+ id: 'gemma-4-26b-a4b-it',+ maxOutput: 32_768,+ pricing: {+ units: [+ { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ settings: {+ extendParams: ['thinkingLevel4'],+ searchImpl: 'params',+ searchProvider: 'google',+ },+ type: 'chat',+ },+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ search: true,+ vision: true,+ },+ contextWindowTokens: 262_144 + 32_768,+ displayName: 'Gemma 4 31B IT',+ id: 'gemma-4-31b-it',+ maxOutput: 32_768,+ pricing: {+ units: [+ { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ settings: {+ extendParams: ['thinkingLevel4'],+ searchImpl: 'params',+ searchProvider: 'google',+ },+ type: 'chat',+ },{abilities: {imageOutput: true,@@ -316,7 +366,6 @@ const googleChatModels: AIChatModelCard[] = [description:'Gemini 3 Pro Image (Nano Banana Pro) is Google’s image generation model and also supports multimodal chat.',displayName: 'Nano Banana Pro',- enabled: true,id: 'gemini-3-pro-image-preview',maxOutput: 32_768,pricing: {@@ -508,34 +557,6 @@ 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,@@ -626,152 +647,6 @@ const googleChatModels: AIChatModelCard[] = [releasedAt: '2025-02-05',type: 'chat',},- {- abilities: {- functionCall: true,- vision: true,- },- contextWindowTokens: 1_008_192,- description:- 'Gemini 1.5 Flash 002 is an efficient multimodal model built for broad deployment.',- displayName: 'Gemini 1.5 Flash 002',- id: 'gemini-1.5-flash-002', // Deprecated on 2025-09-24- maxOutput: 8192,- pricing: {- units: [- { name: 'textInput_cacheRead', rate: 0.018, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textInput', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2024-09-25',- type: 'chat',- },- {- abilities: {- functionCall: true,- vision: true,- },- contextWindowTokens: 2_008_192,- description:- 'Gemini 1.5 Pro 002 is the latest production-ready model with higher-quality output, especially for math, long context, and vision tasks.',- displayName: 'Gemini 1.5 Pro 002',- id: 'gemini-1.5-pro-002', // Deprecated on 2025-09-24- maxOutput: 8192,- pricing: {- units: [- { name: 'textInput_cacheRead', rate: 0.3125, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2024-09-24',- type: 'chat',- },- {- abilities: {- functionCall: true,- vision: true,- },- contextWindowTokens: 1_008_192,- description: 'Gemini 1.5 Flash 8B is an efficient multimodal model built for broad deployment.',- displayName: 'Gemini 1.5 Flash 8B',- id: 'gemini-1.5-flash-8b-latest',- maxOutput: 8192,- pricing: {- units: [- { name: 'textInput_cacheRead', rate: 0.01, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textInput', rate: 0.0375, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2024-10-03',- type: 'chat',- },- {- contextWindowTokens: 32_768 + 8192,- displayName: 'Gemma 3 1B',- id: 'gemma-3-1b-it',- maxOutput: 8192,- pricing: {- units: [- { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- contextWindowTokens: 32_768 + 8192,- displayName: 'Gemma 3 4B',- id: 'gemma-3-4b-it',- maxOutput: 8192,- pricing: {- units: [- { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- contextWindowTokens: 32_768 + 8192,- displayName: 'Gemma 3 12B',- id: 'gemma-3-12b-it',- maxOutput: 8192,- pricing: {- units: [- { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- contextWindowTokens: 131_072 + 8192,- displayName: 'Gemma 3 27B',- id: 'gemma-3-27b-it',- maxOutput: 8192,- pricing: {- units: [- { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- contextWindowTokens: 2048 + 8192,- displayName: 'Gemma 3n E2B',- id: 'gemma-3n-e2b-it',- maxOutput: 2048,- pricing: {- units: [- { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- contextWindowTokens: 2048 + 8192,- displayName: 'Gemma 3n E4B',- id: 'gemma-3n-e4b-it',- maxOutput: 2048,- pricing: {- units: [- { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },];// Common parameters for Imagen modelsdiff --git a/packages/model-bank/src/aiModels/groq.ts b/packages/model-bank/src/aiModels/groq.tsindex 84de6facb30..7fd8fda31ee 100644--- a/packages/model-bank/src/aiModels/groq.ts+++ b/packages/model-bank/src/aiModels/groq.ts@@ -62,26 +62,6 @@ const groqChatModels: AIChatModelCard[] = [releasedAt: '2025-08-06',type: 'chat',},- {- abilities: {- functionCall: true,- },- contextWindowTokens: 262_144,- description:- 'The kimi-k2-0905-preview model supports a 256k context window, with stronger agentic coding, more polished and practical frontend code, and better context understanding.',- displayName: 'Kimi K2 0905',- enabled: true,- id: 'moonshotai/kimi-k2-instruct-0905',- maxOutput: 16_384,- pricing: {- units: [- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2025-09-05',- type: 'chat',- },{contextWindowTokens: 131_072,displayName: 'Llama 4 Scout (17Bx16E)',diff --git a/packages/model-bank/src/aiModels/infiniai.ts b/packages/model-bank/src/aiModels/infiniai.tsindex 42708288311..e3111936179 100644--- a/packages/model-bank/src/aiModels/infiniai.ts+++ b/packages/model-bank/src/aiModels/infiniai.ts@@ -3,6 +3,154 @@ import { type AIChatModelCard } from '../types/aiModel';// https://cloud.infini-ai.com/genstudio/modelconst infiniaiChatModels: AIChatModelCard[] = [+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ },+ contextWindowTokens: 1_048_576,+ description:+ 'DeepSeek-V4-Flash is a Mixture-of-Experts (MoE) language model in the DeepSeek V4 series designed for high throughput and deployment efficiency. With ~284B total parameters and ~13B active parameters per token, it supports up to 1M tokens context window. Compared to the flagship version, the Flash variant emphasizes inference cost, response speed, and deployment friendliness, making it suitable for large-scale online services and cost-sensitive applications. The V4 series adopts a hybrid attention architecture to improve long context efficiency, and the Flash version retains the long context, reasoning, and coding capabilities of the V4 series with a smaller active parameter scale.',+ displayName: 'DeepSeek V4 Flash',+ id: 'deepseek-v4-flash',+ maxOutput: 393_216,+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-04-24',+ settings: {+ extendParams: ['enableReasoning'],+ },+ type: 'chat',+ },+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ },+ contextWindowTokens: 1_048_576,+ description:+ 'DeepSeek-V4-Pro is the flagship Mixture-of-Experts (MoE) language model in the DeepSeek V4 series. With ~1.6T total parameters and ~49B active parameters per token, it supports up to 1M tokens context window. This model targets high-complexity scenarios such as complex reasoning, code generation, long context understanding, and agent workflows, making it suitable as a production task model requiring higher capability ceilings. The V4 series adopts a hybrid attention architecture to improve long context efficiency, allowing trade-offs between speed and inference depth based on task complexity.',+ displayName: 'DeepSeek V4 Pro',+ enabled: true,+ id: 'deepseek-v4-pro',+ maxOutput: 393_216,+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 24, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-04-24',+ settings: {+ extendParams: ['enableReasoning'],+ },+ type: 'chat',+ },+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ vision: true,+ },+ contextWindowTokens: 262_144,+ description:+ 'Kimi K2.6 is an open-source native multimodal agent model launched by Moonshot AI, targeting high-complexity scenarios such as long-range programming, code-driven design, proactive autonomous execution, and clustered task orchestration. The model adopts a MoE architecture with about 1T total parameters and 32B active parameters, supports a 256K context window, and integrates the MoonViT visual encoder, enabling stronger integrated capabilities in text, code, and visual collaboration tasks. Compared to previous generations, Kimi K2.6 emphasizes end-to-end completion capabilities in real engineering workflows, making it suitable for complex code generation and repair, front-end page and lightweight full-stack process construction, multi-agent collaborative execution, and long-term autonomous task processing.',+ displayName: 'Kimi K2.6',+ enabled: true,+ id: 'kimi-k2.6',+ maxOutput: 131_072,+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput', rate: 6.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 27, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-04-17',+ settings: {+ extendParams: ['enableReasoning'],+ },+ type: 'chat',+ },+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ vision: true,+ },+ contextWindowTokens: 262_144,+ description:+ 'Kimi K2.5 is an open-source native multimodal agent model built on Kimi-K2-Base. It combines vision and language understanding with advanced agent capabilities, instant and thinking modes, and both conversational and agentic workflows.',+ displayName: 'Kimi K2.5',+ id: 'kimi-k2.5',+ maxOutput: 65_536,+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 21, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-04-02',+ settings: {+ extendParams: ['enableReasoning'],+ },+ type: 'chat',+ },+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ },+ contextWindowTokens: 262_144,+ description:+ 'MiMo-V2-Pro is Xiaomi’s flagship base model for complex reasoning, long-document processing, and agent workflows. It uses a trillion-parameter MoE architecture with 32B active parameters, supports a 256K context window, and is optimized for Claude-compatible APIs, coding, and multi-step planning.',+ displayName: 'MiMo-V2 Pro',+ id: 'mimo-v2-pro',+ maxOutput: 262_144,+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput', rate: 7, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2.1, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-04-15',+ settings: {+ extendParams: ['enableReasoning'],+ },+ type: 'chat',+ },+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ },+ contextWindowTokens: 198_000,+ description:+ 'GLM-5.1 is GLM AI’s new generation flagship text model for Agentic Engineering.Compared with GLM-5, GLM-5.1 is further enhanced in code generation, warehouse-level engineering tasks, terminal execution and long-range agent interaction, and is more suitable for handling complex development workflows that require continuous planning, repeated trials, cross-tool collaboration and multiple rounds of debugging.',+ displayName: 'GLM-5.1',+ enabled: true,+ id: 'glm-5.1',+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 28, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-04-08',+ settings: {+ extendParams: ['enableReasoning'],+ },+ type: 'chat',+ },{abilities: {functionCall: true,@@ -12,7 +160,6 @@ const infiniaiChatModels: AIChatModelCard[] = [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',@@ -53,7 +200,6 @@ const infiniaiChatModels: AIChatModelCard[] = [description:'DeepSeek-V3.2 Thinking is the thinking mode variant of DeepSeek-V3.2, focused on reasoning tasks.',displayName: 'DeepSeek V3.2 Thinking',- enabled: true,id: 'deepseek-v3.2-thinking',maxOutput: 65_536,pricing: {@@ -98,7 +244,6 @@ const infiniaiChatModels: AIChatModelCard[] = [description:'A strong reasoning and agentic model from Z.ai with 744B total parameters (40B active), built for complex systems engineering and long-horizon tasks.',displayName: 'GLM-5',- enabled: true,id: 'glm-5',pricing: {currency: 'CNY',@@ -151,26 +296,6 @@ const infiniaiChatModels: AIChatModelCard[] = [releasedAt: '2025-11-07',type: 'chat',},- {- abilities: {- vision: true,- },- contextWindowTokens: 8192,- description:- 'DeepSeek-OCR is a vision-language model from DeepSeek AI focused on OCR and "contextual optical compression." It explores compressing contextual information from images, efficiently processes documents, and converts them into structured text formats such as Markdown. It accurately recognizes text in images, making it ideal for document digitization, text extraction, and structured processing.',- displayName: 'DeepSeek OCR',- id: 'deepseek-ocr',- maxOutput: 8192,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2025-10-20',- type: 'chat',- },{abilities: {functionCall: true,@@ -191,26 +316,6 @@ const infiniaiChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 200_000,- description:- 'MiniMax-M2 is a Mixture of Experts (MoE) language model optimized for coding and agent workflows, with approximately 230B total parameters and approximately 10B active parameters. While maintaining strong general intelligence, it is deeply enhanced for developer scenarios such as multi-file editing, code-run-fix loops, and test validation fixes, demonstrating stable and efficient performance in real environments like terminals, IDEs, and CI.',- displayName: 'MiniMax M2',- id: 'minimax-m2',- maxOutput: 200_000,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 2.1, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 8.4, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{abilities: {functionCall: true,@@ -524,59 +629,6 @@ const infiniaiChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- },- contextWindowTokens: 131_072,- description: 'Kimi K2 Instruct is a Moonshot AI LLM with ultra-long context handling.',- displayName: 'Kimi K2 Instruct',- id: 'kimi-k2-instruct',- maxOutput: 32_768,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- reasoning: true,- },- contextWindowTokens: 32_000,- description:- 'ERNIE 4.5 300B A47B is Baidu ERNIE’s ultra-large MoE model with excellent reasoning.',- displayName: 'ERNIE 4.5 300B A47B',- id: 'ernie-4.5-300b-a47b',- maxOutput: 8192,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 2.9, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 2.9, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- contextWindowTokens: 120_000,- description:- 'ERNIE 4.5 21B A3B is Baidu ERNIE’s MoE model with strong reasoning and multilingual abilities.',- displayName: 'ERNIE 4.5 21B A3B',- id: 'ernie-4.5-21b-a3b',- maxOutput: 8192,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{abilities: {functionCall: true,@@ -689,81 +741,6 @@ const infiniaiChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- vision: true,- },- contextWindowTokens: 125_000,- description:- 'The Qwen2.5-VL series improves intelligence, practicality, and applicability, performing better in natural dialogue, content creation, professional knowledge services, and code development. The flagship Qwen2.5-VL-72B-Instruct is highly competitive across benchmarks spanning many domains and tasks, including college-level QA, math, document understanding, general QA, video understanding, and visual agent tasks.',- displayName: 'Qwen2.5 VL 72B Instruct',- id: 'qwen2.5-vl-72b-instruct',- maxOutput: 4096,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- vision: true,- },- contextWindowTokens: 125_000,- description:- 'The Qwen2.5-VL series improves intelligence, practicality, and applicability, performing better in natural dialogue, content creation, professional knowledge services, and code development. Qwen2.5-VL-32B-Instruct is highly competitive across benchmarks spanning many domains and tasks, including college-level QA, math, document understanding, general QA, video understanding, and visual agent tasks.',- displayName: 'Qwen2.5 VL 32B Instruct',- id: 'qwen2.5-vl-32b-instruct',- maxOutput: 4096,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 5.8, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 5.8, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- vision: true,- },- contextWindowTokens: 125_000,- description:- 'The Qwen2.5-VL series improves intelligence, practicality, and applicability, performing better in natural dialogue, content creation, professional knowledge services, and code development. Qwen2.5-VL-7B-Instruct is highly competitive across benchmarks spanning many domains and tasks, including college-level QA, math, document understanding, general QA, video understanding, and visual agent tasks.',- displayName: 'Qwen2.5 VL 7B Instruct',- id: 'qwen2.5-vl-7b-instruct',- maxOutput: 4096,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- reasoning: true,- },- contextWindowTokens: 32_000,- description: 'QwQ 32B is a Qwen reasoning-focused model built for reasoning tasks.',- displayName: 'QwQ 32B',- id: 'qwq-32b',- maxOutput: 8192,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 2.9, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 2.9, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{contextWindowTokens: 131_072,description:@@ -833,94 +810,6 @@ const infiniaiChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- },- contextWindowTokens: 32_768,- description:- 'Qwen2.5 is the latest in the Qwen LLM series. It releases base and instruction-tuned models ranging from 0.5B to 72B parameters. Compared with Qwen2, Qwen2.5 brings:\nSignificantly more knowledge, with major gains in coding and math.\nStronger instruction following, long-text generation, structured data understanding (e.g., tables), and structured output especially JSON. More robust to diverse system prompts, improving roleplay and conditioning in chatbots.\nLong-context support.\nMultilingual support for 29+ languages, including Chinese, English, French, Spanish, Portuguese, German, Italian, Russian, Japanese, Korean, Vietnamese, Thai, Arabic, and more.',- displayName: 'Qwen2.5 32B Instruct',- id: 'qwen2.5-32b-instruct',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 2.9, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 2.9, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 32_768,- description:- 'Qwen2.5 is the latest in the Qwen LLM series. It releases base and instruction-tuned models ranging from 0.5B to 72B parameters. Compared with Qwen2, Qwen2.5 brings:\nSignificantly more knowledge, with major gains in coding and math.\nStronger instruction following, long-text generation, structured data understanding (e.g., tables), and structured output especially JSON. More robust to diverse system prompts, improving roleplay and conditioning in chatbots.\nLong-context support.\nMultilingual support for 29+ languages, including Chinese, English, French, Spanish, Portuguese, German, Italian, Russian, Japanese, Korean, Vietnamese, Thai, Arabic, and more.',- displayName: 'Qwen2.5 72B Instruct',- id: 'qwen2.5-72b-instruct',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- contextWindowTokens: 32_768,- description:- 'Qwen2.5 is the latest in the Qwen LLM series. It releases base and instruction-tuned models ranging from 0.5B to 72B parameters. Compared with Qwen2, Qwen2.5 brings:\nSignificantly more knowledge, with major gains in coding and math.\nStronger instruction following, long-text generation, structured data understanding (e.g., tables), and structured output especially JSON. More robust to diverse system prompts, improving roleplay and conditioning in chatbots.\nLong-context support.\nMultilingual support for 29+ languages, including Chinese, English, French, Spanish, Portuguese, German, Italian, Russian, Japanese, Korean, Vietnamese, Thai, Arabic, and more.',- displayName: 'Qwen2.5 14B Instruct',- id: 'qwen2.5-14b-instruct',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 32_768,- description:- 'Qwen2.5 is the latest in the Qwen LLM series. It releases base and instruction-tuned models ranging from 0.5B to 72B parameters. Compared with Qwen2, Qwen2.5 brings:\nSignificantly more knowledge, with major gains in coding and math.\nStronger instruction following, long-text generation, structured data understanding (e.g., tables), and structured output especially JSON. More robust to diverse system prompts, improving roleplay and conditioning in chatbots.\nLong-context support.\nMultilingual support for 29+ languages, including Chinese, English, French, Spanish, Portuguese, German, Italian, Russian, Japanese, Korean, Vietnamese, Thai, Arabic, and more.',- displayName: 'Qwen2.5 7B Instruct',- id: 'qwen2.5-7b-instruct',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 32_768,- description:- 'Qwen2.5-Coder is the latest code-focused Qwen LLM series. Compared to CodeQwen1.5, it brings:\nSignificant improvements in code generation, code reasoning, and code repair.\nSupport for real-world applications such as code agents, improving coding plus math and general abilities.\nLong-context support.',- displayName: 'Qwen2.5 Coder 32B Instruct',- id: 'qwen2.5-coder-32b-instruct',- maxOutput: 4096,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 2.9, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 2.9, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{contextWindowTokens: 131_072,description:diff --git a/packages/model-bank/src/aiModels/mistral.ts b/packages/model-bank/src/aiModels/mistral.tsindex d85bc527555..75d218a3c87 100644--- a/packages/model-bank/src/aiModels/mistral.ts+++ b/packages/model-bank/src/aiModels/mistral.ts@@ -4,6 +4,30 @@ import type { AIChatModelCard } from '../types/aiModel';// https://mistral.ai/pricing#api-pricingconst mistralChatModels: AIChatModelCard[] = [+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ vision: true,+ },+ contextWindowTokens: 262_144,+ description:+ 'Mistral Medium 3.5 is a frontier-class multimodal model optimized for agentic and coding use cases, released as open weights under a Modified MIT license.',+ displayName: 'Mistral Medium 3.5',+ enabled: true,+ id: 'mistral-medium-3.5',+ pricing: {+ units: [+ { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 7.5, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-04-30',+ settings: {+ extendParams: ['enableReasoning'],+ },+ type: 'chat',+ },{abilities: {functionCall: true,@@ -12,6 +36,7 @@ const mistralChatModels: AIChatModelCard[] = [description:'Devstral 2 is an enterprise-level text model that excels at using tools to explore codebases, edit multiple files, and power software engineering agents.',displayName: 'Devstral 2',+ enabled: true,id: 'devstral-2512',pricing: {units: [@@ -48,7 +73,6 @@ const mistralChatModels: AIChatModelCard[] = [description:'Mistral Medium 3.1 delivers state-of-the-art performance at 8× lower cost and simplifies enterprise deployment.',displayName: 'Mistral Medium 3.1',- enabled: true,id: 'mistral-medium-2508',pricing: {units: [@@ -130,6 +154,9 @@ const mistralChatModels: AIChatModelCard[] = [],},releasedAt: '2026-03-16',+ settings: {+ extendParams: ['enableReasoning'],+ },type: 'chat',},{@@ -154,7 +181,7 @@ const mistralChatModels: AIChatModelCard[] = [functionCall: true,vision: true,},- contextWindowTokens: 256_000,+ contextWindowTokens: 262_144,description:'Mistral Large 3, is a state-of-the-art, open-weight, general-purpose multimodal model with a granular Mixture-of-Experts architecture. It features 41B active parameters and 675B total parameters.',displayName: 'Mistral Large 3',diff --git a/packages/model-bank/src/aiModels/nebius.ts b/packages/model-bank/src/aiModels/nebius.tsindex 3c7fc02d7e3..0cadd11c2f4 100644--- a/packages/model-bank/src/aiModels/nebius.ts+++ b/packages/model-bank/src/aiModels/nebius.ts@@ -3,38 +3,6 @@ import type { AIChatModelCard } from '../types/aiModel';// https://studio.nebius.com/const nebiusChatModels: AIChatModelCard[] = [- {- abilities: {- functionCall: true,- },- contextWindowTokens: 131_072,- displayName: 'Kimi-K2-Instruct',- id: 'moonshotai/Kimi-K2-Instruct',- organization: 'moonshotai',- pricing: {- units: [- { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 2.4, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 262_144,- displayName: 'Qwen/Qwen3-Coder-480B-A35B-Instruct',- id: 'Qwen/Qwen3-Coder-480B-A35B-Instruct',- organization: 'Qwen',- pricing: {- units: [- { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 1.8, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{abilities: {functionCall: true,@@ -42,7 +10,6 @@ const nebiusChatModels: AIChatModelCard[] = [},contextWindowTokens: 131_072,displayName: 'gpt-oss-120b',- enabled: true,id: 'openai/gpt-oss-120b',organization: 'openai',pricing: {@@ -53,413 +20,6 @@ const nebiusChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 131_072,- displayName: 'gpt-oss-20b',- id: 'openai/gpt-oss-20b',- organization: 'openai',- pricing: {- units: [- { name: 'textInput', rate: 0.05, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 131_072,- displayName: 'GLM-4.5',- id: 'zai-org/GLM-4.5',- organization: 'zai-org',- pricing: {- units: [- { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 2.2, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 131_072,- displayName: 'GLM-4.5-Air',- id: 'zai-org/GLM-4.5-Air',- organization: 'zai-org',- pricing: {- units: [- { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 163_840,- displayName: 'DeepSeek-R1-0528',- id: 'deepseek-ai/DeepSeek-R1-0528',- organization: 'deepseek',- pricing: {- units: [- { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 2.4, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 32_768,- displayName: 'DeepSeek-R1-0528 (fast)',- id: 'deepseek-ai/DeepSeek-R1-0528-fast',- organization: 'deepseek',- pricing: {- units: [- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 262_144,- displayName: 'Qwen3-235B-A22B-Instruct-2507',- id: 'Qwen/Qwen3-235B-A22B-Instruct-2507',- organization: 'Qwen',- pricing: {- units: [- { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 40_960,- displayName: 'Qwen3-32B',- id: 'Qwen/Qwen3-32B',- organization: 'Qwen',- pricing: {- units: [- { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 40_960,- displayName: 'Qwen3-32B (fast)',- id: 'Qwen/Qwen3-32B-fast',- organization: 'Qwen',- pricing: {- units: [- { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 131_072,- displayName: 'Llama-3_1-Nemotron-Ultra-253B-v1',- id: 'nvidia/Llama-3_1-Nemotron-Ultra-253B-v1',- organization: 'nvidia',- pricing: {- units: [- { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 1.8, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 163_840,- displayName: 'DeepSeek-V3-0324',- id: 'deepseek-ai/DeepSeek-V3-0324',- organization: 'deepseek',- pricing: {- units: [- { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 32_768,- displayName: 'DeepSeek-V3-0324 (fast)',- id: 'deepseek-ai/DeepSeek-V3-0324-fast',- organization: 'deepseek',- pricing: {- units: [- { name: 'textInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 2.25, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 131_072,- displayName: 'Llama-3.3-70B-Instruct',- id: 'meta-llama/Llama-3.3-70B-Instruct',- organization: 'meta',- pricing: {- units: [- { name: 'textInput', rate: 0.13, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 131_072,- displayName: 'Llama-3.3-70B-Instruct (fast)',- id: 'meta-llama/Llama-3.3-70B-Instruct-fast',- organization: 'meta',- pricing: {- units: [- { name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 131_072,- displayName: 'Meta-Llama-3.1-8B-Instruct',- id: 'meta-llama/Meta-Llama-3.1-8B-Instruct',- organization: 'meta',- pricing: {- units: [- { name: 'textInput', rate: 0.02, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.06, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 131_072,- displayName: 'Meta-Llama-3.1-8B-Instruct (fast)',- id: 'meta-llama/Meta-Llama-3.1-8B-Instruct-fast',- organization: 'meta',- pricing: {- units: [- { name: 'textInput', rate: 0.03, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.09, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 32_768,- displayName: 'Qwen2.5-Coder-7B (fast)',- id: 'Qwen/Qwen2.5-Coder-7B-fast',- organization: 'Qwen',- pricing: {- units: [- { name: 'textInput', rate: 0.03, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.09, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- contextWindowTokens: 8192,- displayName: 'Gemma-2-2b-it',- id: 'google/gemma-2-2b-it',- organization: 'google',- pricing: {- units: [- { name: 'textInput', rate: 0.02, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.06, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 8192,- displayName: 'Gemma-2-9b-it (fast)',- id: 'google/gemma-2-9b-it-fast',- organization: 'google',- pricing: {- units: [- { name: 'textInput', rate: 0.03, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.09, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 131_072,- displayName: 'QwQ-32B (fast)',- id: 'Qwen/QwQ-32B-fast',- organization: 'Qwen',- pricing: {- units: [- { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 131_072,- displayName: 'Hermes-4-70B',- id: 'NousResearch/Hermes-4-70B',- organization: 'NousResearch',- pricing: {- units: [- { name: 'textInput', rate: 0.13, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 131_072,- displayName: 'Hermes-4-405B',- id: 'NousResearch/Hermes-4-405B',- organization: 'NousResearch',- pricing: {- units: [- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 262_144,- displayName: 'Qwen3-30B-A3B-Thinking-2507',- id: 'Qwen/Qwen3-30B-A3B-Thinking-2507',- organization: 'Qwen',- pricing: {- units: [- { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 262_144,- displayName: 'Qwen3-30B-A3B-Instruct-2507',- id: 'Qwen/Qwen3-30B-A3B-Instruct-2507',- organization: 'Qwen',- pricing: {- units: [- { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 262_144,- displayName: 'Qwen3-Coder-30B-A3B-Instruct',- id: 'Qwen/Qwen3-Coder-30B-A3B-Instruct',- organization: 'Qwen',- pricing: {- units: [- { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 131_072,- displayName: 'Meta-Llama-Guard-3-8B',- id: 'meta-llama/Llama-Guard-3-8B',- organization: 'meta',- pricing: {- units: [- { name: 'textInput', rate: 0.02, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.06, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{abilities: {functionCall: true,@@ -477,23 +37,6 @@ const nebiusChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- vision: true,- },- contextWindowTokens: 110_000,- displayName: 'Gemma-3-27b-it (fast)',- id: 'google/gemma-3-27b-it-fast',- organization: 'google',- pricing: {- units: [- { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{abilities: {functionCall: true,@@ -513,71 +56,8 @@ const nebiusChatModels: AIChatModelCard[] = [},];-// Models below are pending verification--// export const nebiusImageModels: AIImageModelCard[] = [-// {-// contextWindowTokens: 0,-// displayName: 'FLUX.1-dev',-// id: 'black-forest-labs/flux-dev',-// pricing: {-// units: [-// { name: 'imageGeneration', rate: 0.007, strategy: 'fixed', unit: 'image' },-// ],-// },-// type: 'image',-// },-// {-// contextWindowTokens: 0,-// displayName: 'FLUX.1-schnell',-// id: 'black-forest-labs/flux-schnell',-// pricing: {-// units: [-// { name: 'imageGeneration', rate: 0.0013, strategy: 'fixed', unit: 'image' },-// ],-// },-// type: 'image',-// },-// ];-// export const nebiusEmbeddingModels: AIEmbeddingModelCard[] = [// {-// contextWindowTokens: 32_768,-// displayName: 'BGE-ICL',-// id: 'BAAI/bge-en-icl',-// maxDimension: 3072,-// pricing: {-// units: [-// { name: 'textInput', rate: 0.01, strategy: 'fixed', unit: 'millionTokens' },-// ],-// },-// type: 'embedding',-// },-// {-// contextWindowTokens: 8192,-// displayName: 'bge-multilingual-gemma2',-// id: 'BAAI/bge-multilingual-gemma2',-// maxDimension: 3072,-// pricing: {-// units: [-// { name: 'textInput', rate: 0.01, strategy: 'fixed', unit: 'millionTokens' },-// ],-// },-// type: 'embedding',-// },-// {-// contextWindowTokens: 32_768,-// displayName: 'e5-mistral-7b-instruct',-// id: 'intfloat/e5-mistral-7b-instruct',-// maxDimension: 1536,-// pricing: {-// units: [-// { name: 'textInput', rate: 0.01, strategy: 'fixed', unit: 'millionTokens' },-// ],-// },-// type: 'embedding',-// },-// {// contextWindowTokens: 40_960,// displayName: 'Qwen3-Embedding-8B',// id: 'Qwen/Qwen3-Embedding-8B',diff --git a/packages/model-bank/src/aiModels/nvidia.ts b/packages/model-bank/src/aiModels/nvidia.tsindex 9c87f25d47f..5f3110be9cb 100644--- a/packages/model-bank/src/aiModels/nvidia.ts+++ b/packages/model-bank/src/aiModels/nvidia.ts@@ -7,11 +7,8 @@ const nvidiaChatModels: AIChatModelCard[] = [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',+ displayName: 'MiniMax-M2.7',+ id: 'minimaxai/minimax-m2.7',maxOutput: 131_072,type: 'chat',},@@ -19,19 +16,11 @@ const nvidiaChatModels: AIChatModelCard[] = [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'],},+ contextWindowTokens: 204_800,+ displayName: 'MiniMax-M2.5',+ id: 'minimaxai/minimax-m2.5',+ maxOutput: 131_072,type: 'chat',},{@@ -76,7 +65,6 @@ const nvidiaChatModels: AIChatModelCard[] = [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',- enabled: true,id: 'z-ai/glm5',maxOutput: 131_072,settings: {@@ -117,22 +105,6 @@ const nvidiaChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 131_072,- description:- 'DeepSeek V3.1 is a next-gen reasoning model with stronger complex reasoning and chain-of-thought for deep analysis tasks.',- displayName: 'DeepSeek V3.1',- id: 'deepseek-ai/deepseek-v3.1',- maxOutput: 16_384,- settings: {- extendParams: ['enableReasoning'],- },- type: 'chat',- },{abilities: {functionCall: true,@@ -203,17 +175,6 @@ const nvidiaChatModels: AIChatModelCard[] = [id: 'meta/llama-3.1-70b-instruct',type: 'chat',},- {- abilities: {- functionCall: true,- },- contextWindowTokens: 128_000,- description:- 'An advanced LLM supporting synthetic data generation, knowledge distillation, and reasoning for chatbots, coding, and domain tasks.',- displayName: 'Llama 3.1 405B Instruct',- id: 'meta/llama-3.1-405b-instruct',- type: 'chat',- },{contextWindowTokens: 32_768,description: 'A distinctive language model delivering exceptional accuracy and efficiency.',@@ -236,22 +197,6 @@ const nvidiaChatModels: AIChatModelCard[] = [id: 'google/gemma-2-2b-it',type: 'chat',},- {- contextWindowTokens: 8192,- description:- 'A frontier text generation model strong in understanding, transformation, and code generation.',- displayName: 'Gemma 2 9B Instruct',- id: 'google/gemma-2-9b-it',- type: 'chat',- },- {- contextWindowTokens: 8192,- description:- 'A frontier text generation model strong in understanding, transformation, and code generation.',- displayName: 'Gemma 2 27B Instruct',- id: 'google/gemma-2-27b-it',- type: 'chat',- },{abilities: {functionCall: true,diff --git a/packages/model-bank/src/aiModels/ollamacloud.ts b/packages/model-bank/src/aiModels/ollamacloud.tsindex 0e5be596848..6180c05cc83 100644--- a/packages/model-bank/src/aiModels/ollamacloud.ts+++ b/packages/model-bank/src/aiModels/ollamacloud.ts@@ -28,6 +28,17 @@ const ollamaCloudModels: AIChatModelCard[] = [id: 'glm-5.1',type: 'chat',},+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ vision: true,+ },+ contextWindowTokens: 262_144,+ displayName: 'Gemma 4 31B',+ id: 'gemma4:31b',+ type: 'chat',+ },{abilities: {functionCall: true,diff --git a/packages/model-bank/src/aiModels/openai.ts b/packages/model-bank/src/aiModels/openai.tsindex 43a1df6efde..0dc077e269a 100644--- a/packages/model-bank/src/aiModels/openai.ts+++ b/packages/model-bank/src/aiModels/openai.ts@@ -10,6 +10,31 @@ import {import { gptImage1Schema, gptImage2Schema } from './lobehub';export const openaiChatModels: AIChatModelCard[] = [+ {+ abilities: {+ functionCall: true,+ search: true,+ structuredOutput: true,+ vision: true,+ },+ contextWindowTokens: 400_000,+ description: 'Latest Instant model used in ChatGPT.',+ displayName: 'Chat Latest',+ id: 'chat-latest',+ maxOutput: 128_000,+ pricing: {+ units: [+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-05-05',+ settings: {+ searchImpl: 'params',+ },+ type: 'chat',+ },{abilities: {functionCall: true,@@ -108,68 +133,6 @@ export const openaiChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- reasoning: true,- search: true,- structuredOutput: true,- vision: true,- },- contextWindowTokens: 1_050_000,- description:- 'GPT-5.5 is the frontier model for the most complex professional work, coding, and agentic tasks.',- displayName: 'GPT-5.5',- enabled: true,- id: 'gpt-5.5',- maxOutput: 128_000,- pricing: {- units: [- {- lookup: {- prices: {- '[0, 0.272]': 5,- '[0.272, infinity]': 10,- },- pricingParams: ['textInput'],- },- name: 'textInput',- strategy: 'lookup',- unit: 'millionTokens',- },- {- lookup: {- prices: {- '[0, 0.272]': 0.5,- '[0.272, infinity]': 1,- },- pricingParams: ['textInput'],- },- name: 'textInput_cacheRead',- strategy: 'lookup',- unit: 'millionTokens',- },- {- lookup: {- prices: {- '[0, 0.272]': 30,- '[0.272, infinity]': 45,- },- pricingParams: ['textInput'],- },- name: 'textOutput',- strategy: 'lookup',- unit: 'millionTokens',- },- ],- },- releasedAt: '2026-04-23',- settings: {- extendParams: ['gpt5_2ReasoningEffort', 'textVerbosity'],- searchImpl: 'params',- },- type: 'chat',- },{abilities: {functionCall: true,@@ -1296,59 +1259,6 @@ export const openaiChatModels: AIChatModelCard[] = [releasedAt: '2024-04-09',type: 'chat',},- {- abilities: {- functionCall: true,- },- contextWindowTokens: 128_000,- description:- 'The latest GPT-4 Turbo adds vision. Visual requests support JSON mode and function calling. It is a cost-effective multimodal model that balances accuracy and efficiency for real-time applications.',- displayName: 'GPT-4 Turbo Preview',- id: 'gpt-4-turbo-preview',- pricing: {- units: [- { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 128_000,- description:- 'The latest GPT-4 Turbo adds vision. Visual requests support JSON mode and function calling. It is a cost-effective multimodal model that balances accuracy and efficiency for real-time applications.',- displayName: 'GPT-4 Turbo Preview 0125',- id: 'gpt-4-0125-preview',- pricing: {- units: [- { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2024-01-25',- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 128_000,- description:- 'The latest GPT-4 Turbo adds vision. Visual requests support JSON mode and function calling. It is a cost-effective multimodal model that balances accuracy and efficiency for real-time applications.',- displayName: 'GPT-4 Turbo Preview 1106',- id: 'gpt-4-1106-preview',- pricing: {- units: [- { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2023-11-06',- type: 'chat',- },{abilities: {functionCall: true,diff --git a/packages/model-bank/src/aiModels/openrouter.ts b/packages/model-bank/src/aiModels/openrouter.tsindex 053cfe35cb6..fde418350d2 100644--- a/packages/model-bank/src/aiModels/openrouter.ts+++ b/packages/model-bank/src/aiModels/openrouter.ts@@ -107,17 +107,6 @@ const openrouterChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- reasoning: true,- },- contextWindowTokens: 40_960,- description:- 'Qwen3 is the latest Qwen LLM generation with dense and MoE architectures, excelling at reasoning, multilingual support, and advanced agent tasks. Its unique ability to switch between a thinking mode for complex reasoning and a non-thinking mode for efficient chat ensures versatile, high-quality performance.\n\nQwen3 significantly outperforms prior models like QwQ and Qwen2.5, delivering excellent math, coding, commonsense reasoning, creative writing, and interactive chat. The Qwen3-30B-A3B variant has 30.5B parameters (3.3B active), 48 layers, 128 experts (8 active per task), and supports up to 131K context with YaRN, setting a new bar for open models.',- displayName: 'Qwen3 30B A3B (Free)',- id: 'qwen/qwen3-30b-a3b:free',- type: 'chat',- },{abilities: {reasoning: true,@@ -136,29 +125,6 @@ const openrouterChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- reasoning: true,- },- contextWindowTokens: 40_960,- description:- 'Qwen3-8B is a dense 8.2B-parameter causal LLM built for reasoning-heavy tasks and efficient chat. It switches between a thinking mode for math, coding, and logic and a non-thinking mode for general chat. Fine-tuned for instruction following, agent integration, and creative writing across 100+ languages and dialects. It natively supports 32K context and scales to 131K with YaRN.',- displayName: 'Qwen3 8B (Free)',- id: 'qwen/qwen3-8b:free',- maxOutput: 40_960,- type: 'chat',- },- {- abilities: {- reasoning: true,- },- contextWindowTokens: 40_960,- description:- 'Qwen3-14B is a dense 14.8B-parameter causal LLM built for complex reasoning and efficient chat. It switches between a thinking mode for math, coding, and logic and a non-thinking mode for general chat. Fine-tuned for instruction following, agent tool use, and creative writing across 100+ languages and dialects. It natively handles 32K context and scales to 131K with YaRN.',- displayName: 'Qwen3 14B (Free)',- id: 'qwen/qwen3-14b:free',- type: 'chat',- },{abilities: {reasoning: true,@@ -177,17 +143,6 @@ const openrouterChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- reasoning: true,- },- contextWindowTokens: 40_960,- description:- 'Qwen3-32B is a dense 32.8B-parameter causal LLM optimized for complex reasoning and efficient chat. It switches between a thinking mode for math, coding, and logic and a non-thinking mode for faster general chat. It performs strongly on instruction following, agent tool use, and creative writing across 100+ languages and dialects. It natively handles 32K context and scales to 131K with YaRN.',- displayName: 'Qwen3 32B (Free)',- id: 'qwen/qwen3-32b:free',- type: 'chat',- },{abilities: {reasoning: true,@@ -205,17 +160,6 @@ const openrouterChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- reasoning: true,- },- contextWindowTokens: 131_072,- description:- 'Qwen3-235B-A22B is a 235B-parameter MoE model from Qwen with 22B active per forward pass. It switches between a thinking mode for complex reasoning, math, and code and a non-thinking mode for efficient chat. It offers strong reasoning, multilingual support (100+ languages/dialects), advanced instruction following, and agent tool use. It natively handles 32K context and scales to 131K with YaRN.',- displayName: 'Qwen3 235B A22B (Free)',- id: 'qwen/qwen3-235b-a22b:free',- type: 'chat',- },{abilities: {reasoning: true,@@ -234,62 +178,6 @@ const openrouterChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- reasoning: true,- },- contextWindowTokens: 163_840,- description:- 'DeepSeek-R1T-Chimera is created by merging DeepSeek-R1 and DeepSeek-V3 (0324), combining R1 reasoning with V3 token efficiency. It is based on the DeepSeek-MoE Transformer and optimized for general text generation.\n\nIt merges pretrained weights to balance reasoning, efficiency, and instruction following. Released under the MIT license for research and commercial use.',- displayName: 'DeepSeek R1T Chimera (Free)',- id: 'tngtech/deepseek-r1t-chimera:free',- type: 'chat',- },- {- abilities: {- reasoning: true,- },- contextWindowTokens: 32_000,- description:- 'GLM Z1 Rumination 32B is a 32B deep reasoning model in the GLM-4-Z1 series, optimized for complex open-ended tasks that require long thinking. Built on glm-4-32b-0414, it adds extra RL stages and multi-stage alignment, introducing a “rumination” capability that simulates extended cognitive processing. This includes iterative reasoning, multi-hop analysis, and tool-augmented workflows such as search, retrieval, and citation-aware synthesis.\n\nIt excels at research writing, comparative analysis, and complex QA. It supports function calling for search/navigation primitives (`search`, `click`, `open`, `finish`) for agent pipelines. Rumination behavior is controlled by multi-round loops with rule-based reward shaping and delayed decision mechanisms, benchmarked against deep research frameworks like OpenAI’s internal alignment stack. This variant is for depth over speed.',- displayName: 'GLM Z1 Rumination 32B',- id: 'thudm/glm-z1-rumination-32b',- pricing: {- units: [- { name: 'textInput', rate: 0.24, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.24, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- reasoning: true,- },- contextWindowTokens: 32_768,- description:- 'GLM-Z1-32B-0414 is an enhanced reasoning variant of GLM-4-32B, built for deep math, logic, and code-focused problem solving. It applies expanded RL (task-specific and general pairwise preference) to improve complex multi-step tasks. Compared to GLM-4-32B, Z1 significantly improves structured reasoning and formal-domain capability.\n\nIt supports enforcing “thinking” steps via prompt engineering, improved coherence for long outputs, and is optimized for agent workflows with long context (via YaRN), JSON tool calling, and fine-grained sampling for stable reasoning. Ideal for use cases requiring careful multi-step or formal derivations.',- displayName: 'GLM Z1 32B',- id: 'thudm/glm-z1-32b',- pricing: {- units: [- { name: 'textInput', rate: 0.24, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.24, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- reasoning: true,- },- contextWindowTokens: 32_000,- description:- 'GLM-4-32B-0414 is a 32B bilingual (Chinese/English) open-weights model optimized for code generation, function calling, and agent tasks. It is pretrained on 15T high-quality and reasoning-heavy data and further refined with human preference alignment, rejection sampling, and RL. It excels at complex reasoning, artifact generation, and structured output, reaching GPT-4o and DeepSeek-V3-0324-level performance on multiple benchmarks.',- displayName: 'GLM 4 32B (Free)',- id: 'thudm/glm-4-32b:free',- type: 'chat',- },{abilities: {reasoning: true,@@ -367,46 +255,6 @@ const openrouterChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- reasoning: true,- vision: true,- },- contextWindowTokens: 1_048_576,- description:- 'Gemini 2.5 Flash is Google’s most advanced flagship model, built for advanced reasoning, coding, math, and science tasks. It includes built-in “thinking” to deliver higher-accuracy responses with finer context processing.\n\nNote: This model has two variants—thinking and non-thinking. Output pricing differs significantly depending on whether thinking is enabled. If you choose the standard variant (without the “:thinking” suffix), the model will explicitly avoid generating thinking tokens.\n\nTo use thinking and receive thinking tokens, you must select the “:thinking” variant, which incurs higher thinking output pricing.\n\nGemini 2.5 Flash can also be configured via the “max reasoning tokens” parameter as documented (https://openrouter.ai/docs/use-cases/reasoning-tokens#max-tokens-for-reasoning).',- displayName: 'Gemini 2.5 Flash Preview',- id: 'google/gemini-2.5-flash-preview',- maxOutput: 65_535,- pricing: {- units: [- { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- vision: true,- },- contextWindowTokens: 1_048_576,- description:- 'Gemini 2.5 Flash is Google’s most advanced flagship model, built for advanced reasoning, coding, math, and science tasks. It includes built-in “thinking” to deliver higher-accuracy responses with finer context processing.\n\nNote: This model has two variants—thinking and non-thinking. Output pricing differs significantly depending on whether thinking is enabled. If you choose the standard variant (without the “:thinking” suffix), the model will explicitly avoid generating thinking tokens.\n\nTo use thinking and receive thinking tokens, you must select the “:thinking” variant, which incurs higher thinking output pricing.\n\nGemini 2.5 Flash can also be configured via the “max reasoning tokens” parameter as documented (https://openrouter.ai/docs/use-cases/reasoning-tokens#max-tokens-for-reasoning).',- displayName: 'Gemini 2.5 Flash Preview (thinking)',- id: 'google/gemini-2.5-flash-preview:thinking',- maxOutput: 65_535,- pricing: {- units: [- { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{abilities: {functionCall: true,@@ -576,44 +424,6 @@ const openrouterChatModels: AIChatModelCard[] = [releasedAt: '2025-01-31',type: 'chat',},- {- abilities: {- reasoning: true,- },- contextWindowTokens: 128_000,- description:- 'o1-mini is a fast, cost-effective reasoning model designed for coding, math, and science. It has 128K context and an October 2023 knowledge cutoff.',- displayName: 'o1-mini',- id: 'openai/o1-mini',- maxOutput: 65_536,- pricing: {- units: [- { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2024-09-12',- type: 'chat',- },- {- abilities: {- reasoning: true,- },- contextWindowTokens: 128_000,- description:- 'o1 is OpenAI’s new reasoning model for complex tasks requiring broad knowledge. It has 128K context and an October 2023 knowledge cutoff.',- displayName: 'o1-preview',- id: 'openai/o1-preview',- maxOutput: 32_768,- pricing: {- units: [- { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 60, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2024-09-12',- type: 'chat',- },{abilities: {functionCall: true,@@ -670,18 +480,6 @@ const openrouterChatModels: AIChatModelCard[] = [releasedAt: '2025-05-28',type: 'chat',},- {- abilities: {- reasoning: true,- },- contextWindowTokens: 163_840,- description:- 'DeepSeek-R1 greatly improves reasoning with minimal labeled data and outputs a chain-of-thought before the final answer to improve accuracy.',- displayName: 'DeepSeek R1 0528 (Free)',- id: 'deepseek/deepseek-r1-0528:free',- releasedAt: '2025-05-28',- type: 'chat',- },{abilities: {reasoning: true,@@ -700,18 +498,6 @@ const openrouterChatModels: AIChatModelCard[] = [releasedAt: '2025-01-20',type: 'chat',},- {- abilities: {- reasoning: true,- },- contextWindowTokens: 163_840,- description:- 'DeepSeek-R1 greatly improves reasoning with minimal labeled data and outputs a chain-of-thought before the final answer to improve accuracy.',- displayName: 'DeepSeek R1 (Free)',- id: 'deepseek/deepseek-r1:free',- releasedAt: '2025-01-20',- type: 'chat',- },{contextWindowTokens: 163_840,description:@@ -727,14 +513,6 @@ const openrouterChatModels: AIChatModelCard[] = [},type: 'chat',},- {- contextWindowTokens: 163_840,- description:- 'DeepSeek V3 is a 685B-parameter MoE model and the latest iteration of DeepSeek’s flagship chat series.\n\nIt builds on [DeepSeek V3](/deepseek/deepseek-chat-v3) and performs strongly across tasks.',- displayName: 'DeepSeek V3 0324 (Free)',- id: 'deepseek/deepseek-chat-v3-0324:free',- type: 'chat',- },{abilities: {functionCall: true,@@ -843,33 +621,6 @@ const openrouterChatModels: AIChatModelCard[] = [releasedAt: '2024-11-05',type: 'chat',},- {- abilities: {- functionCall: true,- vision: true,- },- contextWindowTokens: 200_000,- description:- 'Claude 3.5 Sonnet offers capability beyond Opus and faster speed than Sonnet while keeping Sonnet pricing. It is especially strong at coding, data science, vision, and agent tasks.',- displayName: 'Claude 3.5 Sonnet',- id: 'anthropic/claude-3.5-sonnet',- maxOutput: 8192,- pricing: {- units: [- { name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },- {- lookup: { prices: { '5m': 3.75 }, pricingParams: ['ttl'] },- name: 'textInput_cacheWrite',- strategy: 'lookup',- unit: 'millionTokens',- },- ],- },- releasedAt: '2024-06-20',- type: 'chat',- },{abilities: {functionCall: true,@@ -949,52 +700,6 @@ const openrouterChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- vision: true,- },- contextWindowTokens: 200_000,- description:- 'Claude 3 Opus is Anthropic’s most powerful model for highly complex tasks, excelling in performance, intelligence, fluency, and comprehension.',- displayName: 'Claude 3 Opus',- id: 'anthropic/claude-3-opus',- maxOutput: 4096,- pricing: {- units: [- { name: 'textInput_cacheRead', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 75, strategy: 'fixed', unit: 'millionTokens' },- {- lookup: { prices: { '5m': 18.75 }, pricingParams: ['ttl'] },- name: 'textInput_cacheWrite',- strategy: 'lookup',- unit: 'millionTokens',- },- ],- },- releasedAt: '2024-02-29',- type: 'chat',- },- {- abilities: {- functionCall: true,- vision: true,- },- contextWindowTokens: 1_008_192,- description:- 'Gemini 1.5 Flash provides optimized multimodal processing for a range of complex tasks.',- displayName: 'Gemini 1.5 Flash',- id: 'google/gemini-flash-1.5',- maxOutput: 8192,- pricing: {- units: [- { name: 'textInput', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{abilities: {functionCall: true,@@ -1016,25 +721,6 @@ const openrouterChatModels: AIChatModelCard[] = [releasedAt: '2025-02-05',type: 'chat',},- {- abilities: {- functionCall: true,- vision: true,- },- contextWindowTokens: 2_008_192,- description:- 'Gemini 1.5 Pro combines the latest optimizations for more efficient multimodal data processing.',- displayName: 'Gemini 1.5 Pro',- id: 'google/gemini-pro-1.5',- maxOutput: 8192,- pricing: {- units: [- { name: 'textInput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 10.5, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{abilities: {vision: true,@@ -1080,29 +766,6 @@ const openrouterChatModels: AIChatModelCard[] = [id: 'meta-llama/llama-3.3-70b-instruct:free',type: 'chat',},- {- contextWindowTokens: 32_768,- description:- 'Qwen2 is a new large language model family with stronger understanding and generation.',- displayName: 'Qwen2 7B (Free)',- id: 'qwen/qwen-2-7b-instruct:free',- type: 'chat',- },- {- contextWindowTokens: 131_072,- description:- 'LLaMA 3.1 offers multilingual support and is one of the leading generative models.',- displayName: 'Llama 3.1 8B (Free)',- id: 'meta-llama/llama-3.1-8b-instruct:free',- type: 'chat',- },- {- contextWindowTokens: 8192,- description: 'Gemma 2 is Google’s lightweight open-source text model family.',- displayName: 'Gemma 2 9B (Free)',- id: 'google/gemma-2-9b-it:free',- type: 'chat',- },];export const allModels = [...openrouterChatModels];diff --git a/packages/model-bank/src/aiModels/qwen.ts b/packages/model-bank/src/aiModels/qwen.tsindex 75bf2bedd03..325968be5c0 100644--- a/packages/model-bank/src/aiModels/qwen.ts+++ b/packages/model-bank/src/aiModels/qwen.ts@@ -15,17 +15,19 @@ const qwenChatModels: AIChatModelCard[] = [},contextWindowTokens: 262_144,description:- "Kimi K2.6 is Kimi's latest and most capable model, delivering stronger long-horizon coding, instruction following, and self-correction while supporting text, image, and video inputs plus chat and agent tasks.",+ 'Kimi-K2.6 is a large language model launched by Moonshot AI, with excellent coding and tool calling capabilities. Service deployment is only supported in mainland China.',displayName: 'Kimi K2.6',id: 'kimi-k2.6',- maxOutput: 32_768,+ maxOutput: 98_304,pricing: {currency: 'CNY',units: [{ name: 'textInput', rate: 6.5, strategy: 'fixed', unit: 'millionTokens' },{ name: 'textOutput', rate: 27, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput_cacheRead', rate: 6.5 * 0.2, strategy: 'fixed', unit: 'millionTokens' },],},+ releasedAt: '2026-04-21',settings: {extendParams: ['enableReasoning', 'reasoningBudgetToken'],},@@ -387,12 +389,12 @@ const qwenChatModels: AIChatModelCard[] = [functionCall: true,reasoning: true,},- contextWindowTokens: 202_752,+ contextWindowTokens: 202_745,description:- 'GLM-5.1 is Zhipu’s latest flagship model, aligned with Claude Opus 4.6 on overall and coding capabilities. It excels at long-horizon tasks, able to autonomously plan, execute, and iterate for up to 8 hours in a single task, making it an ideal foundation for Autonomous Agents and long-horizon Coding Agents.',+ 'The GLM series is a hybrid reasoning model from Zhipu AI built for agents, with thinking and non-thinking modes. GLM-5.1 is the latest flagship variant for long-horizon agentic engineering and complex development workflows.',displayName: 'GLM-5.1',id: 'glm-5.1',- maxOutput: 16_384,+ maxOutput: 131_072,pricing: {currency: 'CNY',units: [@@ -422,6 +424,7 @@ const qwenChatModels: AIChatModelCard[] = [},],},+ releasedAt: '2026-04-14',settings: {extendParams: ['enableReasoning', 'reasoningBudgetToken'],},@@ -922,19 +925,19 @@ const qwenChatModels: AIChatModelCard[] = [},contextWindowTokens: 262_144,description:- 'The Qwen3.6 35B-A3B native vision-language model is built on a hybrid architecture that integrates a linear attention mechanism with a sparse Mixture-of-Experts (MoE) design, achieving higher inference efficiency. Compared to the 3.5-35B-A3B model, it delivers significant improvements in agentic coding capabilities, mathematical reasoning, code reasoning, spatial intelligence, as well as object localization and target detection.',- displayName: 'Qwen3.6-35B-A3B',- id: 'qwen3.6-35b-a3b',+ 'Qwen3.6 27B is an open-source dense model with strong performance in reasoning, coding, and general capabilities. It supports thinking mode by default, offering balanced performance and efficiency.',+ displayName: 'Qwen3.6-27B',+ id: 'qwen3.6-27b',maxOutput: 65_536,organization: 'Qwen',pricing: {currency: 'CNY',units: [- { name: 'textInput', rate: 1.8, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 10.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 18, strategy: 'fixed', unit: 'millionTokens' },],},- releasedAt: '2026-04-16',+ releasedAt: '2026-04-23',settings: {extendParams: ['enableReasoning', 'reasoningBudgetToken'],},@@ -949,19 +952,19 @@ const qwenChatModels: AIChatModelCard[] = [},contextWindowTokens: 262_144,description:- 'The Qwen 3.6 series 27B is a native vision-language dense model. Compared to version 3.5-27B, it delivers significant improvements in agentic coding capabilities, with further enhancements in STEM performance and reasoning ability. On the visual side, it shows notable gains in spatial intelligence, object localization, and detection, while also steadily improving in video understanding, document OCR, and visual agent capabilities.',- displayName: 'Qwen3.6-27B',- id: 'qwen3.6-27b',+ 'The Qwen3.6 35B-A3B native vision-language model is built on a hybrid architecture that integrates a linear attention mechanism with a sparse Mixture-of-Experts (MoE) design, achieving higher inference efficiency. Compared to the 3.5-35B-A3B model, it delivers significant improvements in agentic coding capabilities, mathematical reasoning, code reasoning, spatial intelligence, as well as object localization and target detection.',+ displayName: 'Qwen3.6-35B-A3B',+ id: 'qwen3.6-35b-a3b',maxOutput: 65_536,organization: 'Qwen',pricing: {currency: 'CNY',units: [- { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 18, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 1.8, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 10.8, strategy: 'fixed', unit: 'millionTokens' },],},- releasedAt: '2026-04-22',+ releasedAt: '2026-04-16',settings: {extendParams: ['enableReasoning', 'reasoningBudgetToken'],},@@ -1553,51 +1556,30 @@ const qwenChatModels: AIChatModelCard[] = [currency: 'CNY',units: [{- lookup: {- prices: {- '[0, 0.256]': 1.2 * 0.1,- '[0.256, infinity]': 4.8 * 0.1,- },- pricingParams: ['textInputRange'],- },- name: 'textInput_cacheRead',- strategy: 'lookup',- unit: 'millionTokens',- },- {- lookup: {- prices: {- '[0, 0.256]': 1.2 * 1.25,- '[0.256, infinity]': 4.8 * 1.25,- },- pricingParams: ['textInputRange'],- },- name: 'textInput_cacheWrite',- strategy: 'lookup',+ name: 'textInput',+ strategy: 'tiered',+ tiers: [+ { rate: 1.2, upTo: 0.256 },+ { rate: 4.8, upTo: 'infinity' },+ ],unit: 'millionTokens',},{- lookup: {- prices: {- '[0, 0.256]': 1.2,- '[0.256, infinity]': 4.8,- },- pricingParams: ['textInputRange'],- },- name: 'textInput',- strategy: 'lookup',+ name: 'textOutput',+ strategy: 'tiered',+ tiers: [+ { rate: 7.2, upTo: 0.256 },+ { rate: 28.8, upTo: 'infinity' },+ ],unit: 'millionTokens',},{- lookup: {- prices: {- '[0, 0.256]': 7.2,- '[0.256, infinity]': 28.8,- },- pricingParams: ['textInputRange'],- },- name: 'textOutput',- strategy: 'lookup',+ name: 'textInput_cacheRead',+ strategy: 'tiered',+ tiers: [+ { rate: 1.2 * 0.2, upTo: 0.256 },+ { rate: 4.8 * 0.2, upTo: 'infinity' },+ ],unit: 'millionTokens',},],@@ -2338,43 +2320,11 @@ const qwenChatModels: AIChatModelCard[] = [pricing: {currency: 'CNY',units: [- {- lookup: {- prices: {- '[0, 0.128]': 0.8,- '[0.128, 0.256]': 2,- },- pricingParams: ['textInputRange'],- },- name: 'textInput',- strategy: 'lookup',- unit: 'millionTokens',- },- { name: 'audioInput', rate: 4.96, strategy: 'fixed', unit: 'millionTokens' },- {- lookup: {- prices: {- '[0, 0.128]': 0.8,- '[0.128, infinity]': 2,- },- pricingParams: ['textInputRange'],- },- name: 'imageInput',- strategy: 'lookup',- unit: 'millionTokens',- },- {- lookup: {- prices: {- '[0, 0.128]': 9.6,- '[0.128, 0.256]': 24,- },- pricingParams: ['textInputRange'],- },- name: 'textOutput',- strategy: 'lookup',- unit: 'millionTokens',- },+ { name: 'textInput', rate: 7, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioInput', rate: 53, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'imageInput', rate: 7, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 40, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioOutput', rate: 213, strategy: 'fixed', unit: 'millionTokens' },],},releasedAt: '2026-03-30',@@ -2402,43 +2352,11 @@ const qwenChatModels: AIChatModelCard[] = [pricing: {currency: 'CNY',units: [- {- lookup: {- prices: {- '[0, 0.128]': 0.2,- '[0.128, 0.256]': 0.8,- },- pricingParams: ['textInputRange'],- },- name: 'textInput',- strategy: 'lookup',- unit: 'millionTokens',- },- { name: 'audioInput', rate: 1.24, strategy: 'fixed', unit: 'millionTokens' },- {- lookup: {- prices: {- '[0, 0.128]': 0.2,- '[0.128, infinity]': 0.8,- },- pricingParams: ['textInputRange'],- },- name: 'imageInput',- strategy: 'lookup',- unit: 'millionTokens',- },- {- lookup: {- prices: {- '[0, 0.128]': 4,- '[0.128, 0.256]': 16,- },- pricingParams: ['textInputRange'],- },- name: 'textOutput',- strategy: 'lookup',- unit: 'millionTokens',- },+ { name: 'textInput', rate: 2.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioInput', rate: 18, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'imageInput', rate: 2.2, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 13.3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioOutput', rate: 72, strategy: 'fixed', unit: 'millionTokens' },],},releasedAt: '2026-03-30',@@ -2471,6 +2389,7 @@ const qwenChatModels: AIChatModelCard[] = [{ name: 'audioInput', rate: 15.8, strategy: 'fixed', unit: 'millionTokens' },{ name: 'imageInput', rate: 3.3, strategy: 'fixed', unit: 'millionTokens' },{ name: 'textOutput', rate: 6.9, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'audioOutput', rate: 62.6, strategy: 'fixed', unit: 'millionTokens' },],},releasedAt: '2025-12-04',diff --git a/packages/model-bank/src/aiModels/siliconcloud.ts b/packages/model-bank/src/aiModels/siliconcloud.tsindex 88c65b24adf..3bb8619042f 100644--- a/packages/model-bank/src/aiModels/siliconcloud.ts+++ b/packages/model-bank/src/aiModels/siliconcloud.ts@@ -6,6 +6,102 @@ import {// https://siliconflow.cn/zh-cn/modelsconst siliconcloudChatModels: AIChatModelCard[] = [+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ },+ contextWindowTokens: 1_048_576,+ description:+ 'DeepSeek-V4-Flash is a preview version of the MoE language model in the DeepSeek-V4 series. The total parameter size is 284B, the activation parameter size is 13B, and it supports 1M tokens ultra-long context.The model uses a hybrid attention architecture that combines CSA and HCA, and introduces mHC and Muon Optimizer to improve long-context reasoning efficiency, training stability, and overall performance.',+ displayName: 'DeepSeek V4 Flash',+ enabled: true,+ id: 'deepseek-ai/DeepSeek-V4-Flash',+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-04-24',+ settings: {+ extendParams: ['enableReasoning', 'reasoningBudgetToken'],+ },+ type: 'chat',+ },+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ vision: true,+ },+ contextWindowTokens: 262_144,+ description:+ 'Kimi K2.6 is an open-source native multimodal agent model from Moonshot AI, achieving open-source state-of-the-art performance on multiple mainstream benchmarks including HLE (with tools), SWE-Bench Pro, and BrowseComp. The model adopts a MoE architecture with 1T total parameters and 32B active parameters, supports a 256K token context window, and integrates native multimodal capabilities.',+ displayName: 'Kimi-K2.6 (Pro)',+ id: 'Pro/moonshotai/Kimi-K2.6',+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput_cacheRead', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 6.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 27, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-04-21',+ settings: {+ extendParams: ['enableReasoning', 'reasoningBudgetToken'],+ },+ type: 'chat',+ },+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ vision: true,+ },+ contextWindowTokens: 262_144,+ description:+ 'Qwen3.6-27B is the first open-source medium-sized dense model in the Qwen3.6 series, with key enhancements for code generation, Agent workflows, and real-world development scenarios. Compared to Qwen3.5-27B, this model shows significant improvements in front-end development, repository-level reasoning, tool calling, and complex problem-solving, with newly added historical reasoning capability optimizations.',+ displayName: 'Qwen3.6 27B',+ id: 'Qwen/Qwen3.6-27B',+ organization: 'Qwen',+ pricing: {+ currency: 'CNY',+ units: [+ {+ lookup: {+ prices: {+ '[0, 0.128]': 0.6,+ '[0.128, infinity]': 1.8,+ },+ pricingParams: ['textInput'],+ },+ name: 'textInput',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ {+ lookup: {+ prices: {+ '[0, 0.128]': 4.8,+ '[0.128, infinity]': 14.4,+ },+ pricingParams: ['textInput'],+ },+ name: 'textOutput',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],+ },+ releasedAt: '2026-04-23',+ settings: {+ extendParams: ['enableReasoning', 'reasoningBudgetToken'],+ },+ type: 'chat',+ },{abilities: {functionCall: true,@@ -314,6 +410,30 @@ const siliconcloudChatModels: AIChatModelCard[] = [},type: 'chat',},+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ },+ contextWindowTokens: 192_000,+ description:+ 'MiniMax-M2.5 is the latest large language model developed by MiniMax, trained through large-scale reinforcement learning across hundreds of thousands of complex, real-world environments. Featuring an MoE architecture with 229 billion parameters, it achieves industry-leading performance in tasks such as programming, agent tool-calling, search, and office scenarios.',+ displayName: 'MiniMax-M2.5',+ id: 'MiniMaxAI/MiniMax-M2.5',+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput_cacheRead', rate: 0.21, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textInput', rate: 2.1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8.4, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-02-13',+ settings: {+ extendParams: ['reasoningBudgetToken'],+ },+ type: 'chat',+ },{abilities: {functionCall: true,@@ -338,6 +458,63 @@ const siliconcloudChatModels: AIChatModelCard[] = [},type: 'chat',},+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ },+ contextWindowTokens: 198_000,+ description:+ 'GLM-5.1 is Zhipu’s next-generation flagship agent model for intelligent engineering. It uses a 754B Mixture-of-Experts architecture with native tool calling, prefix completion, FIM support, and a 200K context window for long-horizon workflows.',+ displayName: 'GLM-5.1 (Pro)',+ id: 'Pro/zai-org/glm-5.1',+ pricing: {+ currency: 'CNY',+ units: [+ {+ lookup: {+ prices: {+ '[0, 0.032]': 1.3,+ '[0.032, infinity]': 2,+ },+ pricingParams: ['textInput'],+ },+ name: 'textInput_cacheRead',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ {+ lookup: {+ prices: {+ '[0, 0.032]': 6,+ '[0.032, infinity]': 8,+ },+ pricingParams: ['textInput'],+ },+ name: 'textInput',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ {+ lookup: {+ prices: {+ '[0, 0.032]': 24,+ '[0.032, infinity]': 28,+ },+ pricingParams: ['textInput'],+ },+ name: 'textOutput',+ strategy: 'lookup',+ unit: 'millionTokens',+ },+ ],+ },+ releasedAt: '2026-04-08',+ settings: {+ extendParams: ['enableReasoning', 'reasoningBudgetToken'],+ },+ type: 'chat',+ },{abilities: {functionCall: true,@@ -452,26 +629,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- vision: true,- },- contextWindowTokens: 131_072,- description:- 'GLM-4.6V achieves state-of-the-art visual understanding accuracy at its parameter scale, and for the first time natively integrates Function Call capability into the visual model architecture, bridging the path from "visual perception" to "executable actions", providing a unified technical foundation for multimodal Agents in real-world business scenarios.',- displayName: 'GLM-4.6V',- id: 'zai-org/GLM-4.6V',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2025-12-08',- type: 'chat',- },{abilities: {functionCall: true,@@ -481,7 +638,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [description:"DeepSeek-V3.2 is a model that combines high computational efficiency with excellent reasoning and Agent performance. Its approach is based on three major technological breakthroughs: DeepSeek Sparse Attention (DSA), an efficient attention mechanism that significantly reduces computational complexity while maintaining model performance, and is specifically optimized for long-context scenarios; a scalable reinforcement learning framework, through which the model's performance can rival GPT-5, and its high-compute version can rival Gemini-3.0-Pro in reasoning capabilities; and a large-scale Agent task synthesis pipeline, designed to integrate reasoning capabilities into tool-using scenarios, thereby improving instruction-following and generalization abilities in complex interactive environments. The model achieved gold medal results in the 2025 International Mathematical Olympiad (IMO) and International Informatics Olympiad (IOI).",displayName: 'DeepSeek V3.2',- enabled: true,id: 'deepseek-ai/DeepSeek-V3.2',pricing: {currency: 'CNY',@@ -1117,25 +1273,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [releasedAt: '2025-09-01',type: 'chat',},- {- abilities: {- functionCall: true,- },- contextWindowTokens: 131_072,- description:- 'KAT-Dev (32B) is an open-source 32B model for software engineering tasks. It achieves a 62.4% solve rate on SWE-Bench Verified, ranking 5th among open models. It is optimized through mid-training, SFT, and RL for code completion, bug fixing, and code review.',- displayName: 'KAT-Dev 32B',- id: 'Kwaipilot/KAT-Dev',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2025-09-27',- type: 'chat',- },{abilities: {functionCall: true,@@ -1199,47 +1336,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- video: true,- vision: true,- },- contextWindowTokens: 256_000,- description:- 'Qwen3-VL-235B-A22B-Instruct is a large instruction-tuned Qwen3-VL model built on MoE, delivering excellent multimodal understanding and generation. It natively supports 256K context and is suitable for high-concurrency production multimodal services.',- displayName: 'Qwen3 VL 235B A22B Instruct',- id: 'Qwen/Qwen3-VL-235B-A22B-Instruct',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- video: true,- vision: true,- },- contextWindowTokens: 256_000,- description:- 'Qwen3-VL-235B-A22B-Thinking is the flagship thinking version of Qwen3-VL, optimized for complex multimodal reasoning, long-context reasoning, and agent interaction in enterprise scenarios.',- displayName: 'Qwen3 VL 235B A22B Thinking',- id: 'Qwen/Qwen3-VL-235B-A22B-Thinking',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{abilities: {functionCall: true,@@ -1437,25 +1533,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- },- contextWindowTokens: 262_144,- description:- 'Qwen3-Coder-480B-A35B-Instruct is Alibaba’s most agentic code model to date. It is an MoE model with 480B total and 35B active parameters, balancing efficiency and performance. It natively supports 256K context and can extend to 1M tokens via YaRN, enabling large codebase handling. Designed for agentic coding workflows, it can interact with tools and environments to solve complex programming tasks. It achieves top open-model results on coding and agent benchmarks, comparable to leading models like Claude Sonnet 4.',- displayName: 'Qwen3 Coder 480B A35B Instruct',- id: 'Qwen/Qwen3-Coder-480B-A35B-Instruct',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2025-07-23',- type: 'chat',- },{abilities: {functionCall: true,@@ -1479,7 +1556,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [abilities: {functionCall: true,reasoning: true,- vision: true,},contextWindowTokens: 65_536,description:@@ -1519,44 +1595,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [releasedAt: '2025-07-28',type: 'chat',},- {- abilities: {- reasoning: true,- },- contextWindowTokens: 131_072,- description:- 'Pangu-Pro-MoE 72B-A16B is a sparse LLM with 72B total and 16B active parameters, based on a grouped MoE (MoGE) architecture. It groups experts during selection and constrains tokens to activate equal experts per group, balancing load and improving deployment efficiency on Ascend.',- displayName: 'Pangu Pro MoE 72B A16B',- id: 'ascend-tribe/pangu-pro-moe',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2025-06-17',- settings: {- extendParams: ['reasoningBudgetToken'],- },- type: 'chat',- },- {- contextWindowTokens: 131_072,- description:- 'ERNIE-4.5-300B-A47B is a Baidu MoE LLM with 300B total parameters and 47B active per token, balancing strong performance and compute efficiency. As a core ERNIE 4.5 model, it excels at understanding, generation, reasoning, and programming. It uses a multimodal heterogeneous MoE pretraining method with joint text-vision training to boost overall capability, especially instruction following and world knowledge.',- displayName: 'ERNIE 4.5 300B A47B',- id: 'baidu/ERNIE-4.5-300B-A47B',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2025-06-30',- type: 'chat',- },{abilities: {functionCall: true,@@ -1683,30 +1721,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 262_144,- description:- 'Qwen3-235B-A22B-Thinking-2507 is a Qwen3 model focused on hard complex reasoning. It uses an MoE architecture with 235B total and ~22B active per token to boost efficiency. As a dedicated thinking model, it shows major gains in logic, math, science, coding, and academic benchmarks, reaching top-tier open thinking performance. It also improves instruction following, tool use, and text generation, and natively supports 256K context for deep reasoning and long documents.',- displayName: 'Qwen3 235B A22B Thinking 2507',- id: 'Qwen/Qwen3-235B-A22B-Thinking-2507',- organization: 'Qwen',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2025-07-25',- settings: {- extendParams: ['reasoningBudgetToken'],- },- type: 'chat',- },{abilities: {functionCall: true,@@ -1757,7 +1771,7 @@ const siliconcloudChatModels: AIChatModelCard[] = [},contextWindowTokens: 262_144,description:- 'Qwen3-30B-A3B-Instruct-2507 is the updated non-thinking version of Qwen3-30B-A3B. It is an MoE model with 30.5B total and 3.3B active parameters. It significantly improves instruction following, logical reasoning, text understanding, math, science, coding, and tool use, expands multilingual long-tail knowledge, and better aligns with user preferences on subjective open tasks. It supports 256K context. This model is non-thinking only and will not output `<think></think>` tags.',+ 'Qwen3-30B-A3B-Instruct-2507 is the updated non-thinking version of Qwen3-30B-A3B. It is an MoE model with 30.5B total and 3.3B active parameters. It significantly improves instruction following, logical reasoning, text understanding, math, science, coding, and tool use, expands multilingual long-tail knowledge, and better aligns with user preferences on subjective open tasks. It supports 256K context. This model is non-thinking only and will not output `נקוד` tags.',displayName: 'Qwen3 30B A3B Instruct 2507',id: 'Qwen/Qwen3-30B-A3B-Instruct-2507',organization: 'Qwen',@@ -2059,100 +2073,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 131_072,- description:- 'DeepSeek-R1-Distill-Qwen-32B is distilled from Qwen2.5-32B and fine-tuned on 800K curated DeepSeek-R1 samples. It excels in math, programming, and reasoning, achieving strong results on AIME 2024, MATH-500 (94.3% accuracy), and GPQA Diamond.',- displayName: 'DeepSeek R1 Distill Qwen 32B',- id: 'deepseek-ai/DeepSeek-R1-Distill-Qwen-32B',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 1.26, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 1.26, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 131_072,- description:- 'DeepSeek-R1-Distill-Qwen-14B is distilled from Qwen2.5-14B and fine-tuned on 800K curated DeepSeek-R1 samples. It shows strong reasoning, with 93.9% on MATH-500, 69.7% on AIME 2024, and a 1481 CodeForces rating.',- displayName: 'DeepSeek R1 Distill Qwen 14B',- id: 'deepseek-ai/DeepSeek-R1-Distill-Qwen-14B',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 131_072,- description:- 'DeepSeek-R1-Distill-Qwen-7B is distilled from Qwen2.5-Math-7B and fine-tuned on 800K curated DeepSeek-R1 samples. It performs strongly, with 92.8% on MATH-500, 55.5% on AIME 2024, and a 1189 CodeForces rating for a 7B model.',- displayName: 'DeepSeek R1 Distill Qwen 7B (Free)',- id: 'deepseek-ai/DeepSeek-R1-Distill-Qwen-7B',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 131_072,- description:- 'DeepSeek-R1-Distill-Qwen-7B is distilled from Qwen2.5-Math-7B and fine-tuned on 800K curated DeepSeek-R1 samples. It performs strongly, with 92.8% on MATH-500, 55.5% on AIME 2024, and a 1189 CodeForces rating for a 7B model.',- displayName: 'DeepSeek R1 Distill Qwen 7B (Pro)',- id: 'Pro/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B',- 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: {- functionCall: true,- },- contextWindowTokens: 32_768,- description:- 'DeepSeek-V2.5 upgrades DeepSeek-V2-Chat and DeepSeek-Coder-V2-Instruct, combining general and coding abilities. It improves writing and instruction following for better preference alignment, and shows significant gains on AlpacaEval 2.0, ArenaHard, AlignBench, and MT-Bench.',- displayName: 'DeepSeek V2.5',- id: 'deepseek-ai/DeepSeek-V2.5',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 1.33, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 1.33, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{abilities: {reasoning: true,@@ -2172,28 +2092,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 131_072,- description:- 'QwQ is a reasoning model in the Qwen family. Compared with standard instruction-tuned models, it adds thinking and reasoning that significantly boost downstream performance, especially on hard problems. QwQ-32B is a mid-size reasoning model competitive with top reasoning models like DeepSeek-R1 and o1-mini. It uses RoPE, SwiGLU, RMSNorm, and attention QKV bias, with 64 layers and 40 Q attention heads (8 KV in GQA).',- displayName: 'QwQ 32B',- id: 'Qwen/QwQ-32B',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },- ],- },- settings: {- extendParams: ['reasoningBudgetToken'],- },- type: 'chat',- },{abilities: {functionCall: true,@@ -2302,93 +2200,6 @@ const siliconcloudChatModels: AIChatModelCard[] = [},type: 'chat',},- {- contextWindowTokens: 32_768,- description:- 'Qwen2.5-Coder-32B-Instruct is a code-focused model built on Qwen2.5. Trained on 5.5T tokens, it significantly improves code generation, reasoning, and repair. It is among the most advanced open code models, with coding ability comparable to GPT-4, while retaining math and general strengths and supporting long text.',- displayName: 'Qwen2.5 Coder 32B Instruct',- id: 'Qwen/Qwen2.5-Coder-32B-Instruct',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 1.26, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 1.26, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- vision: true,- },- contextWindowTokens: 32_768,- description:- 'Qwen2-VL is the latest Qwen-VL model, reaching SOTA on vision benchmarks like MathVista, DocVQA, RealWorldQA, and MTVQA. It can understand videos over 20 minutes for video QA, dialogue, and content creation. It also supports complex reasoning and decision-making, integrating with devices/robots for vision-driven actions. Beyond English and Chinese, it can read text in many languages including most European languages, Japanese, Korean, Arabic, and Vietnamese.',- displayName: 'Qwen2 VL 72B Instruct',- id: 'Qwen/Qwen2-VL-72B-Instruct',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- vision: true,- },- contextWindowTokens: 131_072,- description:- 'Qwen2.5-VL-32B-Instruct is a multimodal model from the Qwen team. It recognizes common objects and analyzes text, charts, icons, graphics, and layouts. As a visual agent, it can reason and dynamically control tools, including computer and phone use. It precisely localizes objects and generates structured outputs for invoices and tables. Compared to Qwen2-VL, RL further improves math and problem-solving, with more human-preferred responses.',- displayName: 'Qwen2.5 VL 32B Instruct',- id: 'Qwen/Qwen2.5-VL-32B-Instruct',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 1.89, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 1.89, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- vision: true,- },- contextWindowTokens: 131_072,- description:- 'Qwen2.5-VL is the vision-language model in the Qwen2.5 series with major upgrades: stronger visual understanding for objects, text, charts, and layouts; reasoning as a visual agent with dynamic tool use; understanding videos over 1 hour and capturing key events; precise object grounding via boxes or points; and structured outputs for scanned data like invoices and tables.',- displayName: 'Qwen2.5 VL 72B Instruct',- id: 'Qwen/Qwen2.5-VL-72B-Instruct',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- contextWindowTokens: 32_768,- description:- 'InternLM2.5-7B-Chat is an open-source chat model based on the InternLM2 architecture. The 7B model focuses on dialogue generation with Chinese/English support, using modern training for fluent, intelligent conversation. It suits many chat scenarios such as customer support and personal assistants.',- displayName: 'InternLM2.5 7B Chat (Free)',- id: 'internlm/internlm2_5-7b-chat',- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },];const siliconcloudImageModels: AIImageModelCard[] = [diff --git a/packages/model-bank/src/aiModels/volcengine.ts b/packages/model-bank/src/aiModels/volcengine.tsindex 8cc671f7fe4..f08256fbbc4 100644--- a/packages/model-bank/src/aiModels/volcengine.ts+++ b/packages/model-bank/src/aiModels/volcengine.ts@@ -80,7 +80,7 @@ const doubaoChatModels: AIChatModelCard[] = [search: true,},config: {- deploymentName: 'doubao-seed-2-0-lite-260215',+ deploymentName: 'doubao-seed-2-0-lite-260428',},contextWindowTokens: 256_000,description:@@ -143,7 +143,7 @@ const doubaoChatModels: AIChatModelCard[] = [search: true,},config: {- deploymentName: 'doubao-seed-2-0-mini-260215',+ deploymentName: 'doubao-seed-2-0-mini-260428',},contextWindowTokens: 256_000,description:@@ -523,53 +523,6 @@ const doubaoChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- reasoning: true,- },- config: {- deploymentName: 'kimi-k2-thinking-251104',- },- contextWindowTokens: 262_144,- description:- 'Kimi-K2 is a MoE architecture basic model launched by Moonshot AI with super strong code and agent capabilities. It has a total parameter of 1T and an activation parameter of 32B.In benchmark performance tests in major categories such as general knowledge reasoning, programming, mathematics, and agents, the performance of the K2 model exceeds that of other mainstream open source models.',- displayName: 'Kimi K2 Thinking',- id: 'kimi-k2-thinking',- maxOutput: 32_768,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput_cacheRead', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- },- config: {- deploymentName: 'kimi-k2-250905',- },- contextWindowTokens: 262_144,- description:- 'Kimi-K2 is a MoE base model from Moonshot AI with strong coding and agent capabilities, totaling 1T parameters with 32B active. On benchmarks for general reasoning, coding, math, and agent tasks, it outperforms other mainstream open models.',- displayName: 'Kimi K2',- id: 'kimi-k2',- maxOutput: 32_768,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput_cacheRead', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{abilities: {functionCall: true,@@ -625,60 +578,6 @@ const doubaoChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- reasoning: true,- video: true,- vision: true,- search: true,- },- config: {- deploymentName: 'doubao-seed-1-6-thinking-250715',- },- contextWindowTokens: 256_000,- description:- 'Doubao-Seed-1.6-thinking significantly strengthens reasoning, further improving core abilities in coding, math, and logical reasoning over Doubao-1.5-thinking-pro, while adding vision understanding. It supports a 256k context window and up to 16k output tokens.',- displayName: 'Doubao Seed 1.6 Thinking',- id: 'doubao-seed-1.6-thinking',- maxOutput: 32_000,- pricing: {- currency: 'CNY',- units: [- {- lookup: {- prices: {- '[0, 0.032]': 0.8,- '[0.032, 0.128]': 1.2,- '[0.128, infinity]': 2.4,- },- pricingParams: ['textInputRange'],- },- name: 'textInput',- strategy: 'lookup',- unit: 'millionTokens',- },- {- lookup: {- prices: {- '[0, 0.032]': 8,- '[0.032, 0.128]': 16,- '[0.128, infinity]': 24,- },- pricingParams: ['textInputRange'],- },- name: 'textOutput',- strategy: 'lookup',- unit: 'millionTokens',- },- { name: 'textInput_cacheRead', rate: 0.16, strategy: 'fixed', unit: 'millionTokens' },- ],- },- settings: {- searchImpl: 'params',- },- type: 'chat',- },{abilities: {functionCall: true,@@ -846,113 +745,6 @@ const doubaoChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- reasoning: true,- video: true,- vision: true,- },- config: {- deploymentName: 'doubao-1-5-ui-tars-250428',- },- contextWindowTokens: 131_072,- description:- 'Doubao-1.5-UI-TARS is a native GUI-focused agent model that seamlessly interacts with interfaces through human-like perception, reasoning, and action.',- displayName: 'Doubao 1.5 UI TARS',- id: 'doubao-1.5-ui-tars',- maxOutput: 16_000,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },- ],- },- settings: {- extendParams: ['thinking'],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- video: true,- vision: true,- },- config: {- deploymentName: 'doubao-1-5-thinking-vision-pro-250428',- },- contextWindowTokens: 131_072,- description:- 'A new visual deep-reasoning model with stronger multimodal understanding and reasoning, achieving SOTA results on 37 of 59 public benchmarks.',- displayName: 'Doubao 1.5 Thinking Vision Pro',- id: 'doubao-1.5-thinking-vision-pro',- maxOutput: 16_000,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },- ],- },- settings: {- extendParams: ['thinking'],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- },- config: {- deploymentName: 'doubao-1-5-thinking-pro-250415',- },- contextWindowTokens: 131_072,- description:- 'Doubao-1.5 is a new deep-reasoning model that excels in math, coding, scientific reasoning, and general tasks like creative writing. It reaches or approaches top-tier results on benchmarks such as AIME 2024, Codeforces, and GPQA. It supports a 128k context window and 16k output.',- displayName: 'Doubao 1.5 Thinking Pro',- id: 'doubao-1.5-thinking-pro',- maxOutput: 16_000,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- video: true,- vision: true,- },- config: {- deploymentName: 'doubao-1-5-thinking-pro-m-250428',- },- contextWindowTokens: 131_072,- description:- 'Doubao-1.5 is a new deep-reasoning model (the m version includes native multimodal deep reasoning) that excels in math, coding, scientific reasoning, and general tasks like creative writing. It reaches or approaches top-tier results on benchmarks such as AIME 2024, Codeforces, and GPQA. It supports a 128k context window and 16k output.',- displayName: 'Doubao 1.5 Thinking Pro M',- id: 'doubao-1.5-thinking-pro-m',- maxOutput: 16_000,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },- ],- },- settings: {- extendParams: ['thinking'],- },- type: 'chat',- },{abilities: {functionCall: true,@@ -1086,56 +878,6 @@ const doubaoChatModels: AIChatModelCard[] = [releasedAt: '2025-01-15',type: 'chat',},- {- abilities: {- functionCall: true,- video: true,- vision: true,- },- config: {- deploymentName: 'doubao-1-5-vision-pro-250328',- },- contextWindowTokens: 128_000,- description:- 'Doubao-1.5-vision-pro is an upgraded multimodal model that supports images at any resolution and extreme aspect ratios, enhancing visual reasoning, document recognition, detail understanding, and instruction following.',- displayName: 'Doubao 1.5 Vision Pro',- id: 'doubao-1.5-vision-pro',- maxOutput: 16_384,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2025-03-28',- type: 'chat',- },- {- abilities: {- functionCall: true,- video: true,- vision: true,- },- config: {- deploymentName: 'doubao-1-5-vision-lite-250315',- },- contextWindowTokens: 128_000,- description:- 'Doubao-1.5-vision-lite is an upgraded multimodal model that supports images at any resolution and extreme aspect ratios, enhancing visual reasoning, document recognition, detail understanding, and instruction following. It supports a 128k context window and up to 16k output tokens.',- displayName: 'Doubao 1.5 Vision Lite',- id: 'doubao-1.5-vision-lite',- maxOutput: 16_384,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 4.5, strategy: 'fixed', unit: 'millionTokens' },- ],- },- releasedAt: '2025-03-15',- type: 'chat',- },{config: {deploymentName: 'doubao-lite-32k-240828',@@ -1269,27 +1011,6 @@ const volcengineImageModels: AIImageModelCard[] = [releasedAt: '2025-04-15',type: 'image',},- {- description:- 'The Doubao image model from ByteDance Seed supports text and image inputs with highly controllable, high-quality image generation. It supports text-guided image editing, with output sizes between 512 and 1536 on the long side.',- displayName: 'SeedEdit 3.0 Image-to-Image',- id: 'doubao-seededit-3-0-i2i-250628',- parameters: {- cfg: { default: 5.5, max: 10, min: 1, step: 0.1 },- imageUrl: { default: null, maxFileSize: 10 * 1024 * 1024 },- prompt: {- default: '',- },- seed: { default: null },- watermark: { default: false },- },- pricing: {- currency: 'CNY',- units: [{ name: 'imageGeneration', rate: 0.259, strategy: 'fixed', unit: 'image' }],- },- releasedAt: '2025-06-28',- type: 'image',- },];const volcengineVideoModels: AIVideoModelCard[] = [diff --git a/packages/model-bank/src/aiModels/wenxin.ts b/packages/model-bank/src/aiModels/wenxin.tsindex 00d4588e39d..bd1de95edd1 100644--- a/packages/model-bank/src/aiModels/wenxin.ts+++ b/packages/model-bank/src/aiModels/wenxin.ts@@ -159,10 +159,10 @@ const wenxinChatModels: AIChatModelCard[] = [},contextWindowTokens: 131_072,description:- 'ERNIE 4.5 Turbo 128K is a high-performance general model with search augmentation and tool calling for QA, coding, and agent scenarios.',- displayName: 'ERNIE 4.5 Turbo 128K',+ 'ERNIE 4.5 Turbo 20260402 is a high-performance general model with search augmentation and tool calling for QA, coding, and agent scenarios.',+ displayName: 'ERNIE 4.5 Turbo 20260402',enabled: true,- id: 'ernie-4.5-turbo-128k',+ id: 'ernie-4.5-turbo-20260402',maxOutput: 12_288,pricing: {currency: 'CNY',@@ -184,9 +184,9 @@ const wenxinChatModels: AIChatModelCard[] = [},contextWindowTokens: 131_072,description:- 'ERNIE 4.5 Turbo 128K preview with release-level capabilities, suitable for integration and canary testing.',- displayName: 'ERNIE 4.5 Turbo 128K Preview',- id: 'ernie-4.5-turbo-128k-preview',+ 'ERNIE 4.5 Turbo 128K is a high-performance general model with search augmentation and tool calling for QA, coding, and agent scenarios.',+ displayName: 'ERNIE 4.5 Turbo 128K',+ id: 'ernie-4.5-turbo-128k',maxOutput: 12_288,pricing: {currency: 'CNY',@@ -196,6 +196,9 @@ const wenxinChatModels: AIChatModelCard[] = [{ name: 'textOutput', rate: 3.2, strategy: 'fixed', unit: 'millionTokens' },],},+ settings: {+ searchImpl: 'params',+ },type: 'chat',},{@@ -278,22 +281,6 @@ const wenxinChatModels: AIChatModelCard[] = [},type: 'chat',},- {- contextWindowTokens: 8192,- description:- 'ERNIE Character 8K is a persona dialogue model for IP character building and long-term companionship chat.',- displayName: 'ERNIE Character 8K',- id: 'ernie-char-8k',- maxOutput: 2048,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{contextWindowTokens: 8192,description:@@ -358,75 +345,6 @@ const wenxinChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- search: true,- },- contextWindowTokens: 131_072,- description:- 'ERNIE 4.5 21B A3B is an open-source large-parameter model with stronger understanding and generation.',- displayName: 'ERNIE 4.5 21B A3B',- id: 'ernie-4.5-21b-a3b',- maxOutput: 8192,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },- ],- },- settings: {- searchImpl: 'params',- },- type: 'chat',- },- {- abilities: {- functionCall: true,- reasoning: true,- search: true,- },- contextWindowTokens: 131_072,- description:- 'ERNIE-4.5-21B-A3B-Thinking is a text MoE (Mixture-of-Experts) post-trained model with a total of 21B parameters and 3B active parameters, offering significantly enhanced reasoning quality and depth.',- displayName: 'ERNIE 4.5 21B A3B Thinking',- id: 'ernie-4.5-21b-a3b-thinking',- maxOutput: 8192,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },- ],- },- settings: {- searchImpl: 'params',- },- type: 'chat',- },- {- abilities: {- video: true,- vision: true,- },- contextWindowTokens: 32_768,- description:- 'ERNIE 4.5 VL 28B A3B is an open-source multimodal model for image-text understanding and reasoning.',- displayName: 'ERNIE 4.5 VL 28B A3B',- id: 'ernie-4.5-vl-28b-a3b',- maxOutput: 8192,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },- ],- },- settings: {- extendParams: ['enableReasoning'],- },- type: 'chat',- },{contextWindowTokens: 32_768,description:@@ -484,30 +402,6 @@ const wenxinChatModels: AIChatModelCard[] = [maxOutput: 2048,type: 'chat',},- {- abilities: {- video: true,- vision: true,- },- contextWindowTokens: 131_072,- description:- 'ERNIE 4.5 Turbo VL Preview is a multimodal preview model for image-text understanding and generation, suitable for visual QA and content comprehension.',- displayName: 'ERNIE 4.5 Turbo VL Preview',- id: 'ernie-4.5-turbo-vl-preview',- maxOutput: 16_384,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput_cacheRead', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },- ],- },- settings: {- extendParams: ['enableReasoning'],- },- type: 'chat',- },{abilities: {video: true,@@ -550,30 +444,6 @@ const wenxinChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- video: true,- vision: true,- },- contextWindowTokens: 32_768,- description:- 'ERNIE 4.5 Turbo VL 32K Preview is a 32K multimodal preview for evaluating long-context vision ability.',- displayName: 'ERNIE 4.5 Turbo VL 32K Preview',- id: 'ernie-4.5-turbo-vl-32k-preview',- maxOutput: 16_384,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput_cacheRead', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },- ],- },- settings: {- extendParams: ['enableReasoning'],- },- type: 'chat',- },{abilities: {video: true,@@ -799,25 +669,6 @@ const wenxinChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- vision: true,- },- contextWindowTokens: 32_768,- description:- 'Qianfan Llama VL 8B is a Llama-based multimodal model for general image-text understanding.',- displayName: 'Qianfan Llama VL 8B',- id: 'qianfan-llama-vl-8b',- maxOutput: 16_384,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{abilities: {vision: true,@@ -1122,26 +973,6 @@ const wenxinChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- video: true,- vision: true,- },- contextWindowTokens: 16_384,- description:- 'Qwen2.5 VL 7B Instruct is a lightweight multimodal model balancing deployment cost and recognition ability.',- displayName: 'Qwen2.5 VL 7B Instruct',- id: 'qwen2.5-vl-7b-instruct',- maxOutput: 4096,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{abilities: {vision: true,@@ -1526,26 +1357,6 @@ const wenxinChatModels: AIChatModelCard[] = [},type: 'chat',},- {- abilities: {- functionCall: true,- reasoning: true,- },- contextWindowTokens: 32_768,- description:- 'QWQ-32B is a large open-source reasoning model, suitable as a reasoning core for agents.',- displayName: 'QWQ 32B',- id: 'qwq-32b',- maxOutput: 8192,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },{abilities: {functionCall: true,@@ -1776,22 +1587,6 @@ const wenxinChatModels: AIChatModelCard[] = [},type: 'chat',},- {- contextWindowTokens: 32_768,- description:- 'Qwen2.5 7B Instruct is a mature open-source instruct model for multi-scenario chat and generation.',- displayName: 'Qwen2.5 7B Instruct',- id: 'qwen2.5-7b-instruct',- maxOutput: 8192,- pricing: {- currency: 'CNY',- units: [- { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },- { name: 'textOutput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },- ],- },- type: 'chat',- },];const wenxinImageModels: AIImageModelCard[] = [diff --git a/packages/model-bank/src/types/aiModel.ts b/packages/model-bank/src/types/aiModel.tsindex 8b67bccb3db..53aa89630fc 100644--- a/packages/model-bank/src/types/aiModel.ts+++ b/packages/model-bank/src/types/aiModel.ts@@ -438,6 +438,7 @@ export interface AiFullModelCard extends AIBaseModelCard {maxDimension?: number;parameters?: ModelParamsSchema;pricing?: Pricing;+ settings?: AiModelSettings;type: AiModelType;}diff --git a/packages/model-runtime/src/providers/google/index.test.ts b/packages/model-runtime/src/providers/google/index.test.tsindex 18cfc5ce806..27ba2c6ffee 100644--- a/packages/model-runtime/src/providers/google/index.test.ts+++ b/packages/model-runtime/src/providers/google/index.test.ts@@ -610,6 +610,22 @@ describe('thinkingConfig includeThoughts logic', () => {const config = callArgs[0].config as any;expect(config.thinkingConfig?.thinkingLevel).toBe('high');});++ it('should add thinkingLevel to config for gemma-4 models when provided', async () => {+ const mockStreamData = (async function* (): AsyncGenerator<GenerateContentResponse> {})();+ vi.spyOn(instance['client'].models, 'generateContentStream').mockResolvedValue(mockStreamData);++ await instance.chat({+ messages: [{ content: 'Hello', role: 'user' }],+ model: 'gemma-4-31b-it',+ thinkingLevel: 'low',+ temperature: 0,+ });++ const callArgs = (instance['client'].models.generateContentStream as any).mock.calls[0];+ const config = callArgs[0].config as any;+ expect(config.thinkingConfig?.thinkingLevel).toBe('low');+ });});describe('buildGoogleToolsWithSearch', () => {diff --git a/packages/model-runtime/src/providers/google/thinkingResolver.test.ts b/packages/model-runtime/src/providers/google/thinkingResolver.test.tsindex 41c76017663..c699e915c8d 100644--- a/packages/model-runtime/src/providers/google/thinkingResolver.test.ts+++ b/packages/model-runtime/src/providers/google/thinkingResolver.test.ts@@ -87,6 +87,8 @@ describe('thinkingResolver', () => {'gemini-3.0-pro','gemini-3.0-flash','gemini-3-pro-image-preview',+ 'gemma-4-31b-it',+ 'gemma-4-26b-a4b-it',])('should return true for %s', (model) => {expect(isGemini3Model(model)).toBe(true);});@@ -389,6 +391,29 @@ describe('thinkingResolver', () => {});});+ describe('gemma-4-31b-it (supports thinkingLevel)', () => {+ const model = 'gemma-4-31b-it';++ it('should not set thinkingBudget by default (let API decide)', () => {+ const result = resolveGoogleThinkingConfig(model, {});++ expect(result).toEqual({+ includeThoughts: undefined,+ thinkingBudget: undefined,+ });+ });++ it('should include thinkingLevel when provided', () => {+ const result = resolveGoogleThinkingConfig(model, { thinkingLevel: 'medium' });++ expect(result).toEqual({+ includeThoughts: true,+ thinkingBudget: undefined,+ thinkingLevel: 'medium',+ });+ });+ });+describe('gemini-2.5-flash-lite', () => {const model = 'gemini-2.5-flash-lite';@@ -480,7 +505,7 @@ describe('resolveGoogleThinkingBudget', () => {*/describe('thinkingBudget and thinkingLevel mutual exclusivity', () => {describe('Gemini 3.0+ models (supports thinkingLevel)', () => {- const models = ['gemini-3-pro', 'gemini-3-flash', 'gemini-3.0-pro-preview'];+ const models = ['gemini-3-pro', 'gemini-3-flash', 'gemini-3.0-pro-preview', 'gemma-4-31b-it'];it.each(models)('%s: should use thinkingLevel only when set', (model) => {const result = resolveGoogleThinkingConfig(model, { thinkingLevel: 'high' });diff --git a/packages/model-runtime/src/providers/google/thinkingResolver.ts b/packages/model-runtime/src/providers/google/thinkingResolver.tsindex 60b1b055763..9c5dedaf4a2 100644--- a/packages/model-runtime/src/providers/google/thinkingResolver.ts+++ b/packages/model-runtime/src/providers/google/thinkingResolver.ts@@ -89,10 +89,13 @@ const THINKING_ENABLED_PATTERNS: RegExp[] = [];/**- * Patterns to detect Gemini 3.0+ models (which support thinkingLevel)+ * Patterns to detect models that support thinkingLevel+ * - Gemini 3.0++ * - Gemma 4*/const GEMINI_3_PATTERNS: RegExp[] = [/gemini-3(?:\.\d+)?-/i, // gemini-3-pro, gemini-3.0-flash+ /gemma-4(?:-|$)/i, // gemma-4-31b-it];// ============================================================================diff --git a/packages/model-runtime/src/providers/mistral/index.ts b/packages/model-runtime/src/providers/mistral/index.tsindex be14ee091a9..16ef6326bbe 100644--- a/packages/model-runtime/src/providers/mistral/index.ts+++ b/packages/model-runtime/src/providers/mistral/index.ts@@ -1,4 +1,5 @@import type { ChatModelCard } from '@lobechat/types';+import type { AiModelSettings } from 'model-bank';import { ModelProvider } from 'model-bank';import type { OpenAICompatibleFactoryOptions } from '../../core/openaiCompatibleFactory';@@ -15,6 +16,20 @@ export interface MistralModelCard {max_context_length: number;}+const adjustableReasoningSettings = {+ extendParams: ['enableReasoning'],+} as const satisfies AiModelSettings;++const isAdjustableReasoningModel = (id: string) =>+ ['mistral-medium-3.5', 'mistral-small-latest', 'mistral-small-2603'].includes(id.toLowerCase());++const resolveReasoningEffort = (payload: any) => {+ if (payload.reasoning_effort) return payload.reasoning_effort;++ if (payload.thinking?.type === 'enabled') return 'high';+ if (payload.thinking?.type === 'disabled') return 'none';+};+export const params = {baseURL: 'https://api.mistral.ai/v1',chatCompletion: {@@ -27,11 +42,13 @@ export const params = {{ max_tokens: payload.max_tokens, temperature: payload.temperature, top_p: payload.top_p },{ normalizeTemperature: true },);+ const reasoningEffort = resolveReasoningEffort(payload);return {...resolvedParams,messages: payload.messages as any,model: payload.model,+ ...(reasoningEffort && { reasoning_effort: reasoningEffort }),stream: true,...(payload.tools && { tools: payload.tools }),};@@ -61,6 +78,9 @@ export const params = {functionCall: model.capabilities.function_calling,id: model.id,reasoning: knownModel?.abilities?.reasoning || false,+ settings:+ knownModel?.settings ??+ (isAdjustableReasoningModel(model.id) ? adjustableReasoningSettings : undefined),vision: model.capabilities.vision,};})diff --git a/packages/model-runtime/src/providers/vercelaigateway/index.ts b/packages/model-runtime/src/providers/vercelaigateway/index.tsindex fc4ea210618..fd47deb5544 100644--- a/packages/model-runtime/src/providers/vercelaigateway/index.ts+++ b/packages/model-runtime/src/providers/vercelaigateway/index.ts@@ -17,6 +17,7 @@ export interface VercelAIGatewayModelCard {input_cache_write?: string | number;output?: string | number;};+ released?: number | string;tags?: string[];type?: string;}@@ -104,7 +105,7 @@ export const params = {return {contextWindowTokens: m.context_window ?? undefined,- created: m.created,+ created: m.released ?? m.created,description: m.description ?? '',displayName,functionCall: tags.includes('tool-use') || false,diff --git a/packages/model-runtime/src/utils/modelParse.ts b/packages/model-runtime/src/utils/modelParse.tsindex 4b63c520860..4a98842dbb2 100644--- a/packages/model-runtime/src/utils/modelParse.ts+++ b/packages/model-runtime/src/utils/modelParse.ts@@ -37,12 +37,12 @@ export const MODEL_LIST_CONFIGS = {},google: {excludeKeywords: ['tts'],- functionCallKeywords: ['gemini', '!-image-'],+ functionCallKeywords: ['gemini', '!-image-', 'gemma-4'],imageOutputKeywords: ['-image-'],- reasoningKeywords: ['thinking', '-2.5-', '!-image-', '-3-'],- searchKeywords: ['-search', '!-image-'],+ reasoningKeywords: ['thinking', '-2.5-', '!-image-', '-3-', 'gemma-4'],+ searchKeywords: ['-search', '!-image-', 'gemma-4'],videoKeywords: ['-2.5-', '!-image-', '-3-'],- visionKeywords: ['gemini', 'learnlm'],+ visionKeywords: ['gemini', 'learnlm', 'gemma-4'],},inclusionai: {functionCallKeywords: ['ling-'],@@ -150,7 +150,7 @@ export const MODEL_OWNER_DETECTION_CONFIG = {anthropic: ['claude'],comfyui: ['comfyui/'], // ComfyUI models detection - all ComfyUI models have comfyui/ prefixdeepseek: ['deepseek'],- google: ['gemini', 'imagen'],+ google: ['gemini', 'imagen', 'gemma'],inclusionai: ['ling-', 'ming-', 'ring-'],llama: ['llama', 'llava'],longcat: ['longcat'],diff --git a/src/routes/(main)/settings/provider/features/CreateNewProvider/index.tsx b/src/routes/(main)/settings/provider/features/CreateNewProvider/index.tsxindex 0e91d638775..616c82a3fe8 100644--- a/src/routes/(main)/settings/provider/features/CreateNewProvider/index.tsx+++ b/src/routes/(main)/settings/provider/features/CreateNewProvider/index.tsx@@ -12,6 +12,7 @@ import { type CreateAiProviderParams } from '@/types/aiProvider';import { KeyVaultsConfigKey, LLMProviderApiTokenKey, LLMProviderBaseUrlKey } from '../../const';import { CUSTOM_PROVIDER_SDK_OPTIONS } from '../customProviderSdkOptions';+import { normalizeProviderSettings } from '../providerSettings';interface CreateNewProviderProps {onClose?: () => void;@@ -32,17 +33,11 @@ const CreateNewProvider = memo<CreateNewProviderProps>(({ onClose, open }) => {const finalValues = {...values,name: values.name || values.id,+ settings: normalizeProviderSettings({+ nextSettings: values.settings,+ }) as CreateAiProviderParams['settings'],};- // Only add supportResponsesApi: true for custom providers of type openai and router (newapi)- const sdkType = values.settings?.sdkType;- if (sdkType === 'openai' || sdkType === 'router') {- finalValues.settings = {- ...finalValues.settings,- supportResponsesApi: true,- };- }-await createNewAiProvider(finalValues);setLoading(false);navigate(`/settings/provider/${values.id}`);diff --git a/src/routes/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/SettingModal.tsx b/src/routes/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/SettingModal.tsxindex 9f63c750d6c..32765473cbe 100644--- a/src/routes/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/SettingModal.tsx+++ b/src/routes/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/SettingModal.tsx@@ -11,6 +11,7 @@ import { useAiInfraStore } from '@/store/aiInfra/store';import { type AiProviderDetailItem, type UpdateAiProviderParams } from '@/types/aiProvider';import { CUSTOM_PROVIDER_SDK_OPTIONS } from '../../customProviderSdkOptions';+import { isResponsesApiSupportedSdkType, normalizeProviderSettings } from '../../providerSettings';interface CreateNewProviderProps {id: string;@@ -34,7 +35,27 @@ const CreateNewProvider = memo<CreateNewProviderProps>(({ onClose, open, initialsetLoading(true);try {- await updateAiProvider(id, values);+ const finalValues: UpdateAiProviderParams = {+ ...values,+ settings: normalizeProviderSettings({+ nextSettings: values.settings,+ previousSettings: initialValues.settings,+ }) as UpdateAiProviderParams['settings'],+ };++ const nextSdkType = finalValues.settings?.sdkType;+ if (nextSdkType && !isResponsesApiSupportedSdkType(nextSdkType)) {+ const previousConfig = (initialValues as { config?: UpdateAiProviderParams['config'] })+ .config;++ finalValues.config = {+ ...previousConfig,+ ...finalValues.config,+ enableResponseApi: false,+ };+ }++ await updateAiProvider(id, finalValues);setLoading(false);message.success(t('updateAiProvider.updateSuccess'));onClose?.();diff --git a/src/routes/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/normalizeProviderSettings.test.ts b/src/routes/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/normalizeProviderSettings.test.tsnew file mode 100644index 00000000000..668bd8cdcf3--- /dev/null+++ b/src/routes/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/normalizeProviderSettings.test.ts@@ -0,0 +1,82 @@+import { describe, expect, it } from 'vitest';++import { isResponsesApiSupportedSdkType, normalizeProviderSettings } from '../../providerSettings';++describe('isResponsesApiSupportedSdkType', () => {+ it('should return true for openai and router sdk types', () => {+ expect(isResponsesApiSupportedSdkType('openai')).toBe(true);+ expect(isResponsesApiSupportedSdkType('router')).toBe(true);+ });++ it('should return false for unsupported sdk types', () => {+ expect(isResponsesApiSupportedSdkType('anthropic')).toBe(false);+ expect(isResponsesApiSupportedSdkType(undefined)).toBe(false);+ });+});++describe('normalizeProviderSettings', () => {+ it('should keep supportResponsesApi when switching from router to openai', () => {+ const result = normalizeProviderSettings({+ nextSettings: { sdkType: 'openai' },+ previousSettings: { sdkType: 'router', supportResponsesApi: true },+ });++ expect(result).toEqual({+ sdkType: 'openai',+ supportResponsesApi: true,+ });+ });++ it('should auto-enable supportResponsesApi when sdkType is openai', () => {+ const result = normalizeProviderSettings({+ nextSettings: { sdkType: 'openai' },+ previousSettings: { sdkType: 'anthropic' },+ });++ expect(result).toEqual({+ sdkType: 'openai',+ supportResponsesApi: true,+ });+ });++ it('should auto-enable supportResponsesApi when sdkType is router', () => {+ const result = normalizeProviderSettings({+ nextSettings: { sdkType: 'router' },+ previousSettings: { sdkType: 'google' },+ });++ expect(result).toEqual({+ sdkType: 'router',+ supportResponsesApi: true,+ });+ });++ it('should remove supportResponsesApi when sdkType does not support responses api', () => {+ const result = normalizeProviderSettings({+ nextSettings: { sdkType: 'anthropic' },+ previousSettings: { sdkType: 'openai', supportResponsesApi: true },+ });++ expect(result).toEqual({+ sdkType: 'anthropic',+ });+ expect(result).not.toHaveProperty('supportResponsesApi');+ });++ it('should preserve unrelated settings fields while normalizing', () => {+ const result = normalizeProviderSettings({+ nextSettings: { sdkType: 'openai' },+ previousSettings: {+ modelEditable: false,+ showModelFetcher: true,+ },+ });++ expect(result).toEqual({+ modelEditable: false,+ sdkType: 'openai',+ showModelFetcher: true,+ supportResponsesApi: true,+ });+ });+});diff --git a/src/routes/(main)/settings/provider/features/ProviderConfig/index.tsx b/src/routes/(main)/settings/provider/features/ProviderConfig/index.tsxindex 5e9a5c03b66..9752b737a48 100644--- a/src/routes/(main)/settings/provider/features/ProviderConfig/index.tsx+++ b/src/routes/(main)/settings/provider/features/ProviderConfig/index.tsx@@ -32,6 +32,7 @@ import { type AiProviderDetailItem, type AiProviderSourceType } from '@/types/aiimport { AiProviderSourceEnum } from '@/types/aiProvider';import { KeyVaultsConfigKey, LLMProviderApiTokenKey, LLMProviderBaseUrlKey } from '../../const';+import { isResponsesApiSupportedSdkType } from '../providerSettings';import { type CheckErrorRender } from './Checker';import Checker from './Checker';import EnableSwitch from './EnableSwitch';@@ -378,10 +379,13 @@ const ProviderConfig = memo<ProviderConfigProps>(}: undefined;+ const showResponsesApiSwitch =+ !!supportResponsesApi || (isCustom && isResponsesApiSupportedSdkType(settings?.sdkType));+const configItems = [...apiKeyItem,endpointItem,- supportResponsesApi+ showResponsesApiSwitch? {children: isLoading ? <Skeleton.Button active /> : <Switch loading={configUpdating} />,desc: t('providerModels.config.responsesApi.desc'),diff --git a/src/routes/(main)/settings/provider/features/providerSettings.ts b/src/routes/(main)/settings/provider/features/providerSettings.tsnew file mode 100644index 00000000000..cdbc906217b--- /dev/null+++ b/src/routes/(main)/settings/provider/features/providerSettings.ts@@ -0,0 +1,39 @@+import { type AiProviderSDKType, type AiProviderSettings } from '@/types/aiProvider';++const RESPONSE_API_SUPPORTED_SDK_TYPES = new Set<AiProviderSDKType>(['openai', 'router']);++export const isResponsesApiSupportedSdkType = (sdkType?: AiProviderSDKType) => {+ if (!sdkType) return false;++ return RESPONSE_API_SUPPORTED_SDK_TYPES.has(sdkType);+};++interface NormalizeProviderSettingsParams {+ nextSettings?: AiProviderSettings;+ previousSettings?: AiProviderSettings;+}++export const normalizeProviderSettings = ({+ nextSettings,+ previousSettings,+}: NormalizeProviderSettingsParams): AiProviderSettings | undefined => {+ const mergedSettings = {+ ...previousSettings,+ ...nextSettings,+ };++ const sdkType = mergedSettings.sdkType;++ if (isResponsesApiSupportedSdkType(sdkType)) {+ return {+ ...mergedSettings,+ supportResponsesApi: true,+ };+ }++ const { supportResponsesApi: _removedSupportResponsesApi, ...restSettings } = mergedSettings;++ if (Object.keys(restSettings).length === 0) return undefined;++ return restSettings;+};diff --git a/src/server/routers/lambda/config/__snapshots__/index.test.ts.snap b/src/server/routers/lambda/config/__snapshots__/index.test.ts.snapindex ee8e6ded404..00a5d96d077 100644--- a/src/server/routers/lambda/config/__snapshots__/index.test.ts.snap+++ b/src/server/routers/lambda/config/__snapshots__/index.test.ts.snap@@ -28,7 +28,7 @@ exports[`configRouter > getGlobalConfig > Model Provider env > OPENAI_MODEL_LIST"functionCall": true,},"contextWindowTokens": 128000,- "description": "The latest GPT-4 Turbo adds vision. Visual requests support JSON mode and function calling. It is a cost-effective multimodal model that balances accuracy and efficiency for real-time applications.",+ "description": "The latest GPT-4 Turbo model includes vision. Vision requests can use JSON mode and function calling. GPT-4 Turbo is an enhanced version that balances accuracy and efficiency for cost-effective multimodal tasks and real-time interactions.","displayName": "gpt-4-32k","enabled": true,"id": "gpt-4-0125-preview",@@ -49,7 +49,6 @@ exports[`configRouter > getGlobalConfig > Model Provider env > OPENAI_MODEL_LIST],},"providerId": "openai",- "releasedAt": "2024-01-25","source": "builtin","type": "chat",},@@ -181,7 +180,7 @@ exports[`configRouter > getGlobalConfig > Model Provider env > OPENAI_MODEL_LIST"functionCall": true,},"contextWindowTokens": 128000,- "description": "The latest GPT-4 Turbo adds vision. Visual requests support JSON mode and function calling. It is a cost-effective multimodal model that balances accuracy and efficiency for real-time applications.",+ "description": "The latest GPT-4 Turbo model includes vision. Vision requests can use JSON mode and function calling. GPT-4 Turbo is an enhanced version that balances accuracy and efficiency for cost-effective multimodal tasks and real-time interactions.","displayName": "GPT-4 Turbo Preview 1106","enabled": true,"id": "gpt-4-1106-preview",@@ -202,7 +201,6 @@ exports[`configRouter > getGlobalConfig > Model Provider env > OPENAI_MODEL_LIST],},"providerId": "openai",- "releasedAt": "2023-11-06","source": "builtin","type": "chat",},@@ -222,7 +220,7 @@ exports[`configRouter > getGlobalConfig > Model Provider env > OPENAI_MODEL_LIST"functionCall": true,},"contextWindowTokens": 128000,- "description": "The latest GPT-4 Turbo adds vision. Visual requests support JSON mode and function calling. It is a cost-effective multimodal model that balances accuracy and efficiency for real-time applications.",+ "description": "The latest GPT-4 Turbo model includes vision. Vision requests can use JSON mode and function calling. GPT-4 Turbo is an enhanced version that balances accuracy and efficiency for cost-effective multimodal tasks and real-time interactions.","displayName": "GPT-4 Turbo Preview 1106","enabled": true,"id": "gpt-4-1106-preview",@@ -242,7 +240,8 @@ exports[`configRouter > getGlobalConfig > Model Provider env > OPENAI_MODEL_LIST},],},- "releasedAt": "2023-11-06",+ "providerId": "openai",+ "source": "builtin","type": "chat",}`;@@ -257,24 +256,16 @@ exports[`configRouter > getGlobalConfig > Model Provider env > OPENROUTER_MODEL_"serverModelLists": [{"abilities": {},- "contextWindowTokens": 131072,- "description": "LLaMA 3.1 offers multilingual support and is one of the leading generative models.",- "displayName": "Llama 3.1 8B (Free)",+ "displayName": "meta-llama/llama-3.1-8b-instruct:free","enabled": true,"id": "meta-llama/llama-3.1-8b-instruct:free",- "providerId": "openrouter",- "source": "builtin","type": "chat",},{"abilities": {},- "contextWindowTokens": 8192,- "description": "Gemma 2 is Google’s lightweight open-source text model family.",- "displayName": "Gemma 2 9B (Free)",+ "displayName": "google/gemma-2-9b-it:free","enabled": true,"id": "google/gemma-2-9b-it:free",- "providerId": "openrouter",- "source": "builtin","type": "chat",},],diff --git a/src/utils/server/__snapshots__/parseModels.test.ts.snap b/src/utils/server/__snapshots__/parseModels.test.ts.snapindex f7a5d5ccc37..d96cf8cd278 100644--- a/src/utils/server/__snapshots__/parseModels.test.ts.snap+++ b/src/utils/server/__snapshots__/parseModels.test.ts.snap@@ -107,7 +107,7 @@ exports[`transformToChatModelCards > should have file with builtin models like g"functionCall": true,},"contextWindowTokens": 128000,- "description": "The latest GPT-4 Turbo adds vision. Visual requests support JSON mode and function calling. It is a cost-effective multimodal model that balances accuracy and efficiency for real-time applications.",+ "description": "The latest GPT-4 Turbo model includes vision. Vision requests can use JSON mode and function calling. GPT-4 Turbo is an enhanced version that balances accuracy and efficiency for cost-effective multimodal tasks and real-time interactions.","displayName": "ChatGPT-4","enabled": true,"id": "gpt-4-0125-preview",@@ -128,7 +128,6 @@ exports[`transformToChatModelCards > should have file with builtin models like g],},"providerId": "openai",- "releasedAt": "2024-01-25","source": "builtin","type": "chat",},