Skip to content

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

🐛 fix(model-runtime): support advanced reasoning parameters for Cerebras and Groq (#16469)

sxjeruba69b3290993
diff --git a/packages/context-engine/src/engine/tools/__tests__/ToolsEngine.test.ts b/packages/context-engine/src/engine/tools/__tests__/ToolsEngine.test.ts
index cbd17465d0b..c4a02dae579 100644
--- a/packages/context-engine/src/engine/tools/__tests__/ToolsEngine.test.ts
+++ b/packages/context-engine/src/engine/tools/__tests__/ToolsEngine.test.ts
@@ -266,11 +266,11 @@ describe('ToolsEngine', () => {
const result = engine.generateToolsDetailed({
toolIds: ['lobe-web-browsing', 'dalle'],
- model: 'gpt-5-chat-latest',
+ model: 'gpt-5.6-sol',
provider: 'openai',
});
- expect(mockFunctionCallChecker).toHaveBeenCalledWith('gpt-5-chat-latest', 'openai');
+ expect(mockFunctionCallChecker).toHaveBeenCalledWith('gpt-5.6-sol', 'openai');
expect(result.tools).toBeUndefined();
expect(result.enabledToolIds).toEqual([]);
expect(result.filteredTools).toEqual([
@@ -287,7 +287,7 @@ describe('ToolsEngine', () => {
const result = engine.generateToolsDetailed({
toolIds: ['lobe-web-browsing', 'non-existent', 'dalle'],
- model: 'gpt-5-chat-latest',
+ model: 'gpt-5.6-sol',
provider: 'openai',
});
@@ -333,7 +333,7 @@ describe('ToolsEngine', () => {
const result = engine.generateToolsDetailed({
toolIds: ['lobe-web-browsing', 'dalle'],
- model: 'gpt-5-chat-latest',
+ model: 'gpt-5.6-sol',
provider: 'openai',
});
diff --git a/packages/model-bank/src/aiModels/antgroup.ts b/packages/model-bank/src/aiModels/antgroup.ts
index e8b396083a0..6701ab2cc60 100644
--- a/packages/model-bank/src/aiModels/antgroup.ts
+++ b/packages/model-bank/src/aiModels/antgroup.ts
@@ -54,6 +54,35 @@ const antgroupChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ structuredOutput: true,
+ },
+ contextWindowTokens: 262_144, // Model can support 1M context window but API only release 256K
+ description:
+ 'Ling-3.0-flash is the latest generation high cost-performance model in the Ling series. It adopts a Mixture-of-Experts (MoE) architecture, with a total parameter count of 124B and 5.1B activated parameters per token. It natively supports a 256K context window, which can be expanded up to 1M. Compared to the previous flash version, Ling-3.0-flash significantly enhances long-horizon task stability, tool call accuracy, and adaptation to common Harness environments.',
+ displayName: 'Ling-3.0-flash',
+ enabled: true,
+ family: 'ling',
+ generation: 'ling-3.0',
+ id: 'Ling-3.0-flash',
+ pricing: {
+ currency: 'CNY',
+ units: [
+ { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-07-23',
+ settings: {
+ extendParams: ['enableReasoning'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
@@ -64,7 +93,6 @@ const antgroupChatModels: AIChatModelCard[] = [
description:
'The latest flagship large language model, featuring support for a 1M-token context window and enabling an end-to-end workflow from logical reasoning to task execution.',
displayName: 'Ling-2.6-1T',
- enabled: true,
family: 'ling',
generation: 'ling-2.6',
id: 'Ling-2.6-1T',
@@ -91,7 +119,6 @@ const antgroupChatModels: AIChatModelCard[] = [
description:
'Ling-2.6-flash is the latest generation high cost-performance model in the Ling series. It adopts a Mixture-of-Experts (MoE) architecture, with a total parameter count of 100B and 6.1B activated parameters per token, achieving an optimal balance between inference performance and computational cost.',
displayName: 'Ling-2.6-flash',
- enabled: true,
family: 'ling',
generation: 'ling-2.6',
id: 'Ling-2.6-flash',
diff --git a/packages/model-bank/src/aiModels/cerebras.ts b/packages/model-bank/src/aiModels/cerebras.ts
index c9d98a319dd..b49b4e64043 100644
--- a/packages/model-bank/src/aiModels/cerebras.ts
+++ b/packages/model-bank/src/aiModels/cerebras.ts
@@ -5,10 +5,35 @@ const cerebrasModels: AIChatModelCard[] = [
abilities: {
functionCall: true,
reasoning: true,
+ vision: true,
},
contextWindowTokens: 131_072,
- displayName: 'GPT OSS 120B',
+ description:
+ 'This model excels at multimodal reasoning across screenshots, documents, diagrams, and design assets. Ideal for visual agentic workflows, image-aware copilots, and teams migrating from closed multimodal APIs to an open model.',
+ displayName: 'Gemma 4 31B',
enabled: true,
+ family: 'gemma',
+ generation: 'gemma-4',
+ id: 'gemma-4-31b',
+ maxOutput: 40_960,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 1.49, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ settings: {
+ extendParams: ['enableReasoning'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ },
+ contextWindowTokens: 131_072,
+ displayName: 'GPT OSS 120B',
family: 'gpt-oss',
generation: 'gpt-oss',
id: 'gpt-oss-120b',
@@ -46,6 +71,9 @@ const cerebrasModels: AIChatModelCard[] = [
],
},
releasedAt: '2025-12-22',
+ settings: {
+ extendParams: ['enableReasoning'],
+ },
type: 'chat',
},
];
diff --git a/packages/model-bank/src/aiModels/cloudflare.ts b/packages/model-bank/src/aiModels/cloudflare.ts
index 6d7bec66983..c52e37740ca 100644
--- a/packages/model-bank/src/aiModels/cloudflare.ts
+++ b/packages/model-bank/src/aiModels/cloudflare.ts
@@ -33,15 +33,6 @@ const cloudflareChatModels: AIChatModelCard[] = [
id: '@cf/qwen/qwen2.5-coder-32b-instruct',
type: 'chat',
},
- {
- contextWindowTokens: 80_000,
- displayName: 'gemma 3 12b',
- family: 'gemma',
- generation: 'gemma-3',
- id: '@cf/google/gemma-3-12b-it',
- knowledgeCutoff: '2024-08',
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -77,21 +68,6 @@ const cloudflareChatModels: AIChatModelCard[] = [
knowledgeCutoff: '2023-10',
type: 'chat',
},
- {
- contextWindowTokens: 8192,
- displayName: 'openchat-3.5-0106',
- id: '@cf/openchat/openchat-3.5-0106',
- type: 'chat',
- },
- {
- contextWindowTokens: 7500,
- displayName: 'qwen1.5-14b-chat-awq',
- enabled: true,
- family: 'qwen',
- generation: 'qwen1.5',
- id: '@cf/qwen/qwen1.5-14b-chat-awq',
- type: 'chat',
- },
{
contextWindowTokens: 128_000,
displayName: 'llama 3.1 8b',
diff --git a/packages/model-bank/src/aiModels/cohere.ts b/packages/model-bank/src/aiModels/cohere.ts
index 29838cd2cf0..cf96fdc9bc9 100644
--- a/packages/model-bank/src/aiModels/cohere.ts
+++ b/packages/model-bank/src/aiModels/cohere.ts
@@ -4,38 +4,36 @@ const cohereChatModels: AIChatModelCard[] = [
{
abilities: {
functionCall: true,
+ reasoning: true,
+ vision: true,
},
- contextWindowTokens: 256_000,
+ contextWindowTokens: 128_000,
description:
- 'Command A is our most capable model to date, excelling at tool use, agents, RAG, and multilingual scenarios. It has a 256K context window, runs on just two GPUs, and delivers 150% higher throughput than Command R+ 08-2024.',
- displayName: 'Command A 2503',
+ "Command A+ is Cohere's first Mixture of Experts model, combining vision input support, agentic, reasoning, and world-class translation capabilities into a single model. It supports 48 languages and can run on 1× B200 or 2× H100 GPUs.",
+ displayName: 'Command A+ 2605',
enabled: true,
family: 'command',
- id: 'command-a-03-2025',
- maxOutput: 8000,
- pricing: {
- units: [
- { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
+ id: 'command-a-plus-05-2026',
+ maxOutput: 64_000,
+ releasedAt: '2026-05-20',
type: 'chat',
},
{
abilities: {
functionCall: true,
},
- contextWindowTokens: 128_000,
+ contextWindowTokens: 256_000,
description:
- 'command-r-plus is an alias of command-r-plus-04-2024, so using command-r-plus in the API points to that model.',
- displayName: 'Command R+ 2404',
+ 'Command A is our most capable model to date, excelling at tool use, agents, RAG, and multilingual scenarios. It has a 256K context window, runs on just two GPUs, and delivers 150% higher throughput than Command R+ 08-2024.',
+ displayName: 'Command A 2503',
+ enabled: true,
family: 'command',
- id: 'command-r-plus-04-2024',
- maxOutput: 4000,
+ id: 'command-a-03-2025',
+ maxOutput: 8000,
pricing: {
units: [
- { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
],
},
type: 'chat',
@@ -61,25 +59,6 @@ const cohereChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 128_000,
- description:
- 'command-r is an instruction-following chat model that performs language tasks with higher quality, improved reliability, and longer context than previous models. It supports complex workflows such as code generation, RAG, tool use, and agents.',
- displayName: 'Command R 2403',
- family: 'command',
- id: 'command-r-03-2024',
- maxOutput: 4000,
- 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,
@@ -119,72 +98,6 @@ const cohereChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- contextWindowTokens: 4000,
- description:
- 'An instruction-following chat model that delivers higher quality and reliability on language tasks, with a longer context window than our base generative models.',
- displayName: 'Command',
- family: 'command',
- id: 'command',
- maxOutput: 4000,
- pricing: {
- units: [
- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 128_000,
- description:
- 'To shorten the gap between major releases, we offer nightly Command builds. For the Command series this is called command-nightly. It is the newest, most experimental (and potentially unstable) version, updated regularly without notice, so it is not recommended for production.',
- displayName: 'Command Nightly',
- family: 'command',
- id: 'command-nightly',
- maxOutput: 4000,
- pricing: {
- units: [
- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- contextWindowTokens: 4000,
- description: 'A smaller, faster Command variant that is nearly as capable but faster.',
- displayName: 'Command Light',
- family: 'command',
- id: 'command-light',
- maxOutput: 4000,
- pricing: {
- units: [
- { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- contextWindowTokens: 4000,
- description:
- 'To shorten the gap between major releases, we offer nightly Command builds. For the command-light series this is called command-light-nightly. It is the newest, most experimental (and potentially unstable) version, updated regularly without notice, so it is not recommended for production.',
- displayName: 'Command Light Nightly',
- family: 'command',
- id: 'command-light-nightly',
- maxOutput: 4000,
- pricing: {
- units: [
- { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
contextWindowTokens: 128_000,
description:
@@ -202,23 +115,6 @@ const cohereChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- contextWindowTokens: 8000,
- description:
- 'Aya Expanse is a high-performance 8B multilingual model that uses instruction tuning, data arbitrage, preference training, and model merging to rival monolingual models. It supports 23 languages.',
- displayName: 'Aya Expanse 8B',
- enabled: true,
- family: 'aya',
- id: 'c4ai-aya-expanse-8b',
- maxOutput: 4000,
- pricing: {
- units: [
- { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
abilities: {
vision: true,
@@ -239,26 +135,6 @@ const cohereChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- vision: true,
- },
- contextWindowTokens: 16_000,
- description:
- 'Aya Vision is a state-of-the-art multimodal model that performs strongly on key language, text, and vision benchmarks. This 8B version focuses on low latency and strong performance.',
- displayName: 'Aya Vision 8B',
- enabled: true,
- family: 'aya',
- id: 'c4ai-aya-vision-8b',
- maxOutput: 4000,
- pricing: {
- units: [
- { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
];
export const allModels = [...cohereChatModels];
diff --git a/packages/model-bank/src/aiModels/google.ts b/packages/model-bank/src/aiModels/google.ts
index a92bf82502a..bcf4f120930 100644
--- a/packages/model-bank/src/aiModels/google.ts
+++ b/packages/model-bank/src/aiModels/google.ts
@@ -1129,89 +1129,6 @@ const googleVideoModels: AIVideoModelCard[] = [
releasedAt: '2026-01-13',
type: 'video',
},
- {
- description:
- 'Our stable video generation model, available to developers on the paid tier of the Gemini API.',
- displayName: 'Veo 3.0 Generate 001',
- enabled: true,
- id: 'veo-3.0-generate-001',
- parameters: {
- aspectRatio: {
- default: '16:9',
- enum: ['16:9', '9:16'],
- },
- duration: { default: 8, enum: [8] },
- imageUrl: {
- default: null,
- },
- prompt: { default: '' },
- resolution: {
- default: '720p',
- enum: ['720p', '1080p'],
- },
- seed: { default: null },
- },
- pricing: {
- units: [{ name: 'videoGeneration', rate: 0.4, strategy: 'fixed', unit: 'second' }],
- },
- releasedAt: '2025-11-11',
- type: 'video',
- },
- {
- description:
- 'Our stable video generation model, available to developers on the paid tier of the Gemini API.',
- displayName: 'Veo 3.0 Fast Generate 001',
- enabled: true,
- id: 'veo-3.0-fast-generate-001',
- parameters: {
- aspectRatio: {
- default: '16:9',
- enum: ['16:9', '9:16'],
- },
- duration: { default: 8, enum: [8] },
- imageUrl: {
- default: null,
- },
- prompt: { default: '' },
- resolution: {
- default: '720p',
- enum: ['720p', '1080p'],
- },
- seed: { default: null },
- },
- pricing: {
- units: [{ name: 'videoGeneration', rate: 0.15, strategy: 'fixed', unit: 'second' }],
- },
- releasedAt: '2025-11-11',
- type: 'video',
- },
- {
- description:
- 'Our state-of-the-art video generation model, available to developers on the paid tier of the Gemini API.',
- displayName: 'Veo 2.0 Generate 001',
- id: 'veo-2.0-generate-001',
- parameters: {
- aspectRatio: {
- default: '16:9',
- enum: ['16:9', '9:16'],
- },
- duration: { default: 8, max: 8, min: 5 },
- imageUrl: {
- default: null,
- },
- prompt: { default: '' },
- resolution: {
- default: '720p',
- enum: ['720p', '1080p'],
- },
- seed: { default: null },
- },
- pricing: {
- units: [{ name: 'videoGeneration', rate: 0.35, strategy: 'fixed', unit: 'second' }],
- },
- releasedAt: '2025-04-09',
- type: 'video',
- },
];
export const allModels = [...googleChatModels, ...googleImageModels, ...googleVideoModels];
diff --git a/packages/model-bank/src/aiModels/groq.ts b/packages/model-bank/src/aiModels/groq.ts
index 3829ffcc07e..22902278bff 100644
--- a/packages/model-bank/src/aiModels/groq.ts
+++ b/packages/model-bank/src/aiModels/groq.ts
@@ -22,6 +22,49 @@ const groqChatModels: AIChatModelCard[] = [
maxOutput: 8192,
type: 'chat',
},
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ vision: true,
+ },
+ contextWindowTokens: 131_072,
+ description:
+ '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',
+ enabled: true,
+ family: 'qwen',
+ generation: 'qwen3.6',
+ id: 'qwen/qwen3.6-27b',
+ maxOutput: 16_384,
+ pricing: {
+ units: [
+ { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-04-23',
+ settings: {
+ extendParams: ['enableReasoning'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ },
+ contextWindowTokens: 196_608,
+ description:
+ 'MiniMax M2.7 is a 229B-parameter MoE model (~10B active) built for agentic workflows and real-world software engineering. It interleaves thinking with actions across multi-step tasks and is available on Groq for Enterprise customers.',
+ displayName: 'MiniMax M2.7',
+ family: 'minimax',
+ generation: 'minimax-m2.7',
+ id: 'minimaxai/minimax-m2.7',
+ maxOutput: 131_072,
+ releasedAt: '2026-03-18',
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
@@ -43,6 +86,9 @@ const groqChatModels: AIChatModelCard[] = [
],
},
releasedAt: '2025-08-06',
+ settings: {
+ extendParams: ['reasoningEffort'],
+ },
type: 'chat',
},
{
@@ -66,40 +112,8 @@ const groqChatModels: AIChatModelCard[] = [
],
},
releasedAt: '2025-08-06',
- type: 'chat',
- },
- {
- contextWindowTokens: 131_072,
- displayName: 'Llama 4 Scout (17Bx16E)',
- enabled: true,
- family: 'llama',
- generation: 'llama-4',
- id: 'meta-llama/llama-4-scout-17b-16e-instruct',
- knowledgeCutoff: '2024-08',
- maxOutput: 8192,
- pricing: {
- units: [
- { name: 'textInput', rate: 0.11, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.34, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- reasoning: true,
- },
- contextWindowTokens: 131_072,
- displayName: 'Qwen3 32B',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen/qwen3-32b',
- maxOutput: 40_960,
- pricing: {
- units: [
- { name: 'textInput', rate: 0.29, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.59, strategy: 'fixed', unit: 'millionTokens' },
- ],
+ settings: {
+ extendParams: ['reasoningEffort'],
},
type: 'chat',
},
diff --git a/packages/model-bank/src/aiModels/longcat.ts b/packages/model-bank/src/aiModels/longcat.ts
index 957cabe7889..2eb011c65f0 100644
--- a/packages/model-bank/src/aiModels/longcat.ts
+++ b/packages/model-bank/src/aiModels/longcat.ts
@@ -4,23 +4,28 @@ const longcatModels: AIChatModelCard[] = [
{
abilities: {
functionCall: true,
+ reasoning: true,
},
- contextWindowTokens: 1_000_000,
+ contextWindowTokens: 1_048_576,
description:
- 'The core features of LongCat-2.0-Preview are as follows: Designed for agent development scenarios, with native support for tool use, multi-step reasoning, and long-context tasks; Excels in code generation, automated workflows, and complex instruction execution; Deeply integrated with productivity tools such as Claude Code, OpenClaw, OpenCode, and Kilo Code.',
- displayName: 'LongCat-2.0-Preview',
+ 'LongCat-2.0 is a 1600B MoE language model from Meituan designed for agent development scenarios. It natively supports tool calling, multi-step reasoning, and long-context tasks, with strong performance in code generation, automated workflows, and complex instruction execution. It is deeply integrated with productivity tools including Claude Code, OpenClaw, OpenCode, and Kilo Code.',
+ displayName: 'LongCat-2.0',
enabled: true,
family: 'longcat',
generation: 'longcat-2.0',
- id: 'LongCat-2.0-Preview',
- maxOutput: 128_000,
+ id: 'LongCat-2.0',
+ maxOutput: 131_072,
pricing: {
units: [
- { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 2.95, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.015, strategy: 'fixed', unit: 'millionTokens' },
],
},
- releasedAt: '2026-04-20',
+ releasedAt: '2026-06-30',
+ settings: {
+ extendParams: ['enableReasoning'],
+ },
type: 'chat',
},
];
diff --git a/packages/model-bank/src/aiModels/nvidia.ts b/packages/model-bank/src/aiModels/nvidia.ts
index 09290863ec3..b02084dc2a0 100644
--- a/packages/model-bank/src/aiModels/nvidia.ts
+++ b/packages/model-bank/src/aiModels/nvidia.ts
@@ -1,19 +1,6 @@
import { type AIChatModelCard } from '../types/aiModel';
const nvidiaChatModels: AIChatModelCard[] = [
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- contextWindowTokens: 204_800,
- displayName: 'MiniMax-M2.7',
- family: 'minimax',
- generation: 'minimax-m2.7',
- id: 'minimaxai/minimax-m2.7',
- maxOutput: 131_072,
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -103,15 +90,6 @@ const nvidiaChatModels: AIChatModelCard[] = [
id: 'nvidia/llama-3.1-nemotron-70b-instruct',
type: 'chat',
},
- {
- contextWindowTokens: 8192,
- description: 'An advanced small language model designed for edge applications.',
- displayName: 'Gemma 2 2B Instruct',
- family: 'gemma',
- generation: 'gemma-2',
- id: 'google/gemma-2-2b-it',
- type: 'chat',
- },
];
export const allModels = [...nvidiaChatModels];
diff --git a/packages/model-bank/src/aiModels/ollamacloud.ts b/packages/model-bank/src/aiModels/ollamacloud.ts
index ca92a58f040..0d6c12bc486 100644
--- a/packages/model-bank/src/aiModels/ollamacloud.ts
+++ b/packages/model-bank/src/aiModels/ollamacloud.ts
@@ -117,19 +117,6 @@ const ollamaCloudModels: AIChatModelCard[] = [
id: 'qwen3.5:397b',
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 262_144,
- description:
- "Qwen3-Coder-Next is a coding-focused language model from Alibaba's Qwen team, optimized for agentic coding workflows and local development. Built on top of Qwen3-Next-80B-A3B-Base with hybrid attention and MoE architecture, trained on large-scale executable tasks with environment interaction and reinforcement learning.",
- displayName: 'Qwen3 Coder Next',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-coder-next',
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -144,20 +131,6 @@ const ollamaCloudModels: AIChatModelCard[] = [
id: 'minimax-m2.5',
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- contextWindowTokens: 200_000,
- 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',
- family: 'glm',
- generation: 'glm-5',
- id: 'glm-5',
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -173,75 +146,6 @@ const ollamaCloudModels: AIChatModelCard[] = [
id: 'kimi-k2.5',
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 262_144,
- description:
- 'Devstral 2 123B excels at using tools to explore codebases, edit multiple files, and support software engineering agents.',
- displayName: 'Devstral 2',
- family: 'devstral',
- id: 'devstral-2:123b',
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- vision: true,
- },
- contextWindowTokens: 1_048_576,
- description:
- 'Gemini 3 Flash is the smartest model built for speed, combining cutting-edge intelligence with excellent search grounding.',
- displayName: 'Gemini 3 Flash Preview',
- family: 'gemini',
- generation: 'gemini-3',
- id: 'gemini-3-flash-preview',
- knowledgeCutoff: '2025-01',
- releasedAt: '2025-12-17',
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- contextWindowTokens: 204_800,
- displayName: 'MiniMax M2.1',
- family: 'minimax',
- generation: 'minimax-m2.1',
- id: 'minimax-m2.1',
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- contextWindowTokens: 200_000,
- description:
- "GLM-4.7 is Zhipu's latest flagship model, enhanced for Agentic Coding scenarios with improved coding capabilities, long-term task planning, and tool collaboration. It achieves leading performance among open-source models on multiple public benchmarks. General capabilities are improved with more concise and natural responses and more immersive writing. For complex agent tasks, instruction following during tool calls is stronger, and the frontend aesthetics and long-term task completion efficiency of Artifacts and Agentic Coding are further enhanced.",
- displayName: 'GLM-4.7',
- family: 'glm',
- generation: 'glm-4.7',
- id: 'glm-4.7',
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- contextWindowTokens: 163_840,
- description:
- 'DeepSeek V3.1 is a next-generation reasoning model with improved complex reasoning and chain-of-thought, suited for tasks requiring deep analysis.',
- displayName: 'DeepSeek V3.1',
- family: 'deepseek',
- generation: 'deepseek-v3.1',
- id: 'deepseek-v3.1:671b',
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -274,63 +178,6 @@ const ollamaCloudModels: AIChatModelCard[] = [
releasedAt: '2025-08-05',
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 262_144,
- description: "Alibaba's high-performance long-context model for agent and coding tasks.",
- displayName: 'Qwen3 Coder 480B',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-coder:480b',
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- vision: true,
- },
- contextWindowTokens: 262_144,
- description:
- 'Ministral 3 3B is the smallest and most efficient model in the Ministral 3 series, offering strong language and vision capabilities in a compact package. Designed for edge deployment, it delivers high performance on various hardware including local setups.',
- displayName: 'Ministral 3 3B',
- family: 'ministral',
- id: 'ministral-3:3b',
- knowledgeCutoff: '2023-10',
- releasedAt: '2025-12-02',
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- vision: true,
- },
- contextWindowTokens: 262_144,
- description:
- 'Ministral 3 8B is a powerful and efficient model in the Ministral 3 series, delivering top-tier text and vision capabilities. Built for edge deployment, it delivers high performance on various hardware including local setups.',
- displayName: 'Ministral 3 8B',
- family: 'ministral',
- id: 'ministral-3:8b',
- knowledgeCutoff: '2023-10',
- releasedAt: '2025-12-02',
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- vision: true,
- },
- contextWindowTokens: 262_144,
- description:
- 'Ministral 3 14B is the largest model in the Ministral 3 series, delivering state-of-the-art performance comparable to the larger Mistral Small 3.2 24B counterpart. Optimized for local deployment, it delivers high performance on various hardware including local setups.',
- displayName: 'Ministral 3 14B',
- family: 'ministral',
- id: 'ministral-3:14b',
- knowledgeCutoff: '2023-10',
- releasedAt: '2025-12-02',
- type: 'chat',
- },
{
abilities: {
functionCall: true,
diff --git a/packages/model-bank/src/aiModels/openai.ts b/packages/model-bank/src/aiModels/openai.ts
index 3caa5084aef..9df627b6085 100644
--- a/packages/model-bank/src/aiModels/openai.ts
+++ b/packages/model-bank/src/aiModels/openai.ts
@@ -578,37 +578,6 @@ export const openaiChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- search: true,
- structuredOutput: true,
- vision: true,
- },
- contextWindowTokens: 400_000,
- description:
- 'GPT-5.2-Codex is an upgraded GPT-5.2 variant optimized for long-horizon, agentic coding tasks.',
- displayName: 'GPT-5.2 Codex',
- family: 'gpt',
- generation: 'gpt-5.2',
- id: 'gpt-5.2-codex',
- knowledgeCutoff: '2025-08',
- maxOutput: 128_000,
- pricing: {
- units: [
- { name: 'textInput', rate: 1.75, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput_cacheRead', rate: 0.175, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 14, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-12-18',
- settings: {
- extendParams: ['codexMaxReasoningEffort'],
- searchImpl: 'params',
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -692,119 +661,6 @@ export const openaiChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- vision: true,
- },
- contextWindowTokens: 128_000,
- description: 'GPT-5.1 Chat: the ChatGPT variant of GPT-5.1, built for chat scenarios.',
- displayName: 'GPT-5.1 Chat',
- family: 'gpt',
- generation: 'gpt-5.1',
- id: 'gpt-5.1-chat-latest',
- knowledgeCutoff: '2024-09',
- maxOutput: 16_384,
- pricing: {
- units: [
- { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput_cacheRead', rate: 0.125, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-11-13',
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- search: true,
- vision: true,
- },
- contextWindowTokens: 400_000,
- description:
- "GPT-5.1 Codex Max: OpenAI's most intelligent coding model, optimized for long-horizon agentic coding tasks, supports reasoning tokens.",
- displayName: 'GPT-5.1 Codex Max',
- family: 'gpt',
- generation: 'gpt-5.1',
- id: 'gpt-5.1-codex-max',
- knowledgeCutoff: '2024-09',
- maxOutput: 128_000,
- pricing: {
- units: [
- { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput_cacheRead', rate: 0.125, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-12-04',
- settings: {
- extendParams: ['codexMaxReasoningEffort'],
- searchImpl: 'params',
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- search: true,
- vision: true,
- },
- contextWindowTokens: 400_000,
- description:
- 'GPT-5.1 Codex: a GPT-5.1 variant optimized for agentic coding tasks, for complex code/agent workflows in the Responses API.',
- displayName: 'GPT-5.1 Codex',
- family: 'gpt',
- generation: 'gpt-5.1',
- id: 'gpt-5.1-codex',
- knowledgeCutoff: '2024-09',
- maxOutput: 128_000,
- pricing: {
- units: [
- { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput_cacheRead', rate: 0.125, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-11-13',
- settings: {
- extendParams: ['reasoningEffort'],
- searchImpl: 'params',
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- search: true,
- vision: true,
- },
- contextWindowTokens: 400_000,
- description:
- 'GPT-5.1 Codex mini: a smaller, lower-cost Codex variant optimized for agentic coding tasks.',
- displayName: 'GPT-5.1 Codex mini',
- family: 'gpt',
- generation: 'gpt-5.1',
- id: 'gpt-5.1-codex-mini',
- knowledgeCutoff: '2024-09',
- maxOutput: 128_000,
- pricing: {
- units: [
- { name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-11-13',
- settings: {
- extendParams: ['reasoningEffort'],
- searchImpl: 'params',
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -834,36 +690,6 @@ export const openaiChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- search: true,
- vision: true,
- },
- contextWindowTokens: 400_000,
- description:
- 'GPT-5 Codex is a GPT-5 variant optimized for agentic coding tasks in Codex-like environments.',
- displayName: 'GPT-5 Codex',
- family: 'gpt',
- generation: 'gpt-5',
- id: 'gpt-5-codex',
- knowledgeCutoff: '2024-09',
- maxOutput: 128_000,
- pricing: {
- units: [
- { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput_cacheRead', rate: 0.125, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2024-09-15',
- settings: {
- extendParams: ['gpt5ReasoningEffort'],
- searchImpl: 'params',
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -954,29 +780,6 @@ export const openaiChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- vision: true,
- },
- contextWindowTokens: 400_000,
- description:
- 'The GPT-5 model used in ChatGPT, combining strong understanding and generation for conversational applications.',
- displayName: 'GPT-5 Chat',
- family: 'gpt',
- generation: 'gpt-5',
- id: 'gpt-5-chat-latest',
- knowledgeCutoff: '2024-09',
- maxOutput: 128_000,
- pricing: {
- units: [
- { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput_cacheRead', rate: 0.125, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-08-07',
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -1007,36 +810,6 @@ export const openaiChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- search: true,
- vision: true,
- },
- contextWindowTokens: 200_000,
- description:
- 'o4-mini-deep-research is a faster, more affordable deep research model for complex multi-step research. It can search the web and also access your data via MCP connectors.',
- displayName: 'o4-mini Deep Research',
- family: 'o-series',
- generation: 'o4',
- id: 'o4-mini-deep-research',
- knowledgeCutoff: '2024-06',
- maxOutput: 100_000,
- pricing: {
- units: [
- { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-06-26',
- settings: {
- extendParams: ['reasoningEffort'],
- searchImpl: 'params',
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -1096,36 +869,6 @@ export const openaiChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- search: true,
- vision: true,
- },
- contextWindowTokens: 200_000,
- description:
- 'o3-deep-research is our most advanced deep research model for complex multi-step tasks. It can search the web and access your data via MCP connectors.',
- displayName: 'o3 Deep Research',
- family: 'o-series',
- generation: 'o3',
- id: 'o3-deep-research',
- knowledgeCutoff: '2024-06',
- maxOutput: 100_000,
- pricing: {
- units: [
- { name: 'textInput_cacheRead', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 40, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-06-26',
- settings: {
- extendParams: ['reasoningEffort'],
- searchImpl: 'params',
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -1315,31 +1058,6 @@ export const openaiChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- search: true,
- },
- contextWindowTokens: 128_000,
- description:
- 'GPT-4o mini Search Preview is trained to understand and execute web search queries via the Chat Completions API. Web search is billed per tool call in addition to token costs.',
- displayName: 'GPT-4o mini Search Preview',
- family: 'gpt',
- generation: 'gpt-4o',
- id: 'gpt-4o-mini-search-preview',
- knowledgeCutoff: '2023-10',
- maxOutput: 16_384,
- pricing: {
- units: [
- { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-03-11',
- settings: {
- searchImpl: 'internal',
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -1367,31 +1085,6 @@ export const openaiChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- search: true,
- },
- contextWindowTokens: 128_000,
- description:
- 'GPT-4o Search Preview is trained to understand and execute web search queries via the Chat Completions API. Web search is billed per tool call in addition to token costs.',
- displayName: 'GPT-4o Search Preview',
- family: 'gpt',
- generation: 'gpt-4o',
- id: 'gpt-4o-search-preview',
- knowledgeCutoff: '2023-10',
- maxOutput: 16_384,
- pricing: {
- units: [
- { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-03-11',
- settings: {
- searchImpl: 'internal',
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -1633,32 +1326,6 @@ export const openaiChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- vision: true,
- },
- contextWindowTokens: 8192,
- description:
- 'computer-use-preview is a specialized model for the "computer use tool," trained to understand and execute computer-related tasks.',
- displayName: 'Computer Use Preview',
- family: 'gpt',
- id: 'computer-use-preview',
- knowledgeCutoff: '2023-10',
- maxOutput: 1024,
- pricing: {
- units: [
- { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-03-11',
- settings: {
- extendParams: ['reasoningEffort'],
- },
- type: 'chat',
- },
];
export const openaiEmbeddingModels: AIEmbeddingModelCard[] = [
diff --git a/packages/model-bank/src/aiModels/qwen.ts b/packages/model-bank/src/aiModels/qwen.ts
index 4ba04ce8d1f..88b95d8ce5e 100644
--- a/packages/model-bank/src/aiModels/qwen.ts
+++ b/packages/model-bank/src/aiModels/qwen.ts
@@ -1650,6 +1650,69 @@ const qwenChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ video: true,
+ vision: true,
+ },
+ config: {
+ deploymentName: 'qwen3.7-flash', // Supports context caching
+ },
+ contextWindowTokens: 1_000_000,
+ description:
+ 'Qwen3.7 native vision-language Flash model, with comprehensive improvements in multimodal understanding and Agent execution capabilities compared to Qwen3.6-Flash. Key enhancements include strengthened multimodal foundational capabilities, stronger universal object recognition, further improved real-world perception and spatial intelligence, significantly upgraded capabilities in multimodal Agent scenarios such as Search Agent and CI Agent, more stable end-to-end task execution, optimized multimodal Coding capabilities, and a smoother vibe coding experience.',
+ displayName: 'Qwen3.7 Flash',
+ enabled: true,
+ family: 'qwen',
+ generation: 'qwen3.7',
+ id: 'qwen3.7-flash',
+ maxOutput: 65_536,
+ organization: 'Qwen',
+ pricing: {
+ currency: 'CNY',
+ units: [
+ {
+ name: 'textInput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.2, upTo: 32_000 },
+ { rate: 0.6, upTo: 256_000 },
+ { rate: 1.2, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textOutput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.8, upTo: 32_000 },
+ { rate: 2.4, upTo: 256_000 },
+ { rate: 4.8, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput_cacheRead',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.2 * 0.2, upTo: 32_000 },
+ { rate: 0.6 * 0.2, upTo: 256_000 },
+ { rate: 1.2 * 0.2, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2026-07-21',
+ settings: {
+ extendParams: ['enableReasoning', 'reasoningBudgetToken', 'preserveThinking'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
@@ -1665,7 +1728,6 @@ const qwenChatModels: AIChatModelCard[] = [
description:
'Qwen3.6 native vision-language Flash model delivers significantly improved performance compared to the 3.5-Flash version. This model focuses on enhancing agentic coding capabilities (substantially outperforming its predecessor across multiple code-agent benchmarks), as well as improving mathematical reasoning and code reasoning abilities. On the vision side, it shows notable gains in spatial intelligence, with particularly strong improvements in object localization and target detection.',
displayName: 'Qwen3.6 Flash',
- enabled: true,
family: 'qwen',
generation: 'qwen3.6',
id: 'qwen3.6-flash',
diff --git a/packages/model-bank/src/aiModels/siliconcloud.ts b/packages/model-bank/src/aiModels/siliconcloud.ts
index 2244b64646d..c72c1bffb74 100644
--- a/packages/model-bank/src/aiModels/siliconcloud.ts
+++ b/packages/model-bank/src/aiModels/siliconcloud.ts
@@ -6,6 +6,58 @@ import {
// https://siliconflow.cn/zh-cn/models
const siliconcloudChatModels: AIChatModelCard[] = [
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ },
+ contextWindowTokens: 1_048_576,
+ description:
+ 'LongCat-2.0 is a 1600B MoE language model from Meituan designed for agent development scenarios. It natively supports tool calling, multi-step reasoning, and long-context tasks, with strong performance in code generation, automated workflows, and complex instruction execution. It is deeply integrated with productivity tools including Claude Code, OpenClaw, OpenCode, and Kilo Code.',
+ displayName: 'LongCat-2.0',
+ family: 'longcat',
+ generation: 'longcat-2.0',
+ id: 'meituan-longcat/LongCat-2.0',
+ organization: 'Meituan',
+ pricing: {
+ currency: 'CNY',
+ units: [
+ { name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-06-30',
+ settings: {
+ extendParams: ['enableReasoning'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ vision: true,
+ },
+ contextWindowTokens: 262_144,
+ description:
+ 'Nex-N2 is an agentic thinking model that adaptively decides when and how deeply to reason. It handles coding, search, and tool tasks through a unified thinking paradigm with strong generalization capabilities.',
+ displayName: 'Nex-N2-Pro',
+ family: 'nex',
+ generation: 'nex-n2',
+ id: 'nex-agi/Nex-N2-Pro',
+ organization: 'Nex-AGI',
+ pricing: {
+ currency: 'CNY',
+ units: [
+ { name: 'textInput_cacheRead', rate: 0.175, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 1.75, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 7, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-06-03',
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
@@ -76,9 +128,9 @@ const siliconcloudChatModels: AIChatModelCard[] = [
pricing: {
currency: 'CNY',
units: [
- { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 24, strategy: 'fixed', unit: 'millionTokens' },
],
},
releasedAt: '2026-04-24',
@@ -159,30 +211,8 @@ const siliconcloudChatModels: AIChatModelCard[] = [
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',
- },
+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 18, strategy: 'fixed', unit: 'millionTokens' },
],
},
releasedAt: '2026-04-23',
@@ -208,30 +238,8 @@ const siliconcloudChatModels: AIChatModelCard[] = [
pricing: {
currency: 'CNY',
units: [
- {
- lookup: {
- prices: {
- '[0, 0.128]': 0.4,
- '[0.128, infinity]': 1.6,
- },
- pricingParams: ['textInput'],
- },
- name: 'textInput',
- strategy: 'lookup',
- unit: 'millionTokens',
- },
- {
- lookup: {
- prices: {
- '[0, 0.128]': 3.2,
- '[0.128, infinity]': 12.8,
- },
- pricingParams: ['textInput'],
- },
- name: 'textOutput',
- strategy: 'lookup',
- unit: 'millionTokens',
- },
+ { name: 'textInput', rate: 1.8, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 10.8, strategy: 'fixed', unit: 'millionTokens' },
],
},
releasedAt: '2026-04-17',
@@ -695,8 +703,9 @@ const siliconcloudChatModels: AIChatModelCard[] = [
pricing: {
currency: 'CNY',
units: [
- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },
],
},
releasedAt: '2025-12-01',
@@ -720,8 +729,9 @@ const siliconcloudChatModels: AIChatModelCard[] = [
pricing: {
currency: 'CNY',
units: [
- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },
],
},
releasedAt: '2025-12-01',
diff --git a/packages/model-bank/src/aiModels/volcengine.ts b/packages/model-bank/src/aiModels/volcengine.ts
index e9b383c706c..81c6e44198e 100644
--- a/packages/model-bank/src/aiModels/volcengine.ts
+++ b/packages/model-bank/src/aiModels/volcengine.ts
@@ -196,6 +196,47 @@ const doubaoChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ structuredOutput: true,
+ },
+ config: {
+ deploymentName: 'glm-5-2-260617',
+ },
+ contextWindowTokens: 1_048_576,
+ description:
+ 'GLM-5.2 is Zhipu AI’s flagship model for long-horizon tasks on Volcano Ark, with major improvements in coding, long-context understanding, planning, and tool collaboration. It supports a 1M-token context window and flexible reasoning effort control for complex development, mobile full-stack work, code migration, and research reproduction.',
+ displayName: 'GLM-5.2',
+ enabled: true,
+ family: 'glm',
+ generation: 'glm-5.2',
+ id: 'glm-5-2',
+ maxOutput: 131_072,
+ organization: 'Zhipu',
+ pricing: {
+ currency: 'CNY',
+ units: [
+ { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 28, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ {
+ lookup: { prices: { '1h': 0.017 }, pricingParams: ['ttl'] },
+ name: 'textInput_cacheWrite',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2026-06-17',
+ settings: {
+ extendParams: ['deepseekV4ReasoningEffort'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
diff --git a/packages/model-bank/src/aiModels/wenxin.ts b/packages/model-bank/src/aiModels/wenxin.ts
index e648580d038..be09e7cc475 100644
--- a/packages/model-bank/src/aiModels/wenxin.ts
+++ b/packages/model-bank/src/aiModels/wenxin.ts
@@ -310,43 +310,6 @@ const wenxinChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- contextWindowTokens: 131_072,
- description:
- 'ERNIE Speed Pro 128K is a high-concurrency, high-value model for large-scale online services and enterprise apps.',
- displayName: 'ERNIE Speed Pro 128K',
- family: 'ernie',
- id: 'ernie-speed-pro-128k',
- maxOutput: 4096,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 131_072,
- description:
- 'ERNIE Lite Pro 128K is a lightweight high-performance model for latency- and cost-sensitive scenarios.',
- displayName: 'ERNIE Lite Pro 128K',
- family: 'ernie',
- id: 'ernie-lite-pro-128k',
- maxOutput: 4096,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
contextWindowTokens: 8192,
description:
@@ -398,24 +361,6 @@ const wenxinChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- contextWindowTokens: 131_072,
- description:
- 'ERNIE 4.5 0.3B is an open-source lightweight model for local and customized deployment.',
- displayName: 'ERNIE 4.5 0.3B',
- family: 'ernie',
- generation: 'ernie-4.5',
- id: 'ernie-4.5-0.3b',
- maxOutput: 8192,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
contextWindowTokens: 32_768,
description:
@@ -617,56 +562,6 @@ const wenxinChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- reasoning: true,
- search: true,
- },
- contextWindowTokens: 32_768,
- description:
- 'ERNIE X1 Turbo 32K is a fast thinking model with 32K context for complex reasoning and multi-turn chat.',
- displayName: 'ERNIE X1 Turbo 32K',
- family: 'ernie',
- generation: 'ernie-x1',
- id: 'ernie-x1-turbo-32k',
- maxOutput: 28_160,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- settings: {
- searchImpl: 'params',
- },
- type: 'chat',
- },
- {
- abilities: {
- reasoning: true,
- search: true,
- },
- contextWindowTokens: 32_768,
- description:
- 'ERNIE X1 Turbo 32K Preview is a fast thinking model with 32K context for complex reasoning and multi-turn chat.',
- displayName: 'ERNIE X1 Turbo 32K Preview',
- family: 'ernie',
- generation: 'ernie-x1',
- id: 'ernie-x1-turbo-32k-preview',
- maxOutput: 28_160,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- settings: {
- searchImpl: 'params',
- },
- type: 'chat',
- },
{
abilities: {
vision: true,
@@ -687,26 +582,6 @@ const wenxinChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- vision: true,
- },
- contextWindowTokens: 131_072,
- description:
- 'Qianfan Check VL is a multimodal content review model for image-text compliance and recognition tasks.',
- displayName: 'Qianfan Check VL',
- family: 'qianfan',
- id: 'qianfan-check-vl',
- maxOutput: 131_072,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 3.75, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
abilities: {
vision: true,
@@ -727,44 +602,6 @@ const wenxinChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- vision: true,
- },
- contextWindowTokens: 32_768,
- description: 'Qianfan VL 70B is a large VLM for complex image-text understanding.',
- displayName: 'Qianfan VL 70B',
- family: 'qianfan',
- id: 'qianfan-vl-70b',
- maxOutput: 28_672,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 24, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- vision: true,
- },
- contextWindowTokens: 32_768,
- description: 'Qianfan VL 8B is a lightweight VLM for daily image-text QA and analysis.',
- displayName: 'Qianfan VL 8B',
- family: 'qianfan',
- id: 'qianfan-vl-8b',
- maxOutput: 28_672,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
abilities: {
vision: true,
@@ -908,19 +745,41 @@ const wenxinChatModels: AIChatModelCard[] = [
abilities: {
vision: true,
},
- contextWindowTokens: 131_072,
+ contextWindowTokens: 65_536,
description:
- 'Qwen3 VL 32B Instruct is a multimodal instruction-tuned model for high-quality image-text QA and creation.',
- displayName: 'Qwen3 VL 32B Instruct',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-vl-32b-instruct',
- maxOutput: 32_768,
+ 'GLM-4.5V is a multimodal vision-language model for general image understanding and QA.',
+ displayName: 'GLM-4.5V',
+ family: 'glm',
+ generation: 'glm-4.5',
+ id: 'glm-4.5v',
+ maxOutput: 16_384,
pricing: {
currency: 'CNY',
units: [
- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
+ {
+ lookup: {
+ prices: {
+ '[0, 0.032]': 2,
+ '[0.032, 0.064]': 4,
+ },
+ pricingParams: ['textInput'],
+ },
+ name: 'textInput',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
+ {
+ lookup: {
+ prices: {
+ '[0, 0.032]': 6,
+ '[0.032, 0.064]': 12,
+ },
+ pricingParams: ['textInput'],
+ },
+ name: 'textOutput',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
],
},
type: 'chat',
@@ -929,19 +788,18 @@ const wenxinChatModels: AIChatModelCard[] = [
abilities: {
vision: true,
},
- contextWindowTokens: 131_072,
+ contextWindowTokens: 4096,
description:
- 'Qwen3 VL 32B Thinking is a deep-thinking multimodal version for complex reasoning and long-chain analysis.',
- displayName: 'Qwen3 VL 32B Thinking',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-vl-32b-thinking',
- maxOutput: 32_768,
+ 'DeepSeek VL2 is a multimodal model for image-text understanding and fine-grained visual QA.',
+ displayName: 'DeepSeek VL2',
+ family: 'deepseek',
+ id: 'deepseek-vl2',
+ maxOutput: 2048,
pricing: {
currency: 'CNY',
units: [
- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },
],
},
type: 'chat',
@@ -950,336 +808,96 @@ const wenxinChatModels: AIChatModelCard[] = [
abilities: {
vision: true,
},
- contextWindowTokens: 131_072,
+ contextWindowTokens: 4096,
description:
- 'Qwen3 VL 8B Instruct is a lightweight multimodal model for daily visual QA and app integration.',
- displayName: 'Qwen3 VL 8B Instruct',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-vl-8b-instruct',
- maxOutput: 32_768,
+ 'DeepSeek VL2 Small is a lightweight multimodal version for resource-constrained and high-concurrency use.',
+ displayName: 'DeepSeek VL2 Small',
+ family: 'deepseek',
+ id: 'deepseek-vl2-small',
+ maxOutput: 2048,
pricing: {
currency: 'CNY',
units: [
{ name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
],
},
type: 'chat',
},
{
abilities: {
- vision: true,
+ functionCall: true,
+ reasoning: true,
+ search: true,
},
- contextWindowTokens: 131_072,
+ contextWindowTokens: 144_000,
description:
- 'Qwen3 VL 8B Thinking is a multimodal chain-of-thought model for detailed visual reasoning.',
- displayName: 'Qwen3 VL 8B Thinking',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-vl-8b-thinking',
+ 'DeepSeek V3.2 Think is a full deep-thinking model with stronger long-chain reasoning.',
+ displayName: 'DeepSeek V3.2 Think',
+ family: 'deepseek',
+ generation: 'deepseek-v3.2',
+ id: 'deepseek-v3.2-think',
maxOutput: 32_768,
pricing: {
currency: 'CNY',
units: [
- { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
],
},
+ settings: {
+ searchImpl: 'params',
+ },
type: 'chat',
},
{
abilities: {
- vision: true,
+ functionCall: true,
+ reasoning: true,
},
- contextWindowTokens: 131_072,
+ contextWindowTokens: 32_768,
description:
- 'Qwen3 VL 30B A3B Instruct is a large multimodal model balancing accuracy and reasoning performance.',
- displayName: 'Qwen3 VL 30B A3B Instruct',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-vl-30b-a3b-instruct',
- maxOutput: 32_768,
+ 'DeepSeek R1 Distill Qianfan 70B is an R1 distill based on Qianfan-70B with strong value.',
+ displayName: 'DeepSeek R1 Distill Qianfan 70B',
+ family: 'deepseek',
+ generation: 'deepseek-r1-distill',
+ id: 'deepseek-r1-distill-qianfan-70b',
+ maxOutput: 8192,
pricing: {
currency: 'CNY',
units: [
- { name: 'textInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
],
},
type: 'chat',
},
{
abilities: {
- vision: true,
+ functionCall: true,
+ reasoning: true,
},
- contextWindowTokens: 131_072,
+ contextWindowTokens: 32_768,
description:
- 'Qwen3 VL 30B A3B Thinking is a deep-thinking version for complex multimodal tasks.',
- displayName: 'Qwen3 VL 30B A3B Thinking',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-vl-30b-a3b-thinking',
- maxOutput: 32_768,
+ 'DeepSeek R1 Distill Qianfan 8B is an R1 distill based on Qianfan-8B for small and mid-sized apps.',
+ displayName: 'DeepSeek R1 Distill Qianfan 8B',
+ family: 'deepseek',
+ generation: 'deepseek-r1-distill',
+ id: 'deepseek-r1-distill-qianfan-8b',
+ maxOutput: 8192,
pricing: {
currency: 'CNY',
units: [
- { name: 'textInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 7.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
],
},
type: 'chat',
},
{
abilities: {
- vision: true,
- },
- contextWindowTokens: 131_072,
- description:
- 'Qwen3 VL 235B A22B Instruct is a flagship multimodal model for demanding understanding and creation.',
- displayName: 'Qwen3 VL 235B A22B Instruct',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-vl-235b-a22b-instruct',
- maxOutput: 32_768,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- vision: true,
- },
- contextWindowTokens: 131_072,
- description:
- 'Qwen3 VL 235B A22B Thinking is the flagship thinking version for complex multimodal reasoning and planning.',
- displayName: 'Qwen3 VL 235B A22B Thinking',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-vl-235b-a22b-thinking',
- maxOutput: 32_768,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- vision: true,
- },
- contextWindowTokens: 65_536,
- description:
- 'GLM-4.5V is a multimodal vision-language model for general image understanding and QA.',
- displayName: 'GLM-4.5V',
- family: 'glm',
- generation: 'glm-4.5',
- id: 'glm-4.5v',
- maxOutput: 16_384,
- pricing: {
- currency: 'CNY',
- units: [
- {
- lookup: {
- prices: {
- '[0, 0.032]': 2,
- '[0.032, 0.064]': 4,
- },
- pricingParams: ['textInput'],
- },
- name: 'textInput',
- strategy: 'lookup',
- unit: 'millionTokens',
- },
- {
- lookup: {
- prices: {
- '[0, 0.032]': 6,
- '[0.032, 0.064]': 12,
- },
- pricingParams: ['textInput'],
- },
- name: 'textOutput',
- strategy: 'lookup',
- unit: 'millionTokens',
- },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- vision: true,
- },
- contextWindowTokens: 4096,
- description:
- 'DeepSeek VL2 is a multimodal model for image-text understanding and fine-grained visual QA.',
- displayName: 'DeepSeek VL2',
- family: 'deepseek',
- id: 'deepseek-vl2',
- maxOutput: 2048,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- vision: true,
- },
- contextWindowTokens: 4096,
- description:
- 'DeepSeek VL2 Small is a lightweight multimodal version for resource-constrained and high-concurrency use.',
- displayName: 'DeepSeek VL2 Small',
- family: 'deepseek',
- id: 'deepseek-vl2-small',
- maxOutput: 2048,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- search: true,
- },
- contextWindowTokens: 144_000,
- description:
- 'DeepSeek V3.2 Think is a full deep-thinking model with stronger long-chain reasoning.',
- displayName: 'DeepSeek V3.2 Think',
- family: 'deepseek',
- generation: 'deepseek-v3.2',
- id: 'deepseek-v3.2-think',
- maxOutput: 32_768,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- settings: {
- searchImpl: 'params',
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- search: true,
- },
- contextWindowTokens: 144_000,
- description:
- 'DeepSeek V3.1 Think 250821 is the deep-thinking model corresponding to the Terminus version, built for high-performance reasoning.',
- displayName: 'DeepSeek V3.1 Think 250821',
- family: 'deepseek',
- generation: 'deepseek-v3.1',
- id: 'deepseek-v3.1-think-250821',
- maxOutput: 32_768,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- settings: {
- searchImpl: 'params',
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- contextWindowTokens: 144_000,
- description:
- 'DeepSeek R1 250528 is the full DeepSeek-R1 reasoning model for hard math and logic tasks.',
- displayName: 'DeepSeek R1 250528',
- family: 'deepseek',
- generation: 'deepseek-r1',
- id: 'deepseek-r1-250528',
- maxOutput: 32_768,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- settings: {
- extendParams: ['reasoningBudgetToken'],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- contextWindowTokens: 32_768,
- description:
- 'DeepSeek R1 Distill Qianfan 70B is an R1 distill based on Qianfan-70B with strong value.',
- displayName: 'DeepSeek R1 Distill Qianfan 70B',
- family: 'deepseek',
- generation: 'deepseek-r1-distill',
- id: 'deepseek-r1-distill-qianfan-70b',
- maxOutput: 8192,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- contextWindowTokens: 32_768,
- description:
- 'DeepSeek R1 Distill Qianfan 8B is an R1 distill based on Qianfan-8B for small and mid-sized apps.',
- displayName: 'DeepSeek R1 Distill Qianfan 8B',
- family: 'deepseek',
- generation: 'deepseek-r1-distill',
- id: 'deepseek-r1-distill-qianfan-8b',
- maxOutput: 8192,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
+ functionCall: true,
+ reasoning: true,
},
contextWindowTokens: 32_768,
description: 'DeepSeek R1 Distill Qianfan Llama 70B is an R1 distill based on Llama-70B.',
@@ -1318,50 +936,6 @@ const wenxinChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- contextWindowTokens: 32_768,
- description:
- 'DeepSeek R1 Distill Qwen 32B is an R1 distill based on Qwen-32B, balancing performance and cost.',
- displayName: 'DeepSeek R1 Distill Qwen 32B',
- family: 'deepseek',
- generation: 'deepseek-r1-distill',
- id: 'deepseek-r1-distill-qwen-32b',
- maxOutput: 8192,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- contextWindowTokens: 32_768,
- description:
- 'DeepSeek R1 Distill Qwen 14B is a mid-size distill model for multi-scenario deployment.',
- displayName: 'DeepSeek R1 Distill Qwen 14B',
- family: 'deepseek',
- generation: 'deepseek-r1-distill',
- id: 'deepseek-r1-distill-qwen-14b',
- maxOutput: 8192,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 2.4, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -1392,78 +966,6 @@ const wenxinChatModels: AIChatModelCard[] = [
maxOutput: 8192,
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- contextWindowTokens: 131_072,
- description:
- 'Qwen3 Next 80B A3B Thinking is a flagship reasoning model version for complex tasks.',
- displayName: 'Qwen3 Next 80B A3B Thinking',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-next-80b-a3b-thinking',
- maxOutput: 32_768,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- contextWindowTokens: 131_072,
- description:
- 'Qwen3 235B A22B Thinking 2507 is an ultra-large thinking model for hard reasoning.',
- displayName: 'Qwen3 235B A22B Thinking 2507',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-235b-a22b-thinking-2507',
- maxOutput: 32_768,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- settings: {
- extendParams: ['reasoningBudgetToken'],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- contextWindowTokens: 131_072,
- description:
- 'Qwen3 30B A3B Thinking 2507 is a mid-large thinking model balancing accuracy and cost.',
- displayName: 'Qwen3 30B A3B Thinking 2507',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-30b-a3b-thinking-2507',
- maxOutput: 32_768,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 7.5, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- settings: {
- extendParams: ['reasoningBudgetToken'],
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -1485,95 +987,6 @@ const wenxinChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 131_072,
- description:
- 'Qwen3 Coder 480B A35B Instruct is a flagship code model for multilingual programming and complex code understanding.',
- displayName: 'Qwen3 Coder 480B A35B Instruct',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-coder-480b-a35b-instruct',
- maxOutput: 65_536,
- pricing: {
- currency: 'CNY',
- units: [
- {
- lookup: {
- prices: {
- '[0, 0.032]': 6,
- '[0.032, 0.128]': 9,
- },
- pricingParams: ['textInput'],
- },
- name: 'textInput',
- strategy: 'lookup',
- unit: 'millionTokens',
- },
- {
- lookup: {
- prices: {
- '[0, 0.032]': 24,
- '[0.032, 0.128]': 36,
- },
- pricingParams: ['textInput'],
- },
- name: 'textOutput',
- strategy: 'lookup',
- unit: 'millionTokens',
- },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 131_072,
- description:
- 'Qwen3 235B A22B Instruct 2507 is a flagship instruct model for a wide range of generation and reasoning tasks.',
- displayName: 'Qwen3 235B A22B Instruct 2507',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-235b-a22b-instruct-2507',
- maxOutput: 32_768,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- search: true,
- },
- contextWindowTokens: 131_072,
- description:
- 'Qwen3 30B A3B Instruct 2507 is a mid-large instruct model for high-quality generation and QA.',
- displayName: 'Qwen3 30B A3B Instruct 2507',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-30b-a3b-instruct-2507',
- maxOutput: 32_768,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- settings: {
- searchImpl: 'params',
- },
- type: 'chat',
- },
{
contextWindowTokens: 32_768,
description: 'Qwen3 30B A3B is a mid-large general model balancing cost and quality.',
@@ -1594,67 +1007,6 @@ const wenxinChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- contextWindowTokens: 32_768,
- description: 'Qwen3 32B is suited for general tasks requiring stronger understanding.',
- displayName: 'Qwen3 32B',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-32b',
- maxOutput: 8192,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- settings: {
- extendParams: ['enableReasoning', 'reasoningBudgetToken'],
- },
- type: 'chat',
- },
- {
- contextWindowTokens: 32_768,
- description: 'Qwen3 14B is a mid-size model for multilingual QA and text generation.',
- displayName: 'Qwen3 14B',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-14b',
- 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', 'reasoningBudgetToken'],
- },
- type: 'chat',
- },
- {
- contextWindowTokens: 32_768,
- description:
- 'Qwen3 8B is a lightweight model with flexible deployment for high-concurrency workloads.',
- displayName: 'Qwen3 8B',
- family: 'qwen',
- generation: 'qwen3',
- id: 'qwen3-8b',
- maxOutput: 8192,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- settings: {
- extendParams: ['enableReasoning', 'reasoningBudgetToken'],
- },
- type: 'chat',
- },
];
const wenxinImageModels: AIImageModelCard[] = [
@@ -1692,28 +1044,6 @@ const wenxinImageModels: AIImageModelCard[] = [
},
type: 'image',
},
- {
- description:
- 'ERNIE-Image is an 8B-parameter text-to-image model developed by Baidu. It ranks among the top on multiple benchmarks, achieving a tied first place in SuperCLUE in China and leading in the open-source track.',
- displayName: 'ERNIE Image Turbo',
- enabled: true,
- id: 'ernie-image-turbo',
- parameters: {
- prompt: {
- default: '',
- },
- size: {
- default: '1024x1024',
- enum: ['1024x1024', '848x1264', '768x1376', '896x1200', '1264x848', '1376x768', '1200x896'],
- },
- watermark: { default: false },
- },
- pricing: {
- currency: 'CNY',
- units: [{ name: 'imageGeneration', rate: 0.11, strategy: 'fixed', unit: 'image' }],
- },
- type: 'image',
- },
{
description:
'ERNIE iRAG is an image retrieval-augmented generation model for image search, image-text retrieval, and content generation.',
@@ -1801,29 +1131,6 @@ const wenxinImageModels: AIImageModelCard[] = [
},
type: 'image',
},
- {
- description:
- 'FLUX.1-schnell is a high-performance image generation model for fast multi-style outputs.',
- displayName: 'FLUX.1-schnell',
- enabled: true,
- id: 'flux.1-schnell',
- parameters: {
- height: { default: 1024, max: 2048, min: 512, step: 1 },
- prompt: {
- default: '',
- },
- seed: { default: null },
- steps: { default: 25, max: 50, min: 1 },
- width: { default: 1024, max: 2048, min: 512, step: 1 },
- watermark: { default: false },
- },
- pricing: {
- currency: 'CNY',
- units: [{ name: 'imageGeneration', rate: 0.002, strategy: 'fixed', unit: 'image' }],
- },
- releasedAt: '2025-03-27',
- type: 'image',
- },
];
const wenxinVideoModels: AIVideoModelCard[] = [
diff --git a/packages/model-bank/src/aiModels/xiaomimimo.ts b/packages/model-bank/src/aiModels/xiaomimimo.ts
index 77c991aa01d..0a0ba528160 100644
--- a/packages/model-bank/src/aiModels/xiaomimimo.ts
+++ b/packages/model-bank/src/aiModels/xiaomimimo.ts
@@ -65,36 +65,6 @@ const xiaomimimoChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- search: true,
- structuredOutput: true,
- },
- contextWindowTokens: 262_144,
- description:
- 'MiMo-V2-Flash is now officially open source! This is a MoE (Mixture-of-Experts) model purpose-built for extreme inference efficiency, with 309B total parameters (15B activated). Through innovations in a hybrid attention architecture and multi-layer MTP inference acceleration, it ranks among the global Top 2 open-source models across multiple agent benchmarking suites. Its coding capabilities surpass all open-source models and rival leading closed-source models such as Claude 4.5 Sonnet, while incurring only 2.5% of the inference cost and delivering 2× faster generation speed—pushing large-model inference efficiency to the limit.',
- displayName: 'MiMo-V2 Flash',
- family: 'mimo',
- id: 'mimo-v2-flash',
- knowledgeCutoff: '2024-12',
- maxOutput: 65_536,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput_cacheRead', rate: 0.07, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 2.1, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2026-03-03',
- settings: {
- extendParams: ['enableReasoning'],
- searchImpl: 'params',
- },
- type: 'chat',
- },
];
export const allModels = [...xiaomimimoChatModels];
diff --git a/packages/model-bank/src/modelProviders/antgroup.ts b/packages/model-bank/src/modelProviders/antgroup.ts
index 61532dad21a..f4ba5124476 100644
--- a/packages/model-bank/src/modelProviders/antgroup.ts
+++ b/packages/model-bank/src/modelProviders/antgroup.ts
@@ -6,14 +6,14 @@ const AntGroup: ModelProviderCard = {
description:
'Ant Ling is the core foundation model series of Ant Group’s Artificial General Intelligence (AGI) initiative, dedicated to building and opening up cutting-edge foundational model capabilities. We believe that the development of intelligence must move toward openness, sharing, and scalability—starting from small, practical steps to drive the steady evolution and real-world deployment of AGI.',
id: 'antgroup',
- modelsUrl: 'https://alipaytbox.yuque.com/sxs0ba/ling/model_overview',
+ modelsUrl: 'https://developer.ant-ling.com/zh-CN/docs/models/',
name: 'AntGroup',
settings: {
//disableBrowserRequest: false,
sdkType: 'openai',
showModelFetcher: false,
},
- url: 'https://ling.tbox.cn/open',
+ url: 'https://chat.ant-ling.com/open',
};
export default AntGroup;
diff --git a/packages/model-bank/src/modelProviders/longcat.ts b/packages/model-bank/src/modelProviders/longcat.ts
index bcee2551478..c17ed6ea139 100644
--- a/packages/model-bank/src/modelProviders/longcat.ts
+++ b/packages/model-bank/src/modelProviders/longcat.ts
@@ -2,7 +2,7 @@ import { type ModelProviderCard } from '../types';
const LongCat: ModelProviderCard = {
chatModels: [],
- checkModel: 'LongCat-2.0-Preview',
+ checkModel: 'LongCat-2.0',
description:
'LongCat is a series of generative AI large models independently developed by Meituan. It is designed to enhance internal enterprise productivity and enable innovative applications through an efficient computational architecture and strong multimodal capabilities.',
id: 'longcat',
diff --git a/packages/model-bank/src/modelProviders/xiaomimimo.ts b/packages/model-bank/src/modelProviders/xiaomimimo.ts
index 75840651b67..a9da869ab49 100644
--- a/packages/model-bank/src/modelProviders/xiaomimimo.ts
+++ b/packages/model-bank/src/modelProviders/xiaomimimo.ts
@@ -2,7 +2,7 @@ import type { ModelProviderCard } from '../types';
const XiaomiMiMo: ModelProviderCard = {
chatModels: [],
- checkModel: 'mimo-v2-flash',
+ checkModel: 'mimo-v2.5',
description:
'Xiaomi MiMo provides a conversational model service with an OpenAI-compatible API. The mimo-v2-flash model supports deep reasoning, streaming output, function calling, a 256K context window, and a maximum output of 128K.',
id: 'xiaomimimo',
diff --git a/packages/model-runtime/src/providers/antgroup/index.ts b/packages/model-runtime/src/providers/antgroup/index.ts
index d25ee275538..079af504e67 100644
--- a/packages/model-runtime/src/providers/antgroup/index.ts
+++ b/packages/model-runtime/src/providers/antgroup/index.ts
@@ -3,14 +3,15 @@ import { ModelProvider } from 'model-bank';
import { createOpenAICompatibleRuntime } from '../../core/openaiCompatibleFactory';
export const LobeAntGroupAI = createOpenAICompatibleRuntime({
- baseURL: 'https://api.tbox.cn/api/llm/v1',
+ baseURL: 'https://api.ant-ling.com/v1',
chatCompletion: {
handlePayload: (payload) => {
- const { enabledSearch, reasoning_effort, ...rest } = payload;
+ const { enabledSearch, reasoning_effort, thinking, ...rest } = payload;
return {
...rest,
...(reasoning_effort && { reasoning: { effort: reasoning_effort } }),
+ ...(thinking?.type && { thinking: { type: thinking.type } }),
...(enabledSearch && {
enable_search: true,
// search_options: { forced_search: true },
diff --git a/packages/model-runtime/src/providers/cerebras/index.test.ts b/packages/model-runtime/src/providers/cerebras/index.test.ts
index e40eb0f0080..0e308bd042d 100644
--- a/packages/model-runtime/src/providers/cerebras/index.test.ts
+++ b/packages/model-runtime/src/providers/cerebras/index.test.ts
@@ -204,6 +204,123 @@ describe('LobeCerebrasAI - custom features', () => {
expect(transformedPayload.frequency_penalty).toBeUndefined();
expect(transformedPayload.presence_penalty).toBeUndefined();
});
+
+ describe('reasoning configuration', () => {
+ it('should handle Z.ai GLM 4.7 default reasoning settings (reasoning_format: parsed)', async () => {
+ await instance.chat({
+ messages: [{ content: 'Test', role: 'user' }],
+ model: 'zai-glm-4.7',
+ });
+
+ const calledPayload = (instance['client'].chat.completions.create as any).mock.calls[0][0];
+ expect(calledPayload.reasoning_format).toBe('parsed');
+ expect(calledPayload.reasoning_effort).toBeUndefined();
+ });
+
+ it('should handle Z.ai GLM 4.7 with thinking enabled (reasoning_format: parsed)', async () => {
+ await instance.chat({
+ messages: [{ content: 'Test', role: 'user' }],
+ model: 'zai-glm-4.7',
+ thinking: { type: 'enabled' },
+ });
+
+ const calledPayload = (instance['client'].chat.completions.create as any).mock.calls[0][0];
+ expect(calledPayload.reasoning_format).toBe('parsed');
+ expect(calledPayload.reasoning_effort).toBeUndefined();
+ });
+
+ it('should handle Z.ai GLM 4.7 with effort value (e.g. high) via backward compatibility', async () => {
+ await instance.chat({
+ messages: [{ content: 'Test', role: 'user' }],
+ model: 'zai-glm-4.7',
+ reasoning_effort: 'high',
+ });
+
+ const calledPayload = (instance['client'].chat.completions.create as any).mock.calls[0][0];
+ expect(calledPayload.reasoning_format).toBe('parsed');
+ expect(calledPayload.reasoning_effort).toBeUndefined(); // GLM 4.7 no longer maps effort when using enableReasoning, but resolves isThinkingEnabled/Disabled correctly
+ });
+
+ it('should handle Z.ai GLM 4.7 with thinking disabled (reasoning_effort: none)', async () => {
+ await instance.chat({
+ messages: [{ content: 'Test', role: 'user' }],
+ model: 'zai-glm-4.7',
+ thinking: { type: 'disabled' },
+ });
+
+ const calledPayload = (instance['client'].chat.completions.create as any).mock.calls[0][0];
+ expect(calledPayload.reasoning_effort).toBe('none');
+ expect(calledPayload.reasoning_format).toBeUndefined();
+ });
+
+ it('should handle Gemma 4 31B reasoning settings when thinking is enabled (reasoning_format: parsed, reasoning_effort: medium)', async () => {
+ await instance.chat({
+ messages: [{ content: 'Test', role: 'user' }],
+ model: 'gemma-4-31b',
+ thinking: { type: 'enabled' },
+ });
+
+ const calledPayload = (instance['client'].chat.completions.create as any).mock.calls[0][0];
+ expect(calledPayload.reasoning_format).toBe('parsed');
+ expect(calledPayload.reasoning_effort).toBe('medium');
+ });
+
+ it('should handle Gemma 4 31B with thinking disabled (reasoning_effort: none)', async () => {
+ await instance.chat({
+ messages: [{ content: 'Test', role: 'user' }],
+ model: 'gemma-4-31b',
+ thinking: { type: 'disabled' },
+ });
+
+ const calledPayload = (instance['client'].chat.completions.create as any).mock.calls[0][0];
+ expect(calledPayload.reasoning_effort).toBe('none');
+ expect(calledPayload.reasoning_format).toBeUndefined();
+ });
+
+ it('should handle GPT-OSS with high effort (reasoning_format: parsed, reasoning_effort: high)', async () => {
+ await instance.chat({
+ messages: [{ content: 'Test', role: 'user' }],
+ model: 'gpt-oss-120b',
+ reasoning_effort: 'high',
+ });
+
+ const calledPayload = (instance['client'].chat.completions.create as any).mock.calls[0][0];
+ expect(calledPayload.reasoning_format).toBe('parsed');
+ expect(calledPayload.reasoning_effort).toBe('high');
+ });
+
+ it('should handle GPT-OSS with thinking disabled (reasoning_format: hidden)', async () => {
+ await instance.chat({
+ messages: [{ content: 'Test', role: 'user' }],
+ model: 'gpt-oss-120b',
+ thinking: { type: 'disabled' },
+ });
+
+ const calledPayload = (instance['client'].chat.completions.create as any).mock.calls[0][0];
+ expect(calledPayload.reasoning_format).toBe('hidden');
+ expect(calledPayload.reasoning_effort).toBeUndefined();
+ });
+
+ it('should map reasoning field to reasoning_content for non-streaming response transformation', () => {
+ const mockCompletion = {
+ choices: [
+ {
+ index: 0,
+ message: {
+ content: 'Test content',
+ role: 'assistant',
+ reasoning: 'Test reasoning',
+ },
+ },
+ ],
+ };
+
+ const stream = params.chatCompletion!.handleTransformResponseToStream!(
+ mockCompletion as any,
+ );
+ expect(stream).toBeDefined();
+ });
+ });
});
describe('models function', () => {
diff --git a/packages/model-runtime/src/providers/cerebras/index.ts b/packages/model-runtime/src/providers/cerebras/index.ts
index ea43bc0ac83..34a748bab36 100644
--- a/packages/model-runtime/src/providers/cerebras/index.ts
+++ b/packages/model-runtime/src/providers/cerebras/index.ts
@@ -1,7 +1,10 @@
import { ModelProvider } from 'model-bank';
import type { OpenAICompatibleFactoryOptions } from '../../core/openaiCompatibleFactory';
-import { createOpenAICompatibleRuntime } from '../../core/openaiCompatibleFactory';
+import {
+ createOpenAICompatibleRuntime,
+ transformResponseToStream,
+} from '../../core/openaiCompatibleFactory';
import { processMultiProviderModelList } from '../../utils/modelParse';
export const params = {
@@ -12,14 +15,97 @@ export const params = {
frequency_penalty: _frequencyPenalty,
presence_penalty: _presencePenalty,
model,
+ thinking,
+ reasoning,
+ reasoning_effort,
+ effort,
+ // Extract reasoning_format so it doesn't leak into ...rest and get sent twice
+ reasoning_format: _incomingReasoningFormat,
...rest
- } = payload;
+ } = payload as any;
+
+ const effortVal = reasoning_effort || reasoning?.effort || effort;
+ const isThinkingDisabled = thinking?.type === 'disabled' || effortVal === 'none';
+ const isThinkingEnabled = thinking?.type === 'enabled' || (effortVal && effortVal !== 'none');
+ const lowerModel = model.toLowerCase();
+
+ const isGlm = lowerModel.includes('glm');
+ const isGemma4 = lowerModel.includes('gemma-4');
+ const isGptOss = lowerModel.includes('gpt-oss');
+
+ const cerebrasReasoningParams: Record<string, unknown> = {};
+
+ if (isGlm) {
+ if (isThinkingDisabled) {
+ cerebrasReasoningParams.reasoning_effort = 'none';
+ } else {
+ cerebrasReasoningParams.reasoning_format = _incomingReasoningFormat || 'parsed';
+ }
+ } else if (isGemma4) {
+ if (isThinkingDisabled) {
+ cerebrasReasoningParams.reasoning_effort = 'none';
+ } else if (isThinkingEnabled) {
+ cerebrasReasoningParams.reasoning_effort = 'medium';
+ cerebrasReasoningParams.reasoning_format = 'parsed';
+ }
+ } else if (isGptOss) {
+ if (isThinkingDisabled) {
+ cerebrasReasoningParams.reasoning_format = 'hidden';
+ } else {
+ const effortMap: Record<string, string> = {
+ low: 'low',
+ minimal: 'low',
+ medium: 'medium',
+ high: 'high',
+ xhigh: 'high',
+ max: 'high',
+ };
+ cerebrasReasoningParams.reasoning_effort =
+ (effortVal && effortMap[effortVal]) || 'medium';
+ cerebrasReasoningParams.reasoning_format = _incomingReasoningFormat || 'parsed';
+ }
+ }
+
+ // --- Reasoning context retention ---
+ // Cerebras does not accept a standalone `reasoning_content` field.
+ // Per docs: inject prior reasoning into the `content` of assistant messages.
+ // GLM: wrap in <think>...</think> tags. GPT-OSS: prepend directly.
+ const messages = ((rest.messages as any[]) || []).map((msg: any) => {
+ if (msg.role !== 'assistant') return msg;
+
+ const { reasoning_content, ...msgRest } = msg;
+ if (!reasoning_content) return msg;
+
+ const existingContent = typeof msgRest.content === 'string' ? msgRest.content : '';
+ let newContent: string;
+ if (isGlm) {
+ newContent = `<think>${reasoning_content}</think>${existingContent}`;
+ } else if (isGptOss) {
+ newContent = `${reasoning_content}${existingContent}`;
+ } else {
+ // Gemma 4: docs don't specify a retention format; drop reasoning_content
+ return msgRest;
+ }
+
+ return { ...msgRest, content: newContent };
+ });
return {
...rest,
+ ...cerebrasReasoningParams,
+ messages,
model,
} as any;
},
+ handleTransformResponseToStream: (data) => {
+ const choices = data.choices || [];
+ for (const choice of choices) {
+ if (choice.message && 'reasoning' in choice.message) {
+ (choice.message as any).reasoning_content = (choice.message as any).reasoning;
+ }
+ }
+ return transformResponseToStream(data);
+ },
},
debug: {
chatCompletion: () => process.env.DEBUG_CEREBRAS_CHAT_COMPLETION === '1',
diff --git a/packages/model-runtime/src/providers/groq/index.test.ts b/packages/model-runtime/src/providers/groq/index.test.ts
index b812c9e5a01..712b810837f 100644
--- a/packages/model-runtime/src/providers/groq/index.test.ts
+++ b/packages/model-runtime/src/providers/groq/index.test.ts
@@ -601,6 +601,188 @@ describe('LobeGroq - custom features', () => {
expect.anything(),
);
});
+
+ it('should strip Lobe-internal fields to avoid API errors', async () => {
+ await instance.chat({
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'mistralai/mistral-7b-instruct:free',
+ // Internal fields to strip
+ thinking: { type: 'enabled', budget: 1024 },
+ reasoning: { effort: 'medium', summary: 'test' },
+ reasoning_effort: 'medium',
+ effort: 'medium',
+ } as any);
+
+ const callArgs = vi.mocked(instance['client'].chat.completions.create).mock.calls[0][0];
+
+ const internalFields = ['thinking', 'reasoning', 'reasoning_effort', 'effort'];
+
+ for (const field of internalFields) {
+ expect(callArgs).not.toHaveProperty(field);
+ }
+ });
+
+ it('should handle DeepSeek R1 default reasoning settings (reasoning_format: parsed)', async () => {
+ await instance.chat({
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'deepseek-r1-distill-llama-70b',
+ });
+
+ expect(instance['client'].chat.completions.create).toHaveBeenCalledWith(
+ expect.objectContaining({
+ reasoning_format: 'parsed',
+ }),
+ expect.anything(),
+ );
+ const callArgs = vi.mocked(instance['client'].chat.completions.create).mock.calls[0][0];
+ expect(callArgs).not.toHaveProperty('reasoning_effort');
+ });
+
+ it('should handle DeepSeek R1 with thinking disabled (reasoning_format: hidden)', async () => {
+ await instance.chat({
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'deepseek-r1-distill-llama-70b',
+ thinking: { type: 'disabled' },
+ } as any);
+
+ expect(instance['client'].chat.completions.create).toHaveBeenCalledWith(
+ expect.objectContaining({
+ reasoning_format: 'hidden',
+ }),
+ expect.anything(),
+ );
+ });
+
+ it('should handle DeepSeek R1 with tools (reasoning_format: parsed)', async () => {
+ await instance.chat({
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'deepseek-r1-distill-llama-70b',
+ tools: [
+ {
+ type: 'function',
+ function: { name: 'tool1', description: '', parameters: {} },
+ },
+ ],
+ });
+
+ expect(instance['client'].chat.completions.create).toHaveBeenCalledWith(
+ expect.objectContaining({
+ reasoning_format: 'parsed',
+ }),
+ expect.anything(),
+ );
+ });
+
+ it('should handle Qwen 3.6 27B default settings (reasoning_format: parsed, reasoning_effort: default)', async () => {
+ await instance.chat({
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'qwen3.6-27b',
+ });
+
+ expect(instance['client'].chat.completions.create).toHaveBeenCalledWith(
+ expect.objectContaining({
+ reasoning_format: 'parsed',
+ reasoning_effort: 'default',
+ }),
+ expect.anything(),
+ );
+ });
+
+ it('should handle Qwen 3.6 27B with thinking disabled (reasoning_format: hidden, reasoning_effort: none)', async () => {
+ await instance.chat({
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'qwen3.6-27b',
+ thinking: { type: 'disabled' },
+ } as any);
+
+ expect(instance['client'].chat.completions.create).toHaveBeenCalledWith(
+ expect.objectContaining({
+ reasoning_format: 'hidden',
+ reasoning_effort: 'none',
+ }),
+ expect.anything(),
+ );
+ });
+
+ it('should handle Qwen3 default settings (reasoning_format: parsed, no reasoning_effort)', async () => {
+ await instance.chat({
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'qwen/qwen3-32b',
+ });
+
+ expect(instance['client'].chat.completions.create).toHaveBeenCalledWith(
+ expect.objectContaining({
+ reasoning_format: 'parsed',
+ }),
+ expect.anything(),
+ );
+ const callArgs = vi.mocked(instance['client'].chat.completions.create).mock.calls[0][0];
+ expect(callArgs).not.toHaveProperty('reasoning_effort');
+ });
+
+ it('should handle GPT-OSS with high effort (no reasoning_format, reasoning_effort: high)', async () => {
+ await instance.chat({
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'gpt-oss-8b',
+ reasoning_effort: 'high',
+ } as any);
+
+ expect(instance['client'].chat.completions.create).toHaveBeenCalledWith(
+ expect.objectContaining({
+ reasoning_effort: 'high',
+ }),
+ expect.anything(),
+ );
+ const callArgs = vi.mocked(instance['client'].chat.completions.create).mock.calls[0][0];
+ expect(callArgs).not.toHaveProperty('reasoning_format');
+ });
+
+ it('should handle GPT-OSS with low effort (no reasoning_format, reasoning_effort: low)', async () => {
+ await instance.chat({
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'gpt-oss-120b',
+ effort: 'low',
+ } as any);
+
+ expect(instance['client'].chat.completions.create).toHaveBeenCalledWith(
+ expect.objectContaining({
+ reasoning_effort: 'low',
+ }),
+ expect.anything(),
+ );
+ });
+
+ it('should not set reasoning parameters for non-reasoning models', async () => {
+ await instance.chat({
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'llama-3.1-70b-versatile',
+ reasoning_effort: 'high',
+ } as any);
+
+ const callArgs = vi.mocked(instance['client'].chat.completions.create).mock.calls[0][0];
+ expect(callArgs).not.toHaveProperty('reasoning_format');
+ expect(callArgs).not.toHaveProperty('reasoning_effort');
+ });
+ });
+
+ describe('handleTransformResponseToStream', () => {
+ it('should map reasoning field to reasoning_content for non-streaming response transformation', () => {
+ const mockCompletion = {
+ choices: [
+ {
+ index: 0,
+ message: {
+ content: 'Test content',
+ role: 'assistant',
+ reasoning: 'Test reasoning',
+ },
+ },
+ ],
+ };
+
+ const stream = params.chatCompletion.handleTransformResponseToStream!(mockCompletion as any);
+ expect(stream).toBeDefined();
+ });
});
describe('handleError', () => {
@@ -702,12 +884,14 @@ describe('LobeGroq - custom features', () => {
data: [
{ id: 'deepseek-r1-distill-llama-70b', context_window: 8192 },
{ id: 'deepseek-r1-distill-qwen-32b', context_window: 32768 },
+ { id: 'qwen3-72b-instruct', context_window: 32768 },
+ { id: 'gpt-oss-20b', context_window: 8192 },
],
});
const models = await params.models({ client: mockClient as any });
- expect(models).toHaveLength(2);
+ expect(models).toHaveLength(4);
expect(models[0]).toMatchObject({
id: 'deepseek-r1-distill-llama-70b',
reasoning: true,
@@ -716,6 +900,14 @@ describe('LobeGroq - custom features', () => {
id: 'deepseek-r1-distill-qwen-32b',
reasoning: true,
});
+ expect(models[2]).toMatchObject({
+ id: 'qwen3-72b-instruct',
+ reasoning: true,
+ });
+ expect(models[3]).toMatchObject({
+ id: 'gpt-oss-20b',
+ reasoning: true,
+ });
});
it('should detect llama-3.3 function call capability', async () => {
diff --git a/packages/model-runtime/src/providers/groq/index.ts b/packages/model-runtime/src/providers/groq/index.ts
index 42e1e380516..367da82fcd7 100644
--- a/packages/model-runtime/src/providers/groq/index.ts
+++ b/packages/model-runtime/src/providers/groq/index.ts
@@ -2,7 +2,10 @@ import type { ChatModelCard } from '@lobechat/types';
import { ModelProvider } from 'model-bank';
import type { OpenAICompatibleFactoryOptions } from '../../core/openaiCompatibleFactory';
-import { createOpenAICompatibleRuntime } from '../../core/openaiCompatibleFactory';
+import {
+ createOpenAICompatibleRuntime,
+ transformResponseToStream,
+} from '../../core/openaiCompatibleFactory';
import { resolveParameters } from '../../core/parameterResolver';
import { AgentRuntimeErrorType } from '../../types/error';
@@ -54,6 +57,18 @@ const filterAdvancedFields = (schema: any): any => {
return filtered;
};
+/** Models that accept the `reasoning_format` parameter */
+const supportsReasoningFormat = (model: string): boolean => {
+ const lower = model.toLowerCase();
+ return ['deepseek-r1', 'qwen3'].some((kw) => lower.includes(kw));
+};
+
+/** Qwen-family reasoning models: effort values are "none" | "default" */
+const isQwenEffortModel = (model: string): boolean => model.toLowerCase().includes('qwen3.6-27b');
+
+/** GPT-OSS reasoning models: effort values are "low" | "medium" | "high" */
+const isGptOssModel = (model: string): boolean => model.toLowerCase().includes('gpt-oss-');
+
export const params = {
baseURL: 'https://api.groq.com/openai/v1',
chatCompletion: {
@@ -63,20 +78,74 @@ export const params = {
return { error, errorType: AgentRuntimeErrorType.LocationNotSupportError };
},
handlePayload: (payload) => {
- const { temperature, ...restPayload } = payload;
+ const {
+ temperature,
+ // Lobe-internal fields to strip
+ thinking,
+ reasoning,
+ reasoning_effort,
+ effort,
+ ...restPayload
+ } = payload;
// Groq doesn't support temperature <= 0, set to undefined in that case
const resolvedParams = resolveParameters({ temperature }, { normalizeTemperature: false });
+ const resolvedTemp =
+ resolvedParams.temperature !== undefined && resolvedParams.temperature <= 0
+ ? undefined
+ : resolvedParams.temperature;
+
+ // --- Reasoning parameters ---
+ const isThinkingDisabled = thinking?.type === 'disabled';
+ const model = payload.model;
+ const groqReasoningParams: Record<string, unknown> = {};
+
+ // 1. reasoning_format (only for DeepSeek R1 and Qwen3 series)
+ if (supportsReasoningFormat(model)) {
+ if (isThinkingDisabled) {
+ groqReasoningParams.reasoning_format = 'hidden';
+ } else {
+ // Default to parsed, also required when tools or JSON mode are used
+ groqReasoningParams.reasoning_format = 'parsed';
+ }
+ }
+
+ // 2. reasoning_effort
+ const effortVal = reasoning_effort || reasoning?.effort || effort;
+ if (isQwenEffortModel(model)) {
+ groqReasoningParams.reasoning_effort =
+ isThinkingDisabled || effortVal === 'none' ? 'none' : 'default';
+ } else if (isGptOssModel(model)) {
+ // Map Lobe effort values to Groq's low/medium/high
+ const effortMap: Record<string, string> = {
+ low: 'low',
+ minimal: 'low',
+ medium: 'medium',
+ high: 'high',
+ xhigh: 'high',
+ max: 'high',
+ };
+ if (effortVal && effortMap[effortVal]) {
+ groqReasoningParams.reasoning_effort = effortMap[effortVal];
+ }
+ }
return {
...restPayload,
+ ...groqReasoningParams,
stream: payload.stream ?? true,
- temperature:
- resolvedParams.temperature !== undefined && resolvedParams.temperature <= 0
- ? undefined
- : resolvedParams.temperature,
+ temperature: resolvedTemp,
} as any;
},
+ handleTransformResponseToStream: (data) => {
+ const choices = data.choices || [];
+ for (const choice of choices) {
+ if (choice.message && 'reasoning' in choice.message) {
+ (choice.message as any).reasoning_content = (choice.message as any).reasoning;
+ }
+ }
+ return transformResponseToStream(data);
+ },
},
debug: {
chatCompletion: () => process.env.DEBUG_GROQ_CHAT_COMPLETION === '1',
@@ -94,9 +163,10 @@ export const params = {
'llama3-',
'mixtral-8x7b-32768',
'gemma2-9b-it',
+ 'qwen3.6-27b',
];
- const reasoningKeywords = ['deepseek-r1'];
+ const reasoningKeywords = ['deepseek-r1', 'qwen3.6-27b', 'qwen3', 'gpt-oss-'];
const modelsPage = (await client.models.list()) as any;
const modelList: GroqModelCard[] = modelsPage.data;
diff --git a/packages/model-runtime/src/providers/longcat/index.test.ts b/packages/model-runtime/src/providers/longcat/index.test.ts
index 760bc4d12fa..e4837528e3c 100644
--- a/packages/model-runtime/src/providers/longcat/index.test.ts
+++ b/packages/model-runtime/src/providers/longcat/index.test.ts
@@ -1,5 +1,6 @@
// @vitest-environment node
import { ModelProvider } from 'model-bank';
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { testProvider } from '../../providerTestUtils';
import { LobeLongCatAI } from './index';
@@ -10,4 +11,139 @@ testProvider({
defaultBaseURL: 'https://api.longcat.chat/openai/v1',
chatDebugEnv: 'DEBUG_LONGCAT_CHAT_COMPLETION',
chatModel: 'LongCat-Flash-Lite',
+ test: {
+ skipAPICall: true,
+ },
+});
+
+let instance: InstanceType<typeof LobeLongCatAI>;
+
+beforeEach(() => {
+ instance = new LobeLongCatAI({ apiKey: 'test' });
+
+ vi.spyOn(instance['client'].chat.completions, 'create').mockResolvedValue(
+ new ReadableStream() as any,
+ );
+});
+
+afterEach(() => {
+ vi.clearAllMocks();
+});
+
+describe('LobeLongCatAI - custom features', () => {
+ describe('handlePayload', () => {
+ it('should call API with corresponding options', async () => {
+ // Arrange
+ const mockStream = new ReadableStream();
+ const mockResponse = Promise.resolve(mockStream);
+
+ (instance['client'].chat.completions.create as any).mockResolvedValue(mockResponse);
+
+ // Act
+ const result = await instance.chat({
+ max_tokens: 1024,
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'LongCat-2.0',
+ temperature: 0.7,
+ stream: true,
+ top_p: 1,
+ });
+
+ // Assert
+ expect(instance['client'].chat.completions.create).toHaveBeenCalledWith(
+ {
+ frequency_penalty: undefined,
+ max_tokens: 1024,
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'LongCat-2.0',
+ presence_penalty: undefined,
+ stream: true,
+ stream_options: {
+ include_usage: true,
+ },
+ temperature: 0.35,
+ top_p: 1,
+ },
+ { headers: { Accept: '*/*' } },
+ );
+ expect(result).toBeInstanceOf(Response);
+ });
+
+ it('should normalize temperature - 0 stays 0', async () => {
+ await instance.chat({
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'LongCat-2.0',
+ temperature: 0,
+ });
+
+ const calledPayload = (instance['client'].chat.completions.create as any).mock.calls[0][0];
+ expect(calledPayload.temperature).toBe(0);
+ });
+
+ it('should normalize temperature by halving it', async () => {
+ await instance.chat({
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'LongCat-2.0',
+ temperature: 0.5,
+ });
+
+ const calledPayload = (instance['client'].chat.completions.create as any).mock.calls[0][0];
+ expect(calledPayload.temperature).toBe(0.25);
+ });
+
+ it('should normalize temperature to 1 when it is 2', async () => {
+ await instance.chat({
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'LongCat-2.0',
+ temperature: 2,
+ });
+
+ const calledPayload = (instance['client'].chat.completions.create as any).mock.calls[0][0];
+ expect(calledPayload.temperature).toBe(1);
+ });
+
+ it('should normalize temperature with undefined value', async () => {
+ await instance.chat({
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'LongCat-2.0',
+ temperature: undefined,
+ });
+
+ const calledPayload = (instance['client'].chat.completions.create as any).mock.calls[0][0];
+ expect(calledPayload.temperature).toBeUndefined();
+ });
+
+ it('should pass thinking object with enabled type when thinking is enabled', async () => {
+ await instance.chat({
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'LongCat-2.0',
+ thinking: { type: 'enabled', budget_tokens: 1024 },
+ });
+
+ const calledPayload = (instance['client'].chat.completions.create as any).mock.calls[0][0];
+ expect(calledPayload.thinking).toEqual({ type: 'enabled' });
+ });
+
+ it('should pass thinking object with disabled type when thinking is disabled', async () => {
+ await instance.chat({
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'LongCat-2.0',
+ thinking: { type: 'disabled' },
+ });
+
+ const calledPayload = (instance['client'].chat.completions.create as any).mock.calls[0][0];
+ expect(calledPayload.thinking).toEqual({ type: 'disabled' });
+ });
+
+ it('should not pass thinking object when thinking is undefined', async () => {
+ await instance.chat({
+ messages: [{ content: 'Hello', role: 'user' }],
+ model: 'LongCat-2.0',
+ thinking: undefined,
+ });
+
+ const calledPayload = (instance['client'].chat.completions.create as any).mock.calls[0][0];
+ expect(calledPayload.thinking).toBeUndefined();
+ });
+ });
});
diff --git a/packages/model-runtime/src/providers/longcat/index.ts b/packages/model-runtime/src/providers/longcat/index.ts
index f152c5f4d5a..3754c3258d1 100644
--- a/packages/model-runtime/src/providers/longcat/index.ts
+++ b/packages/model-runtime/src/providers/longcat/index.ts
@@ -1,6 +1,7 @@
-import { longcat as longchatCahtModels, ModelProvider } from 'model-bank';
+import { longcat as longcatChatModels, ModelProvider } from 'model-bank';
import { createOpenAICompatibleRuntime } from '../../core/openaiCompatibleFactory';
+import { resolveParameters } from '../../core/parameterResolver';
import { getModelMaxOutputs } from '../../utils/getModelMaxOutputs';
import { MODEL_LIST_CONFIGS, processModelList } from '../../utils/modelParse';
@@ -12,7 +13,19 @@ export const LobeLongCatAI = createOpenAICompatibleRuntime({
baseURL: 'https://api.longcat.chat/openai/v1',
chatCompletion: {
handlePayload: (payload) => {
- const { frequency_penalty, max_tokens, presence_penalty, ...rest } = payload;
+ const {
+ frequency_penalty: _frequency_penalty,
+ max_tokens,
+ presence_penalty: _presence_penalty,
+ temperature,
+ thinking,
+ ...rest
+ } = payload;
+
+ const { temperature: normalizedTemperature } = resolveParameters(
+ { temperature },
+ { normalizeTemperature: true, temperatureRange: { min: 0, max: 1 } },
+ );
return {
...rest,
@@ -20,9 +33,15 @@ export const LobeLongCatAI = createOpenAICompatibleRuntime({
max_tokens:
max_tokens !== undefined
? max_tokens
- : getModelMaxOutputs(payload.model, longchatCahtModels),
+ : getModelMaxOutputs(payload.model, longcatChatModels),
presence_penalty: undefined,
stream: true,
+ temperature: normalizedTemperature,
+ ...(thinking && {
+ thinking: {
+ type: thinking.type === 'enabled' ? 'enabled' : 'disabled',
+ },
+ }),
} as any;
},
},
diff --git a/packages/model-runtime/src/providers/volcengine/index.ts b/packages/model-runtime/src/providers/volcengine/index.ts
index eea77e5ba3d..a6d1c9eaffe 100644
--- a/packages/model-runtime/src/providers/volcengine/index.ts
+++ b/packages/model-runtime/src/providers/volcengine/index.ts
@@ -6,6 +6,12 @@ import { createVolcengineImage } from './createImage';
import { createVolcengineVideo } from './video/createVideo';
import { handleVolcengineVideoWebhook } from './video/handleCreateVideoWebhook';
+const isVolcengineReasoningEffortModel = (model: string) => {
+ const normalizedModel = model.toLowerCase();
+
+ return normalizedModel.includes('deepseek-v4') || normalizedModel.includes('glm-5-2');
+};
+
const resolveVolcengineReasoningParams = (
model: string,
thinking: any,
@@ -15,7 +21,7 @@ const resolveVolcengineReasoningParams = (
let targetThinking = thinking;
let targetReasoningEffort = reasoning_effort;
- if (model?.includes('deepseek-v4')) {
+ if (isVolcengineReasoningEffortModel(model)) {
if (thinking?.type === 'disabled') {
targetThinking = { type: 'disabled' };
targetReasoningEffort = 'minimal';