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.

✨ feat(model): support Grok 4.7 and MiMo V2.6 multimodal input (#19807)

YuTengjing2dd28b1184eb
diff --git a/locales/en-US/modelProvider.json b/locales/en-US/modelProvider.json
index 4254d776cf5..94df9f8a0c6 100644
--- a/locales/en-US/modelProvider.json
+++ b/locales/en-US/modelProvider.json
@@ -241,6 +241,7 @@
"providerModels.item.modelConfig.extendParams.options.grok4_3ReasoningEffort.hint": "For Grok 4.3 series; controls reasoning intensity.",
"providerModels.item.modelConfig.extendParams.options.grok4_5ReasoningEffort.hint": "For Grok 4.5 series; controls reasoning intensity (low/medium/high, default high).",
"providerModels.item.modelConfig.extendParams.options.grok4_6ReasoningEffort.hint": "For Grok 4.6 series; controls reasoning intensity (low/medium/high/xhigh, default high). Reasoning cannot be disabled.",
+ "providerModels.item.modelConfig.extendParams.options.grok4_7ReasoningEffort.hint": "For Grok 4.7; controls reasoning intensity (low/medium/high/xhigh, default high). Reasoning cannot be disabled.",
"providerModels.item.modelConfig.extendParams.options.hy3ReasoningEffort.hint": "For Hy3 models; controls reasoning intensity. no_think (ultra-fast response), low (quick reasoning), and high (deep reasoning)—to accommodate varying latency and depth requirements, from high-frequency interactions to complex engineering tasks.",
"providerModels.item.modelConfig.extendParams.options.imageAspectRatio.hint": "For Gemini image generation models; controls aspect ratio of generated images.",
"providerModels.item.modelConfig.extendParams.options.imageAspectRatio2.hint": "For Nano Banana 2; controls aspect ratio of generated images (supports extra-wide 1:4, 4:1, 1:8, 8:1).",
diff --git a/locales/en-US/models.json b/locales/en-US/models.json
index 3de0765405b..759202c1b92 100644
--- a/locales/en-US/models.json
+++ b/locales/en-US/models.json
@@ -864,6 +864,7 @@
"lobehub.grok-4.3.description": "The most truth-seeking large language model in the world",
"lobehub.grok-4.5.description": "Grok 4.5 delivers performance close to Claude Opus 4.8 with exceptionally fast responses.",
"lobehub.grok-4.6.description": "Grok 4.6 builds on Grok 4.5 with a particular focus on long-running agents and more ambitious interactive and visual work.",
+ "lobehub.grok-4.7.description": "Grok 4.7 is more reliable on long coding and knowledge work than Grok 4.6, at the same price and speed.",
"lobehub.imagen-4.0-fast-generate-001.description": "Imagen 4th generation text-to-image model series",
"lobehub.imagen-4.0-generate-001.description": "Imagen 4th generation text-to-image model series",
"lobehub.imagen-4.0-ultra-generate-001.description": "Imagen 4th generation text-to-image model series Ultra version",
@@ -875,6 +876,9 @@
"lobehub.lobehub-kimi-k3-fast.description": "Fast variant of Kimi K3 with substantially lower latency. Same capabilities as Kimi K3 — costs more, but responds much faster.",
"lobehub.mimo-v2.5-pro.description": "Xiaomi MiMo-V2.5-Pro is the flagship of the MiMo-V2.5 series, delivering major gains in general agentic capabilities, complex software engineering, and long-horizon tasks. Its performance on demanding agentic benchmarks is comparable to Claude Opus 4.6.",
"lobehub.mimo-v2.5.description": "Xiaomi MiMo-V2.5 is a multimodal agent model that understands images, video, audio, and text. It delivers Pro-level agentic performance at roughly half the inference cost, with faster responses and stronger multimodal perception than MiMo-V2-Omni.",
+ "lobehub.mimo-v2.6-flash.description": "A low-cost multimodal agent model that exceeds MiMo-V2.5-Pro on agent benchmarks at the previous MiMo-V2.5 price.",
+ "lobehub.mimo-v2.6-pro-ultraspeed.description": "MiMo-V2.6-Pro quality at up to 20 times the output speed for latency-sensitive agents.",
+ "lobehub.mimo-v2.6-pro.description": "An open-source multimodal flagship for long-horizon coding and computer use, with 1M context at the previous Pro price.",
"lobehub.o3.description": "o3 is a strong all-round model that sets a new bar for math, science, programming, and visual reasoning. It excels at technical writing and instruction following, and can analyze text, code, and images for multi-step problems.",
"lobehub.o4-mini.description": "o4-mini is the latest small o-series model, optimized for fast, effective reasoning with high efficiency in coding and vision tasks.",
"lobehub.ox-alpha.description": "Ox Alpha has been revealed as GLM-5.3-Flash. Requests are automatically redirected to GLM-5.3-Flash.",
diff --git a/locales/zh-CN/modelProvider.json b/locales/zh-CN/modelProvider.json
index 150ace26257..229349e4f9d 100644
--- a/locales/zh-CN/modelProvider.json
+++ b/locales/zh-CN/modelProvider.json
@@ -241,6 +241,7 @@
"providerModels.item.modelConfig.extendParams.options.grok4_3ReasoningEffort.hint": "适用于 Grok 4.3 系列;控制推理强度。",
"providerModels.item.modelConfig.extendParams.options.grok4_5ReasoningEffort.hint": "适用于 Grok 4.5 系列;控制推理强度(低/中/高,默认高)。",
"providerModels.item.modelConfig.extendParams.options.grok4_6ReasoningEffort.hint": "适用于 Grok 4.6 系列;控制推理强度(低/中/高/xhigh,默认高)。推理无法关闭。",
+ "providerModels.item.modelConfig.extendParams.options.grok4_7ReasoningEffort.hint": "适用于 Grok 4.7;控制推理强度(低/中/高/超高,默认高)。推理无法关闭。",
"providerModels.item.modelConfig.extendParams.options.hy3ReasoningEffort.hint": "适用于 Hy3 模型;控制推理强度。no_think(超快响应)、low(快速推理)和 high(深度推理)三档,以适应从高频交互到复杂工程任务的不同延迟和深度需求。",
"providerModels.item.modelConfig.extendParams.options.imageAspectRatio.hint": "适用于 Gemini 图像生成模型;控制生成图像的宽高比。",
"providerModels.item.modelConfig.extendParams.options.imageAspectRatio2.hint": "适用于 Nano Banana 2;控制生成图像的宽高比(支持超宽 1:4、4:1、1:8、8:1)。",
diff --git a/locales/zh-CN/models.json b/locales/zh-CN/models.json
index 1c4be337d83..c804c25c338 100644
--- a/locales/zh-CN/models.json
+++ b/locales/zh-CN/models.json
@@ -864,6 +864,7 @@
"lobehub.grok-4.3.description": "世界上最追求真理的大型语言模型",
"lobehub.grok-4.5.description": "Grok 4.5 提供接近 Claude Opus 4.8 的性能,同时响应速度异常快。",
"lobehub.grok-4.6.description": "Grok 4.6 在 Grok 4.5 基础上强化长程 Agent 能力,并更擅长交互式与视觉类工作。",
+ "lobehub.grok-4.7.description": "Grok 4.7 在保持 Grok 4.6 价格与速度的同时,更擅长长程编程和知识工作。",
"lobehub.imagen-4.0-fast-generate-001.description": "Imagen 第四代文本生成图像模型系列",
"lobehub.imagen-4.0-generate-001.description": "Imagen 第四代文本生成图像模型系列",
"lobehub.imagen-4.0-ultra-generate-001.description": "Imagen 第四代文本生成图像模型系列 Ultra 版本",
@@ -875,6 +876,9 @@
"lobehub.lobehub-kimi-k3-fast.description": "Kimi K3 的快速版本,显著降低了延迟。具备与 Kimi K3 相同的功能——成本更高,但响应速度更快。",
"lobehub.mimo-v2.5-pro.description": "小米 MiMo-V2.5-Pro 是 MiMo-V2.5 系列的旗舰产品,在通用智能代理能力、复杂软件工程和长时间任务方面取得了重大突破。其在高要求智能代理基准测试中的表现可与 Claude Opus 4.6 相媲美。",
"lobehub.mimo-v2.5.description": "小米 MiMo-V2.5 是一个多模态智能代理模型,能够理解图像、视频、音频和文本。它以大约一半的推理成本提供专业级智能代理性能,同时响应速度更快,多模态感知能力比 MiMo-V2-Omni 更强。",
+ "lobehub.mimo-v2.6-flash.description": "低成本多模态 Agent 模型,在 Agent 基准测试中超越 MiMo-V2.5-Pro,价格沿用上一代 MiMo-V2.5。",
+ "lobehub.mimo-v2.6-pro-ultraspeed.description": "保持 MiMo-V2.6-Pro 的能力,输出速度最高提升 20 倍,适合低延迟 Agent 场景。",
+ "lobehub.mimo-v2.6-pro.description": "开源多模态旗舰模型,面向长程编程与计算机操作,提供 100 万 token 上下文,价格沿用上一代 Pro。",
"lobehub.o3.description": "o3 是一个强大的全能模型,在数学、科学、编程和视觉推理方面设立了新的标杆。它擅长技术写作和指令跟随,并能分析文本、代码和图像以解决多步骤问题。",
"lobehub.o4-mini.description": "o4-mini 是最新的小型 o 系列模型,专为快速、高效的推理任务优化,在编程和视觉任务中表现出色。",
"lobehub.ox-alpha.description": "Ox Alpha 已被揭示为 GLM-5.3-Flash。请求会自动重定向到 GLM-5.3-Flash。",
diff --git a/packages/locales/src/default/modelProvider.ts b/packages/locales/src/default/modelProvider.ts
index 40bea9aaa52..bfe0866ca2e 100644
--- a/packages/locales/src/default/modelProvider.ts
+++ b/packages/locales/src/default/modelProvider.ts
@@ -290,6 +290,8 @@ export default {
'For Grok 4.5 series; controls reasoning intensity (low/medium/high, default high).',
'providerModels.item.modelConfig.extendParams.options.grok4_6ReasoningEffort.hint':
'For Grok 4.6 series; controls reasoning intensity (low/medium/high/xhigh, default high). Reasoning cannot be disabled.',
+ 'providerModels.item.modelConfig.extendParams.options.grok4_7ReasoningEffort.hint':
+ 'For Grok 4.7; controls reasoning intensity (low/medium/high/xhigh, default high). Reasoning cannot be disabled.',
'providerModels.item.modelConfig.extendParams.options.hy3ReasoningEffort.hint':
'For Hy3 models; controls reasoning intensity. no_think (ultra-fast response), low (quick reasoning), and high (deep reasoning)—to accommodate varying latency and depth requirements, from high-frequency interactions to complex engineering tasks.',
'providerModels.item.modelConfig.extendParams.options.ring2_6ReasoningEffort.hint':
diff --git a/packages/locales/src/lobehubOnlineModelDescriptions.test.ts b/packages/locales/src/lobehubOnlineModelDescriptions.test.ts
index d499ae71398..15a6d2ce529 100644
--- a/packages/locales/src/lobehubOnlineModelDescriptions.test.ts
+++ b/packages/locales/src/lobehubOnlineModelDescriptions.test.ts
@@ -15,6 +15,10 @@ const addedDescriptionKeys = [
'lobehub.glm-5.3-flash.description',
'lobehub.qwen3.8-max.description',
'lobehub.grok-4.6.description',
+ 'lobehub.grok-4.7.description',
+ 'lobehub.mimo-v2.6-flash.description',
+ 'lobehub.mimo-v2.6-pro-ultraspeed.description',
+ 'lobehub.mimo-v2.6-pro.description',
] as const;
describe('LobeHub online model descriptions', () => {
diff --git a/packages/locales/src/lobehubOnlineModelDescriptions.ts b/packages/locales/src/lobehubOnlineModelDescriptions.ts
index 8317564e150..f8cd054af89 100644
--- a/packages/locales/src/lobehubOnlineModelDescriptions.ts
+++ b/packages/locales/src/lobehubOnlineModelDescriptions.ts
@@ -147,6 +147,8 @@ export const lobeHubOnlineModelDescriptions = {
'Grok 4.5 delivers performance close to Claude Opus 4.8 with exceptionally fast responses.',
'lobehub.grok-4.6.description':
'Grok 4.6 builds on Grok 4.5 with a particular focus on long-running agents and more ambitious interactive and visual work.',
+ 'lobehub.grok-4.7.description':
+ 'Grok 4.7 is more reliable on long coding and knowledge work than Grok 4.6, at the same price and speed.',
'lobehub.imagen-4.0-fast-generate-001.description':
'Imagen 4th generation text-to-image model series',
'lobehub.imagen-4.0-generate-001.description': 'Imagen 4th generation text-to-image model series',
@@ -168,6 +170,12 @@ export const lobeHubOnlineModelDescriptions = {
'Xiaomi MiMo-V2.5-Pro is the flagship of the MiMo-V2.5 series, delivering major gains in general agentic capabilities, complex software engineering, and long-horizon tasks. Its performance on demanding agentic benchmarks is comparable to Claude Opus 4.6.',
'lobehub.mimo-v2.5.description':
'Xiaomi MiMo-V2.5 is a multimodal agent model that understands images, video, audio, and text. It delivers Pro-level agentic performance at roughly half the inference cost, with faster responses and stronger multimodal perception than MiMo-V2-Omni.',
+ 'lobehub.mimo-v2.6-flash.description':
+ 'A low-cost multimodal agent model that exceeds MiMo-V2.5-Pro on agent benchmarks at the previous MiMo-V2.5 price.',
+ 'lobehub.mimo-v2.6-pro-ultraspeed.description':
+ 'MiMo-V2.6-Pro quality at up to 20 times the output speed for latency-sensitive agents.',
+ 'lobehub.mimo-v2.6-pro.description':
+ 'An open-source multimodal flagship for long-horizon coding and computer use, with 1M context at the previous Pro price.',
'lobehub.MiniMax-M2.5-highspeed.description':
'Same performance as M2.5 with significantly faster inference.',
'lobehub.MiniMax-M2.5.description':
diff --git a/packages/model-bank/src/types/aiModel.ts b/packages/model-bank/src/types/aiModel.ts
index 9dc1962472e..63ddcf976d7 100644
--- a/packages/model-bank/src/types/aiModel.ts
+++ b/packages/model-bank/src/types/aiModel.ts
@@ -352,6 +352,7 @@ export interface AiModelReasoningConfig {
grok4_3ReasoningEffort?: 'none' | 'low' | 'medium' | 'high';
grok4_5ReasoningEffort?: 'low' | 'medium' | 'high';
grok4_6ReasoningEffort?: 'low' | 'medium' | 'high' | 'xhigh';
+ grok4_7ReasoningEffort?: 'low' | 'medium' | 'high' | 'xhigh';
grok4_20ReasoningEffort?: 'low' | 'medium' | 'high' | 'xhigh';
hy3ReasoningEffort?: 'no_think' | 'low' | 'high';
kimiK3ReasoningEffort?: 'low' | 'high' | 'max';
@@ -382,6 +383,7 @@ export const AiModelReasoningConfigSchema = z.object({
grok4_3ReasoningEffort: z.enum(['none', 'low', 'medium', 'high']).optional(),
grok4_5ReasoningEffort: z.enum(['low', 'medium', 'high']).optional(),
grok4_6ReasoningEffort: z.enum(['low', 'medium', 'high', 'xhigh']).optional(),
+ grok4_7ReasoningEffort: z.enum(['low', 'medium', 'high', 'xhigh']).optional(),
grok4_20ReasoningEffort: z.enum(['low', 'medium', 'high', 'xhigh']).optional(),
hy3ReasoningEffort: z.enum(['no_think', 'low', 'high']).optional(),
kimiK3ReasoningEffort: z.enum(['low', 'high', 'max']).optional(),
@@ -428,6 +430,7 @@ export const MODEL_REASONING_PARAM_LEVELS: {
grok4_3ReasoningEffort: ['none', 'low', 'medium', 'high'],
grok4_5ReasoningEffort: ['low', 'medium', 'high'],
grok4_6ReasoningEffort: ['low', 'medium', 'high', 'xhigh'],
+ grok4_7ReasoningEffort: ['low', 'medium', 'high', 'xhigh'],
grok4_20ReasoningEffort: ['low', 'medium', 'high', 'xhigh'],
hy3ReasoningEffort: ['no_think', 'low', 'high'],
kimiK3ReasoningEffort: ['low', 'high', 'max'],
@@ -465,6 +468,7 @@ export const MODEL_REASONING_PARAM_DEFAULTS: {
grok4_3ReasoningEffort: 'low',
grok4_5ReasoningEffort: 'high',
grok4_6ReasoningEffort: 'high',
+ grok4_7ReasoningEffort: 'high',
grok4_20ReasoningEffort: 'medium',
hy3ReasoningEffort: 'high',
kimiK3ReasoningEffort: 'max',
@@ -525,6 +529,7 @@ export type ExtendParamsType =
| 'grok4_3ReasoningEffort'
| 'grok4_5ReasoningEffort'
| 'grok4_6ReasoningEffort'
+ | 'grok4_7ReasoningEffort'
| 'hy3ReasoningEffort'
| 'kimiK3ReasoningEffort'
| 'ring2_6ReasoningEffort'
@@ -587,6 +592,7 @@ export const ExtendParamsTypeSchema = z.enum([
'grok4_3ReasoningEffort',
'grok4_5ReasoningEffort',
'grok4_6ReasoningEffort',
+ 'grok4_7ReasoningEffort',
'hy3ReasoningEffort',
'kimiK3ReasoningEffort',
'ring2_6ReasoningEffort',
diff --git a/packages/model-runtime/src/core/RouterRuntime/createRuntime.test.ts b/packages/model-runtime/src/core/RouterRuntime/createRuntime.test.ts
index 12afde87ec3..24748a56d0c 100644
--- a/packages/model-runtime/src/core/RouterRuntime/createRuntime.test.ts
+++ b/packages/model-runtime/src/core/RouterRuntime/createRuntime.test.ts
@@ -1414,6 +1414,7 @@ describe('createRouterRuntime', () => {
baseRuntimeMap: {
google: CompatibleRuntime,
openai: CompatibleRuntime,
+ xiaomimimo: CompatibleRuntime,
},
}));
@@ -1440,6 +1441,7 @@ describe('createRouterRuntime', () => {
{ apiKey: 'google-key', apiType: 'google' },
{ apiKey: 'xai-key', apiType: 'xai' },
{ apiKey: 'openai-key', apiType: 'openai' },
+ { apiKey: 'xiaomi-key', apiType: 'xiaomimimo' },
{ apiKey: 'vertex-key', apiType: 'vertexai' },
],
runtime: UnsupportedRuntime as any,
@@ -1464,7 +1466,7 @@ describe('createRouterRuntime', () => {
});
expect(result).toBe('vertex-response');
- expect(attemptedRoutes).toEqual(['google-key', 'openai-key', 'vertexai']);
+ expect(attemptedRoutes).toEqual(['google-key', 'openai-key', 'xiaomi-key', 'vertexai']);
expect(unsupportedChat).not.toHaveBeenCalled();
expect(vertexChat).toHaveBeenCalledTimes(1);
});
diff --git a/packages/model-runtime/src/core/RouterRuntime/createRuntime.ts b/packages/model-runtime/src/core/RouterRuntime/createRuntime.ts
index d248f89818d..6b5d82fd10d 100644
--- a/packages/model-runtime/src/core/RouterRuntime/createRuntime.ts
+++ b/packages/model-runtime/src/core/RouterRuntime/createRuntime.ts
@@ -134,7 +134,7 @@ interface RouteAttemptContext {
user?: string;
}
-const RAW_AUDIO_API_TYPES = new Set<ApiType>(['google', 'openai', 'vertexai']);
+const RAW_AUDIO_API_TYPES = new Set<ApiType>(['google', 'openai', 'vertexai', 'xiaomimimo']);
const hasRawAudioInput = (payload: ChatStreamPayload) =>
payload.messages.some(
diff --git a/packages/model-runtime/src/providers/xiaomimimo/index.ts b/packages/model-runtime/src/providers/xiaomimimo/index.ts
index e1a8f66cd3c..04c579e81ad 100644
--- a/packages/model-runtime/src/providers/xiaomimimo/index.ts
+++ b/packages/model-runtime/src/providers/xiaomimimo/index.ts
@@ -102,6 +102,7 @@ export const params = {
: undefined),
} as any;
},
+ supportsAudioInput: true,
},
debug: {
chatCompletion: () => process.env.DEBUG_XIAOMIMIMO_CHAT_COMPLETION === '1',
diff --git a/packages/model-runtime/src/utils/modelExtendParams.test.ts b/packages/model-runtime/src/utils/modelExtendParams.test.ts
index 77d5ed933b6..0425630240d 100644
--- a/packages/model-runtime/src/utils/modelExtendParams.test.ts
+++ b/packages/model-runtime/src/utils/modelExtendParams.test.ts
@@ -212,6 +212,16 @@ describe('applyModelExtendParams', () => {
expect(result.reasoning_effort).toBe('xhigh');
});
+ it('resolves Grok 4.7 xhigh reasoning effort', () => {
+ const result = applyModelExtendParams({
+ chatConfig: chatConfig({ grok4_7ReasoningEffort: 'xhigh' }),
+ extendParams: ['grok4_7ReasoningEffort'],
+ model: 'grok-4.7',
+ });
+
+ expect(result.reasoning_effort).toBe('xhigh');
+ });
+
it('resolves GPT-5.6 Pro mode independently from reasoning effort', () => {
const result = applyModelExtendParams({
chatConfig: chatConfig({
diff --git a/packages/model-runtime/src/utils/modelExtendParams.ts b/packages/model-runtime/src/utils/modelExtendParams.ts
index a5ebd1aed0e..98ebe16e4e0 100644
--- a/packages/model-runtime/src/utils/modelExtendParams.ts
+++ b/packages/model-runtime/src/utils/modelExtendParams.ts
@@ -346,6 +346,10 @@ export const applyModelExtendParams = (ctx: ApplyModelExtendParamsContext): Mode
extendParams.reasoning_effort = chatConfig.grok4_6ReasoningEffort;
}
+ if (modelExtendParams.includes('grok4_7ReasoningEffort') && chatConfig.grok4_7ReasoningEffort) {
+ extendParams.reasoning_effort = chatConfig.grok4_7ReasoningEffort;
+ }
+
if (modelExtendParams.includes('hy3ReasoningEffort') && chatConfig.hy3ReasoningEffort) {
extendParams.reasoning_effort = chatConfig.hy3ReasoningEffort;
}
diff --git a/packages/types/src/agent/chatConfig.ts b/packages/types/src/agent/chatConfig.ts
index 6799861dcb0..30d8051cc93 100644
--- a/packages/types/src/agent/chatConfig.ts
+++ b/packages/types/src/agent/chatConfig.ts
@@ -98,6 +98,7 @@ export interface LobeAgentChatConfig extends AgentMemoryChatConfig, AgentSelfIte
grok4_3ReasoningEffort?: 'none' | 'low' | 'medium' | 'high';
grok4_5ReasoningEffort?: 'low' | 'medium' | 'high';
grok4_6ReasoningEffort?: 'low' | 'medium' | 'high' | 'xhigh';
+ grok4_7ReasoningEffort?: 'low' | 'medium' | 'high' | 'xhigh';
grok4_20ReasoningEffort?: 'low' | 'medium' | 'high' | 'xhigh';
/**
* Number of historical messages
@@ -265,6 +266,7 @@ export const AgentChatConfigSchema = z
grok4_3ReasoningEffort: z.enum(['none', 'low', 'medium', 'high']).optional(),
grok4_5ReasoningEffort: z.enum(['low', 'medium', 'high']).optional(),
grok4_6ReasoningEffort: z.enum(['low', 'medium', 'high', 'xhigh']).optional(),
+ grok4_7ReasoningEffort: z.enum(['low', 'medium', 'high', 'xhigh']).optional(),
hy3ReasoningEffort: z.enum(['no_think', 'low', 'high']).optional(),
kimiK3ReasoningEffort: z.enum(['low', 'high', 'max']).optional(),
ring2_6ReasoningEffort: z.enum(['high', 'xhigh']).optional(),
diff --git a/src/features/ModelSwitchPanel/components/ControlsForm/ControlsForm.tsx b/src/features/ModelSwitchPanel/components/ControlsForm/ControlsForm.tsx
index ed932c8eebc..b491d42e115 100644
--- a/src/features/ModelSwitchPanel/components/ControlsForm/ControlsForm.tsx
+++ b/src/features/ModelSwitchPanel/components/ControlsForm/ControlsForm.tsx
@@ -37,6 +37,7 @@ import { GPT56ReasoningEffortSlider } from './GPT56ReasoningEffortSlider';
import Grok43ReasoningEffortSlider from './Grok43ReasoningEffortSlider';
import Grok45ReasoningEffortSlider from './Grok45ReasoningEffortSlider';
import Grok46ReasoningEffortSlider from './Grok46ReasoningEffortSlider';
+import Grok47ReasoningEffortSlider from './Grok47ReasoningEffortSlider';
import Grok420ReasoningEffortSlider from './Grok420ReasoningEffortSlider';
import Hy3ReasoningEffortSlider from './Hy3ReasoningEffortSlider';
import ImageAspectRatio2Select from './ImageAspectRatio2Select';
@@ -446,6 +447,16 @@ const ControlsForm = memo<ControlsFormProps>(
paddingBottom: 0,
},
},
+ {
+ children: <Grok47ReasoningEffortSlider />,
+ label: t('extendParams.reasoningEffort.title'),
+ layout: 'vertical',
+ minWidth: undefined,
+ name: 'grok4_7ReasoningEffort',
+ style: {
+ paddingBottom: 0,
+ },
+ },
{
children: <Hy3ReasoningEffortSlider />,
label: t('extendParams.reasoningEffort.title'),
diff --git a/src/features/ModelSwitchPanel/components/ControlsForm/Grok47ReasoningEffortSlider.tsx b/src/features/ModelSwitchPanel/components/ControlsForm/Grok47ReasoningEffortSlider.tsx
new file mode 100644
index 00000000000..bf12d1341a2
--- /dev/null
+++ b/src/features/ModelSwitchPanel/components/ControlsForm/Grok47ReasoningEffortSlider.tsx
@@ -0,0 +1,17 @@
+import { type CreatedLevelSliderProps } from './createLevelSlider';
+import { createLevelSliderComponent } from './createLevelSlider';
+
+/** Grok 4.7 has no off setting. See https://docs.x.ai/developers/model-capabilities/text/reasoning */
+const GROK4_7_REASONING_EFFORT_LEVELS = ['low', 'medium', 'high', 'xhigh'] as const;
+type Grok47ReasoningEffort = (typeof GROK4_7_REASONING_EFFORT_LEVELS)[number];
+
+export type Grok47ReasoningEffortSliderProps = CreatedLevelSliderProps<Grok47ReasoningEffort>;
+
+const Grok47ReasoningEffortSlider = createLevelSliderComponent<Grok47ReasoningEffort>({
+ configKey: 'grok4_7ReasoningEffort',
+ defaultValue: 'high',
+ levels: GROK4_7_REASONING_EFFORT_LEVELS,
+ style: { minWidth: 200 },
+});
+
+export default Grok47ReasoningEffortSlider;
diff --git a/src/features/Settings/provider/features/ModelList/CreateNewModelModal/ExtendParamsSelect.tsx b/src/features/Settings/provider/features/ModelList/CreateNewModelModal/ExtendParamsSelect.tsx
index 946bd62d992..057af6cbf55 100644
--- a/src/features/Settings/provider/features/ModelList/CreateNewModelModal/ExtendParamsSelect.tsx
+++ b/src/features/Settings/provider/features/ModelList/CreateNewModelModal/ExtendParamsSelect.tsx
@@ -21,6 +21,7 @@ import { GPT56ReasoningEffortSlider } from '@/features/ModelSwitchPanel/componen
import Grok43ReasoningEffortSlider from '@/features/ModelSwitchPanel/components/ControlsForm/Grok43ReasoningEffortSlider';
import Grok45ReasoningEffortSlider from '@/features/ModelSwitchPanel/components/ControlsForm/Grok45ReasoningEffortSlider';
import Grok46ReasoningEffortSlider from '@/features/ModelSwitchPanel/components/ControlsForm/Grok46ReasoningEffortSlider';
+import Grok47ReasoningEffortSlider from '@/features/ModelSwitchPanel/components/ControlsForm/Grok47ReasoningEffortSlider';
import Grok420ReasoningEffortSlider from '@/features/ModelSwitchPanel/components/ControlsForm/Grok420ReasoningEffortSlider';
import Hy3ReasoningEffortSlider from '@/features/ModelSwitchPanel/components/ControlsForm/Hy3ReasoningEffortSlider';
import ImageAspectRatio2Select from '@/features/ModelSwitchPanel/components/ControlsForm/ImageAspectRatio2Select';
@@ -156,6 +157,10 @@ const EXTEND_PARAMS_OPTIONS: ExtendParamsOption[] = [
hintKey: 'providerModels.item.modelConfig.extendParams.options.grok4_6ReasoningEffort.hint',
key: 'grok4_6ReasoningEffort',
},
+ {
+ hintKey: 'providerModels.item.modelConfig.extendParams.options.grok4_7ReasoningEffort.hint',
+ key: 'grok4_7ReasoningEffort',
+ },
{
hintKey: 'providerModels.item.modelConfig.extendParams.options.hy3ReasoningEffort.hint',
key: 'hy3ReasoningEffort',
@@ -244,6 +249,7 @@ const TITLE_KEY_ALIASES: Partial<Record<ExtendParamsType, ExtendParamsType>> = {
grok4_3ReasoningEffort: 'reasoningEffort',
grok4_5ReasoningEffort: 'reasoningEffort',
grok4_6ReasoningEffort: 'reasoningEffort',
+ grok4_7ReasoningEffort: 'reasoningEffort',
hy3ReasoningEffort: 'reasoningEffort',
kimiK3ReasoningEffort: 'reasoningEffort',
qwen38ReasoningEffort: 'reasoningEffort',
@@ -327,6 +333,11 @@ const PREVIEW_META: Partial<Record<ExtendParamsType, PreviewMeta>> = {
previewWidth: 300,
tag: 'reasoning_effort',
},
+ grok4_7ReasoningEffort: {
+ labelSuffix: ' (Grok 4.7)',
+ previewWidth: 300,
+ tag: 'reasoning_effort',
+ },
hy3ReasoningEffort: {
labelSuffix: ' (Hy3 preview)',
previewWidth: 300,
@@ -510,6 +521,7 @@ const ExtendParamsSelect = memo<ExtendParamsSelectProps>(({ value, onChange }) =
grok4_3ReasoningEffort: <Grok43ReasoningEffortSlider value="low" />,
grok4_5ReasoningEffort: <Grok45ReasoningEffortSlider value="high" />,
grok4_6ReasoningEffort: <Grok46ReasoningEffortSlider value="high" />,
+ grok4_7ReasoningEffort: <Grok47ReasoningEffortSlider value="high" />,
hy3ReasoningEffort: <Hy3ReasoningEffortSlider value="high" />,
kimiK3ReasoningEffort: <KimiK3ReasoningEffortSlider value="max" />,
ring2_6ReasoningEffort: <Ring26ReasoningEffortSlider value="high" />,