🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
✨ feat: add AntGroup (蚂蚁百灵) provider support (#13713)
Zhijie He3a780a62f6cd
diff --git a/locales/en-US/modelProvider.json b/locales/en-US/modelProvider.jsonindex 834f56418ac..c286a0d69af 100644--- a/locales/en-US/modelProvider.json+++ b/locales/en-US/modelProvider.json@@ -239,6 +239,7 @@"providerModels.item.modelConfig.extendParams.options.reasoningBudgetToken32k.hint": "For GLM-5 and GLM-4.7; controls token budget for reasoning (max 32k).","providerModels.item.modelConfig.extendParams.options.reasoningBudgetToken80k.hint": "For Qwen3 series; controls token budget for reasoning (max 80k).","providerModels.item.modelConfig.extendParams.options.reasoningEffort.hint": "For OpenAI and other reasoning-capable models; controls reasoning effort.",+ "providerModels.item.modelConfig.extendParams.options.ring2_6ReasoningEffort.hint": "For Ring 2.6 series; controls reasoning intensity.","providerModels.item.modelConfig.extendParams.options.step3_5ReasoningEffort.hint": "For Step 3.5 series; controls reasoning intensity.","providerModels.item.modelConfig.extendParams.options.textVerbosity.hint": "For GPT-5+ series; controls output verbosity.","providerModels.item.modelConfig.extendParams.options.thinking.hint": "For some Doubao models; allow model to decide whether to think deeply.",diff --git a/locales/en-US/providers.json b/locales/en-US/providers.jsonindex ece32d67261..910fac22227 100644--- a/locales/en-US/providers.json+++ b/locales/en-US/providers.json@@ -4,6 +4,7 @@"ai360.description": "360 AI is a model and service platform from 360, offering NLP models like 360GPT2 Pro, 360GPT Pro, and 360GPT Turbo. The models combine large-scale parameters and multimodal capabilities for text generation, semantic understanding, chat, and code, with flexible pricing for diverse needs.","aihubmix.description": "AiHubMix provides access to multiple AI models through a unified API.","akashchat.description": "Akash is a permissionless cloud resource marketplace with competitive pricing compared to traditional cloud providers.",+ "antgroup.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.","anthropic.description": "Anthropic builds advanced language models like Claude 3.5 Sonnet, Claude 3 Sonnet, Claude 3 Opus, and Claude 3 Haiku, balancing intelligence, speed, and cost for workloads from enterprise to rapid-response use cases.","azure.description": "Azure offers advanced AI models, including GPT-3.5 and GPT-4 series, for diverse data types and complex tasks with a focus on safe, reliable, and sustainable AI.","azureai.description": "Azure provides advanced AI models, including GPT-3.5 and GPT-4 series, for diverse data types and complex tasks with a focus on safe, reliable, and sustainable AI.",diff --git a/locales/zh-CN/modelProvider.json b/locales/zh-CN/modelProvider.jsonindex 0a701fd82ba..eeaa5541fa5 100644--- a/locales/zh-CN/modelProvider.json+++ b/locales/zh-CN/modelProvider.json@@ -239,6 +239,7 @@"providerModels.item.modelConfig.extendParams.options.reasoningBudgetToken32k.hint": "适用于GLM-5和GLM-4.7;控制推理的令牌预算(最大32k)。","providerModels.item.modelConfig.extendParams.options.reasoningBudgetToken80k.hint": "适用于Qwen3系列;控制推理的令牌预算(最大80k)。","providerModels.item.modelConfig.extendParams.options.reasoningEffort.hint": "适用于 OpenAI 及其他具备推理能力的模型;控制推理力度。",+ "providerModels.item.modelConfig.extendParams.options.ring2_6ReasoningEffort.hint": "适用于 Ring 2.6 系列;控制推理强度。","providerModels.item.modelConfig.extendParams.options.step3_5ReasoningEffort.hint": "适用于 Step 3.5 系列;控制推理强度。","providerModels.item.modelConfig.extendParams.options.textVerbosity.hint": "适用于 GPT-5+ 系列;控制输出内容的详尽程度。","providerModels.item.modelConfig.extendParams.options.thinking.hint": "适用于部分豆包模型;允许模型自行决定是否进行深度思考。",diff --git a/locales/zh-CN/providers.json b/locales/zh-CN/providers.jsonindex 1e2c3bf58e9..7fc5c833574 100644--- a/locales/zh-CN/providers.json+++ b/locales/zh-CN/providers.json@@ -4,6 +4,7 @@"ai360.description": "360 AI 是来自 360 的模型与服务平台,提供如 360GPT2 Pro、360GPT Pro 和 360GPT Turbo 等自然语言处理模型,结合大参数规模与多模态能力,支持文本生成、语义理解、对话与代码处理,定价灵活,满足多样化需求。","aihubmix.description": "AiHubMix 通过统一 API 提供多种 AI 模型的访问能力。","akashchat.description": "Akash 是一个无需许可的云资源市场,与传统云提供商相比,其定价具有竞争力。",+ "antgroup.description": "蚂蚁百灵(Ant Ling)是蚂蚁集团通用人工智能(AGI)计划的核心基础模型系列,致力于构建并开放前沿基础模型能力。我们相信,智能的发展需要走向开放、共享和可扩展,从小事出发,推动通用人工智能的稳健演进与真实落地。","anthropic.description": "Anthropic 构建了先进的语言模型,如 Claude 3.5 Sonnet、Claude 3 Sonnet、Claude 3 Opus 和 Claude 3 Haiku,兼顾智能、速度与成本,适用于企业级到快速响应等多种场景。","azure.description": "Azure 提供先进的 AI 模型,包括 GPT-3.5 和 GPT-4 系列,支持多种数据类型和复杂任务,注重安全、可靠与可持续的 AI 实践。","azureai.description": "Azure 提供先进的 AI 模型,包括 GPT-3.5 和 GPT-4 系列,支持多种数据类型和复杂任务,注重安全、可靠与可持续的 AI 实践。",diff --git a/packages/env/src/llm.ts b/packages/env/src/llm.tsindex 27a541b3ced..b7b1e5aeb1b 100644--- a/packages/env/src/llm.ts+++ b/packages/env/src/llm.ts@@ -251,6 +251,9 @@ export const getLLMConfig = () => {ENABLED_STREAMLAKE: z.boolean(),STREAMLAKE_API_KEY: z.string().optional(),++ ENABLED_ANTGROUP: z.boolean(),+ ANTGROUP_API_KEY: z.string().optional(),},runtimeEnv: {API_KEY_SELECT_MODE: process.env.API_KEY_SELECT_MODE,@@ -501,6 +504,9 @@ export const getLLMConfig = () => {ENABLED_STREAMLAKE: !!process.env.STREAMLAKE_API_KEY,STREAMLAKE_API_KEY: process.env.STREAMLAKE_API_KEY,++ ENABLED_ANTGROUP: !!process.env.ANTGROUP_API_KEY,+ ANTGROUP_API_KEY: process.env.ANTGROUP_API_KEY,},});};diff --git a/packages/locales/src/default/modelProvider.ts b/packages/locales/src/default/modelProvider.tsindex 9568954dbe9..d7f09c3e638 100644--- a/packages/locales/src/default/modelProvider.ts+++ b/packages/locales/src/default/modelProvider.ts@@ -271,6 +271,8 @@ export default {'For Grok 4.3 series; controls reasoning intensity.','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':+ 'For Ring 2.6 series; controls reasoning intensity.','providerModels.item.modelConfig.extendParams.options.deepseekV4ReasoningEffort.hint':'For DeepSeek V4 thinking mode; controls reasoning intensity. `high` is the default, `max` unlocks the deepest reasoning used by complex agent workflows.','providerModels.item.modelConfig.extendParams.options.imageAspectRatio.hint':diff --git a/packages/model-bank/package.json b/packages/model-bank/package.jsonindex 485d2eee0f2..dbdd5b75787 100644--- a/packages/model-bank/package.json+++ b/packages/model-bank/package.json@@ -11,6 +11,7 @@"./ai360": "./src/aiModels/ai360.ts","./aihubmix": "./src/aiModels/aihubmix.ts","./akashchat": "./src/aiModels/akashchat.ts",+ "./antgroup": "./src/aiModels/antgroup.ts","./anthropic": "./src/aiModels/anthropic.ts","./azureai": "./src/aiModels/azureai.ts","./azure": "./src/aiModels/azure.ts",diff --git a/packages/model-bank/src/aiModels/antgroup.ts b/packages/model-bank/src/aiModels/antgroup.tsnew file mode 100644index 00000000000..e8b396083a0--- /dev/null+++ b/packages/model-bank/src/aiModels/antgroup.ts@@ -0,0 +1,138 @@+import { type AIChatModelCard } from '../types/aiModel';++const antgroupChatModels: AIChatModelCard[] = [+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ search: true,+ },+ contextWindowTokens: 262_144,+ description:+ 'Ring-2.6-1T is a trillion-parameter-scale reasoning model that activates approximately 63B parameters per inference. Designed for Agent workflows, it focuses on agent capabilities, tool use, and long-horizon task execution, achieving leading performance on benchmarks such as PinchBench, ClawEval, TAU2-Bench, and GAIA2-search. The model is optimized across execution quality, latency, and cost, making it well suited for advanced coding agents, complex reasoning pipelines, and large-scale autonomous systems.',+ displayName: 'Ring-2.6-1T',+ enabled: true,+ family: 'ring',+ generation: 'ring-2.6',+ id: 'Ring-2.6-1T',+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput', rate: 4.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 18, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-05-15',+ settings: {+ extendParams: ['ring2_6ReasoningEffort'],+ searchImpl: 'params',+ },+ type: 'chat',+ },+ {+ abilities: {+ reasoning: true,+ search: true,+ },+ contextWindowTokens: 131_072,+ description:+ 'Compared to the previously released Ring-1T, Ring-2.5-1T achieves significant improvements across three key dimensions: generation efficiency, reasoning depth, and long-horizon task execution capability: Generation Efficiency**: By leveraging a high proportion of linear attention mechanisms, Ring-2.5-1T reduces memory access overhead by more than 10×. When processing sequences exceeding 32K tokens, it delivers over 3× higher generation throughput, making it particularly well-suited for deep reasoning and long-horizon task execution. Deep Reasoning**: Building on RLVR, a dense reward mechanism is introduced to provide feedback on the rigor of the reasoning process. This enables Ring-2.5-1T to achieve gold-medal-level performance in both IMO 2025 and CMO 2025 (self-evaluated). Long-Horizon Task Execution**: Through large-scale fully asynchronous agent-based reinforcement learning training, the model significantly enhances its ability to autonomously execute complex tasks over extended periods. This allows Ring-2.5-1T to seamlessly integrate with agent programming frameworks such as Claude Code and OpenClaw personal AI assistants.',+ displayName: 'Ring-2.5-1T',+ family: 'ring',+ generation: 'ring-2.5',+ id: 'Ring-2.5-1T',+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-02-15',+ settings: {+ searchImpl: 'params',+ },+ type: 'chat',+ },+ {+ abilities: {+ functionCall: true,+ search: true,+ structuredOutput: true,+ },+ contextWindowTokens: 262_144, // Model can support 1M context window but API only release 256K+ 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',+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput', rate: 4.5, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 18, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-04-29',+ settings: {+ searchImpl: 'params',+ },+ type: 'chat',+ },+ {+ abilities: {+ functionCall: true,+ search: true,+ structuredOutput: true,+ },+ contextWindowTokens: 262_144,+ 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',+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 1.8, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-04-22',+ settings: {+ searchImpl: 'params',+ },+ type: 'chat',+ },+ {+ abilities: {+ functionCall: true,+ search: true,+ },+ contextWindowTokens: 131_072,+ description:+ 'As the latest flagship real-time model in the Ling series, Ling-2.5-1T introduces comprehensive upgrades in model architecture, token efficiency, and preference alignment, aiming to elevate the quality of accessible AI to a new level.',+ displayName: 'Ling-2.5-1T',+ family: 'ling',+ generation: 'ling-2.5',+ id: 'Ling-2.5-1T',+ pricing: {+ currency: 'CNY',+ units: [+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2026-02-16',+ settings: {+ searchImpl: 'params',+ },+ type: 'chat',+ },+];++export default antgroupChatModels;diff --git a/packages/model-bank/src/aiModels/index.ts b/packages/model-bank/src/aiModels/index.tsindex 60a15d35196..3904b0c1d9c 100644--- a/packages/model-bank/src/aiModels/index.ts+++ b/packages/model-bank/src/aiModels/index.ts@@ -6,6 +6,7 @@ import { default as ai302 } from './ai302';import { default as ai360 } from './ai360';import { default as aihubmix } from './aihubmix';import { default as akashchat } from './akashchat';+import { default as antgroup } from './antgroup';import { default as anthropic } from './anthropic';import { default as azure } from './azure';import { default as azureai } from './azureai';@@ -113,6 +114,7 @@ const staticModelMap: ModelsMap = {ai360,aihubmix,akashchat,+ antgroup,anthropic,azure,azureai,@@ -226,6 +228,7 @@ export { default as ai302 } from './ai302';export { default as ai360 } from './ai360';export { default as aihubmix } from './aihubmix';export { default as akashchat } from './akashchat';+export { default as antgroup } from './antgroup';export { default as anthropic } from './anthropic';export { default as azure } from './azure';export { default as azureai } from './azureai';diff --git a/packages/model-bank/src/const/modelProvider.ts b/packages/model-bank/src/const/modelProvider.tsindex 5b70710b6a8..4ff62048a2a 100644--- a/packages/model-bank/src/const/modelProvider.ts+++ b/packages/model-bank/src/const/modelProvider.ts@@ -4,6 +4,7 @@ export enum ModelProvider {Ai360 = 'ai360',AiHubMix = 'aihubmix',AkashChat = 'akashchat',+ AntGroup = 'antgroup',Anthropic = 'anthropic',Azure = 'azure',AzureAI = 'azureai',diff --git a/packages/model-bank/src/modelProviders/antgroup.ts b/packages/model-bank/src/modelProviders/antgroup.tsnew file mode 100644index 00000000000..f1303d73698--- /dev/null+++ b/packages/model-bank/src/modelProviders/antgroup.ts@@ -0,0 +1,19 @@+import type { ModelProviderCard } from '@/types/llm';++const AntGroup: ModelProviderCard = {+ chatModels: [],+ checkModel: 'Ling-2.6-flash',+ 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',+ name: 'AntGroup',+ settings: {+ //disableBrowserRequest: false,+ sdkType: 'openai',+ showModelFetcher: false,+ },+ url: 'https://ling.tbox.cn/open',+};++export default AntGroup;diff --git a/packages/model-bank/src/modelProviders/index.ts b/packages/model-bank/src/modelProviders/index.tsindex ba6b2c1355f..cb3a2e2fc61 100644--- a/packages/model-bank/src/modelProviders/index.ts+++ b/packages/model-bank/src/modelProviders/index.ts@@ -7,6 +7,7 @@ import Ai302Provider from './ai302';import Ai360Provider from './ai360';import AiHubMixProvider from './aihubmix';import AkashChatProvider from './akashchat';+import AntGroupProvider from './antgroup';import AnthropicProvider from './anthropic';import AzureProvider from './azure';import AzureAIProvider from './azureai';@@ -222,6 +223,7 @@ export const DEFAULT_MODEL_PROVIDER_LIST = [XiaomiMiMoProvider,LongCatProvider,StreamLakeProvider,+ AntGroupProvider,];export const filterEnabledModels = (provider: ModelProviderCard) => {@@ -240,6 +242,7 @@ export { default as Ai302ProviderCard } from './ai302';export { default as Ai360ProviderCard } from './ai360';export { default as AiHubMixProviderCard } from './aihubmix';export { default as AkashChatProviderCard } from './akashchat';+export { default as AntGroupProviderCard } from './antgroup';export { default as AnthropicProviderCard } from './anthropic';export { default as AzureProviderCard } from './azure';export { default as AzureAIProviderCard } from './azureai';diff --git a/packages/model-bank/src/types/aiModel.ts b/packages/model-bank/src/types/aiModel.tsindex 3c45b534518..ad953dc1bdd 100644--- a/packages/model-bank/src/types/aiModel.ts+++ b/packages/model-bank/src/types/aiModel.ts@@ -286,6 +286,7 @@ export type ExtendParamsType =| 'grok4_20ReasoningEffort'| 'grok4_3ReasoningEffort'| 'hy3ReasoningEffort'+ | 'ring2_6ReasoningEffort'| 'codexMaxReasoningEffort'| 'opus47Effort'| 'step3_5ReasoningEffort'@@ -337,6 +338,7 @@ export const ExtendParamsTypeSchema = z.enum(['grok4_20ReasoningEffort','grok4_3ReasoningEffort','hy3ReasoningEffort',+ 'ring2_6ReasoningEffort','codexMaxReasoningEffort','opus47Effort','step3_5ReasoningEffort',diff --git a/packages/model-runtime/src/index.ts b/packages/model-runtime/src/index.tsindex d4a79ba20a9..85b611e72ff 100644--- a/packages/model-runtime/src/index.ts+++ b/packages/model-runtime/src/index.ts@@ -33,6 +33,7 @@ export {} from './errors';export * from './helpers';export { LobeAkashChatAI } from './providers/akashchat';+export { LobeAntGroupAI } from './providers/antgroup';export { LobeAnthropicAI } from './providers/anthropic';export { LobeAzureAI } from './providers/azureai';export { LobeAzureOpenAI } from './providers/azureOpenai';diff --git a/packages/model-runtime/src/providers/antgroup/index.ts b/packages/model-runtime/src/providers/antgroup/index.tsnew file mode 100644index 00000000000..d25ee275538--- /dev/null+++ b/packages/model-runtime/src/providers/antgroup/index.ts@@ -0,0 +1,25 @@+import { ModelProvider } from 'model-bank';++import { createOpenAICompatibleRuntime } from '../../core/openaiCompatibleFactory';++export const LobeAntGroupAI = createOpenAICompatibleRuntime({+ baseURL: 'https://api.tbox.cn/api/llm/v1',+ chatCompletion: {+ handlePayload: (payload) => {+ const { enabledSearch, reasoning_effort, ...rest } = payload;++ return {+ ...rest,+ ...(reasoning_effort && { reasoning: { effort: reasoning_effort } }),+ ...(enabledSearch && {+ enable_search: true,+ // search_options: { forced_search: true },+ }),+ } as any;+ },+ },+ debug: {+ chatCompletion: () => process.env.DEBUG_ANTGROUP_CHAT_COMPLETION === '1',+ },+ provider: ModelProvider.AntGroup,+});diff --git a/packages/model-runtime/src/runtimeMap.ts b/packages/model-runtime/src/runtimeMap.tsindex 52670476577..b829c7579a5 100644--- a/packages/model-runtime/src/runtimeMap.ts+++ b/packages/model-runtime/src/runtimeMap.ts@@ -3,6 +3,7 @@ import { Lobe302AI } from './providers/ai302';import { LobeAi360AI } from './providers/ai360';import { LobeAiHubMixAI } from './providers/aihubmix';import { LobeAkashChatAI } from './providers/akashchat';+import { LobeAntGroupAI } from './providers/antgroup';import { LobeAnthropicAI } from './providers/anthropic';import { LobeAzureAI } from './providers/azureai';import { LobeAzureOpenAI } from './providers/azureOpenai';@@ -85,6 +86,7 @@ export const providerRuntimeMap = {ai360: LobeAi360AI,aihubmix: LobeAiHubMixAI,akashchat: LobeAkashChatAI,+ antgroup: LobeAntGroupAI,anthropic: LobeAnthropicAI,bailiancodingplan: LobeBailianCodingPlanAI,azure: LobeAzureOpenAI,diff --git a/packages/types/src/agent/chatConfig.ts b/packages/types/src/agent/chatConfig.tsindex ec595076296..0283490ecdc 100644--- a/packages/types/src/agent/chatConfig.ts+++ b/packages/types/src/agent/chatConfig.ts@@ -129,6 +129,7 @@ export interface LobeAgentChatConfig extends AgentMemoryChatConfig, AgentSelfIte*/reasoningBudgetToken80k?: number;reasoningEffort?: 'low' | 'medium' | 'high';+ ring2_6ReasoningEffort?: 'high' | 'xhigh';/*** Runtime environment configuration (desktop only)*/@@ -237,6 +238,7 @@ export const AgentChatConfigSchema = zgrok4_20ReasoningEffort: z.enum(['low', 'medium', 'high', 'xhigh']).optional(),grok4_3ReasoningEffort: z.enum(['none', 'low', 'medium', 'high']).optional(),hy3ReasoningEffort: z.enum(['no_think', 'low', 'high']).optional(),+ ring2_6ReasoningEffort: z.enum(['high', 'xhigh']).optional(),historyCount: z.number().optional(),imageAspectRatio: z.string().optional(),imageAspectRatio2: z.string().optional(),diff --git a/src/features/ModelSwitchPanel/components/ControlsForm/ControlsForm.tsx b/src/features/ModelSwitchPanel/components/ControlsForm/ControlsForm.tsxindex 25f4fae0050..8378a8626d3 100644--- a/src/features/ModelSwitchPanel/components/ControlsForm/ControlsForm.tsx+++ b/src/features/ModelSwitchPanel/components/ControlsForm/ControlsForm.tsx@@ -33,6 +33,7 @@ import ReasoningEffortSlider from './ReasoningEffortSlider';import ReasoningTokenSlider from './ReasoningTokenSlider';import ReasoningTokenSlider32k from './ReasoningTokenSlider32k';import ReasoningTokenSlider80k from './ReasoningTokenSlider80k';+import Ring26ReasoningEffortSlider from './Ring26ReasoningEffortSlider';import Step3_5ReasoningEffortSlider from './Step3_5ReasoningEffortSlider';import TextVerbositySlider from './TextVerbositySlider';import ThinkingBudgetSlider from './ThinkingBudgetSlider';@@ -329,6 +330,17 @@ const ControlsForm = memo<ControlsFormProps>(paddingBottom: 0,},},+ {+ children: <Ring26ReasoningEffortSlider />,+ desc: 'reasoning_effort',+ label: t('extendParams.reasoningEffort.title'),+ layout: 'vertical',+ minWidth: undefined,+ name: 'ring2_6ReasoningEffort',+ style: {+ paddingBottom: 0,+ },+ },{children: <CodexMaxReasoningEffortSlider />,desc: 'reasoning_effort',diff --git a/src/features/ModelSwitchPanel/components/ControlsForm/Ring26ReasoningEffortSlider.tsx b/src/features/ModelSwitchPanel/components/ControlsForm/Ring26ReasoningEffortSlider.tsxnew file mode 100644index 00000000000..c41e8788adc--- /dev/null+++ b/src/features/ModelSwitchPanel/components/ControlsForm/Ring26ReasoningEffortSlider.tsx@@ -0,0 +1,16 @@+import { type CreatedLevelSliderProps } from './createLevelSlider';+import { createLevelSliderComponent } from './createLevelSlider';++const RING2_6_REASONING_EFFORT_LEVELS = ['high', 'xhigh'] as const;+type Ring26ReasoningEffort = (typeof RING2_6_REASONING_EFFORT_LEVELS)[number];++export type Ring26ReasoningEffortSliderProps = CreatedLevelSliderProps<Ring26ReasoningEffort>;++const Ring26ReasoningEffortSlider = createLevelSliderComponent<Ring26ReasoningEffort>({+ configKey: 'ring2_6ReasoningEffort',+ defaultValue: 'high',+ levels: RING2_6_REASONING_EFFORT_LEVELS,+ style: { minWidth: 200 },+});++export default Ring26ReasoningEffortSlider;diff --git a/src/routes/(main)/settings/provider/features/ModelList/CreateNewModelModal/ExtendParamsSelect.tsx b/src/routes/(main)/settings/provider/features/ModelList/CreateNewModelModal/ExtendParamsSelect.tsxindex 7c9218c4597..1253f6f4c06 100644--- a/src/routes/(main)/settings/provider/features/ModelList/CreateNewModelModal/ExtendParamsSelect.tsx+++ b/src/routes/(main)/settings/provider/features/ModelList/CreateNewModelModal/ExtendParamsSelect.tsx@@ -24,6 +24,7 @@ import ReasoningEffortSlider from '@/features/ModelSwitchPanel/components/Controimport ReasoningTokenSlider from '@/features/ModelSwitchPanel/components/ControlsForm/ReasoningTokenSlider';import ReasoningTokenSlider32k from '@/features/ModelSwitchPanel/components/ControlsForm/ReasoningTokenSlider32k';import ReasoningTokenSlider80k from '@/features/ModelSwitchPanel/components/ControlsForm/ReasoningTokenSlider80k';+import Ring26ReasoningEffortSlider from '@/features/ModelSwitchPanel/components/ControlsForm/Ring26ReasoningEffortSlider';import Step3_5ReasoningEffortSlider from '@/features/ModelSwitchPanel/components/ControlsForm/Step3_5ReasoningEffortSlider';import TextVerbositySlider from '@/features/ModelSwitchPanel/components/ControlsForm/TextVerbositySlider';import ThinkingBudgetSlider from '@/features/ModelSwitchPanel/components/ControlsForm/ThinkingBudgetSlider';@@ -111,6 +112,10 @@ const EXTEND_PARAMS_OPTIONS: ExtendParamsOption[] = [hintKey: 'providerModels.item.modelConfig.extendParams.options.hy3ReasoningEffort.hint',key: 'hy3ReasoningEffort',},+ {+ hintKey: 'providerModels.item.modelConfig.extendParams.options.ring2_6ReasoningEffort.hint',+ key: 'ring2_6ReasoningEffort',+ },{hintKey: 'providerModels.item.modelConfig.extendParams.options.codexMaxReasoningEffort.hint',key: 'codexMaxReasoningEffort',@@ -181,6 +186,7 @@ const TITLE_KEY_ALIASES: Partial<Record<ExtendParamsType, ExtendParamsType>> = {grok4_20ReasoningEffort: 'reasoningEffort',grok4_3ReasoningEffort: 'reasoningEffort',hy3ReasoningEffort: 'reasoningEffort',+ ring2_6ReasoningEffort: 'reasoningEffort',imageAspectRatio2: 'imageAspectRatio',imageResolution2: 'imageResolution',opus47Effort: 'effort',@@ -241,6 +247,11 @@ const PREVIEW_META: Partial<Record<ExtendParamsType, PreviewMeta>> = {previewWidth: 300,tag: 'reasoning_effort',},+ ring2_6ReasoningEffort: {+ labelSuffix: ' (Ring 2.6)',+ previewWidth: 300,+ tag: 'reasoning_effort',+ },imageAspectRatio: { labelSuffix: '', previewWidth: 350, tag: 'aspect_ratio' },imageAspectRatio2: { labelSuffix: ' (Nano Banana 2)', previewWidth: 350, tag: 'aspect_ratio' },imageResolution: { labelSuffix: '', previewWidth: 250, tag: 'resolution' },@@ -401,6 +412,7 @@ const ExtendParamsSelect = memo<ExtendParamsSelectProps>(({ value, onChange }) =grok4_20ReasoningEffort: <Grok420ReasoningEffortSlider value="medium" />,grok4_3ReasoningEffort: <Grok43ReasoningEffortSlider value="low" />,hy3ReasoningEffort: <Hy3ReasoningEffortSlider value="high" />,+ ring2_6ReasoningEffort: <Ring26ReasoningEffortSlider value="high" />,imageAspectRatio: <ImageAspectRatioSelect value="1:1" />,imageAspectRatio2: <ImageAspectRatio2Select value="1:1" />,imageResolution: <ImageResolutionSlider value="1K" />,diff --git a/src/services/chat/mecha/modelParamsResolver.ts b/src/services/chat/mecha/modelParamsResolver.tsindex 92071788760..f2afde807f7 100644--- a/src/services/chat/mecha/modelParamsResolver.ts+++ b/src/services/chat/mecha/modelParamsResolver.ts@@ -233,6 +233,10 @@ export const resolveModelExtendParams = (ctx: ModelParamsContext): ModelExtendPaextendParams.reasoning_effort = chatConfig.hy3ReasoningEffort;}+ if (modelExtendParams.includes('ring2_6ReasoningEffort') && chatConfig.ring2_6ReasoningEffort) {+ extendParams.reasoning_effort = chatConfig.ring2_6ReasoningEffort;+ }+if (modelExtendParams.includes('codexMaxReasoningEffort') && chatConfig.codexMaxReasoningEffort) {extendParams.reasoning_effort = chatConfig.codexMaxReasoningEffort;}