From 722b5fefcd0f1ee90538c03fbb0312f01605997d Mon Sep 17 00:00:00 2001 From: octo-patch Date: Tue, 2 Jun 2026 01:48:11 +0800 Subject: [PATCH] feat: upgrade MiniMax default model to M3 - Add MiniMax-M3 to the model selection list (set as the new default) - Add MiniMax-M2.7 and MiniMax-M2.7-highspeed as alternatives - Remove deprecated MiniMax-M2.5 / M2.5-highspeed entries - Update example config and Chinese setup docs to reference M3 (512K context) --- docs/chinese-llm-setup.md | 19 ++++++++++--------- .../app/config/global_llm_config.example.yaml | 10 +++++----- surfsense_web/contracts/enums/llm-models.ts | 14 ++++++++++---- .../contracts/enums/llm-providers.ts | 4 ++-- 4 files changed, 27 insertions(+), 20 deletions(-) diff --git a/docs/chinese-llm-setup.md b/docs/chinese-llm-setup.md index 6638dbba1..ac03a7902 100644 --- a/docs/chinese-llm-setup.md +++ b/docs/chinese-llm-setup.md @@ -212,9 +212,9 @@ API Base URL: https://open.bigmodel.cn/api/paas/v4 | 字段 | 值 | 说明 | |------|-----|------| -| **Configuration Name** | `MiniMax M2.5` | 配置名称(自定义) | +| **Configuration Name** | `MiniMax M3` | 配置名称(自定义) | | **Provider** | `MINIMAX` | 选择 MiniMax | -| **Model Name** | `MiniMax-M2.5` | 推荐模型
其他选项: `MiniMax-M2.5-highspeed` | +| **Model Name** | `MiniMax-M3` | 推荐模型
其他选项: `MiniMax-M2.7`、`MiniMax-M2.7-highspeed` | | **API Key** | `eyJ...` | 你的 MiniMax API Key | | **API Base URL** | `https://api.minimax.io/v1` | MiniMax API 地址 | | **Parameters** | `{"temperature": 1.0}` | 注意:temperature 必须在 (0.0, 1.0] 范围内,不能为 0 | @@ -222,22 +222,23 @@ API Base URL: https://open.bigmodel.cn/api/paas/v4 ### 示例配置 ``` -Configuration Name: MiniMax M2.5 +Configuration Name: MiniMax M3 Provider: MINIMAX -Model Name: MiniMax-M2.5 +Model Name: MiniMax-M3 API Key: eyJxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx API Base URL: https://api.minimax.io/v1 ``` ### 可用模型 -- **MiniMax-M2.5**: 高性能通用模型,204K 上下文窗口(推荐) -- **MiniMax-M2.5-highspeed**: 高速推理版本,204K 上下文窗口 +- **MiniMax-M3**: 旗舰模型,512K 上下文窗口(推荐) +- **MiniMax-M2.7**: 上一代通用模型,204K 上下文窗口 +- **MiniMax-M2.7-highspeed**: 上一代高速推理版本,204K 上下文窗口 ### 注意事项 - **temperature 参数**: MiniMax 要求 temperature 必须在 (0.0, 1.0] 范围内,不能设置为 0。建议使用 1.0。 -- 两个模型都支持 204K 超长上下文窗口,适合处理长文本任务。 +- M3 支持 512K 超长上下文,M2.7 系列保留 204K,适合按需求选择。 ### 定价 - 请访问 [MiniMax 定价页面](https://platform.minimaxi.com/document/Price) 查看最新价格 @@ -315,8 +316,8 @@ docker compose logs backend | grep -i "error" |---------|---------|------| | **文档摘要** | Qwen-Plus, GLM-4 | 平衡性能和成本 | | **代码分析** | DeepSeek-Coder | 代码专用 | -| **长文本处理** | Kimi 128K, MiniMax-M2.5 (204K) | 超长上下文 | -| **快速响应** | Qwen-Turbo, GLM-4-Flash, MiniMax-M2.5-highspeed | 速度优先 | +| **长文本处理** | Kimi 128K, MiniMax-M3 (512K) | 超长上下文 | +| **快速响应** | Qwen-Turbo, GLM-4-Flash, MiniMax-M2.7-highspeed | 速度优先 | ### 2. 成本优化 diff --git a/surfsense_backend/app/config/global_llm_config.example.yaml b/surfsense_backend/app/config/global_llm_config.example.yaml index 83d556754..1c09a91ac 100644 --- a/surfsense_backend/app/config/global_llm_config.example.yaml +++ b/surfsense_backend/app/config/global_llm_config.example.yaml @@ -236,17 +236,17 @@ global_llm_configs: use_default_system_instructions: true citations_enabled: true - # Example: MiniMax M2.5 - High-performance with 204K context window + # Example: MiniMax M3 - High-performance with 512K context window - id: -8 - name: "Global MiniMax M2.5" - description: "MiniMax M2.5 with 204K context window and competitive pricing" + name: "Global MiniMax M3" + description: "MiniMax M3 with 512K context window and competitive pricing" billing_tier: "free" anonymous_enabled: true seo_enabled: true - seo_slug: "minimax-m2.5" + seo_slug: "minimax-m3" quota_reserve_tokens: 4000 provider: "MINIMAX" - model_name: "MiniMax-M2.5" + model_name: "MiniMax-M3" api_key: "your-minimax-api-key-here" api_base: "https://api.minimax.io/v1" rpm: 60 diff --git a/surfsense_web/contracts/enums/llm-models.ts b/surfsense_web/contracts/enums/llm-models.ts index 74cc056f3..9647c9d31 100644 --- a/surfsense_web/contracts/enums/llm-models.ts +++ b/surfsense_web/contracts/enums/llm-models.ts @@ -1528,14 +1528,20 @@ export const LLM_MODELS: LLMModel[] = [ // MiniMax { - value: "MiniMax-M2.5", - label: "MiniMax M2.5", + value: "MiniMax-M3", + label: "MiniMax M3", + provider: "MINIMAX", + contextWindow: "512K", + }, + { + value: "MiniMax-M2.7", + label: "MiniMax M2.7", provider: "MINIMAX", contextWindow: "204K", }, { - value: "MiniMax-M2.5-highspeed", - label: "MiniMax M2.5 Highspeed", + value: "MiniMax-M2.7-highspeed", + label: "MiniMax M2.7 Highspeed", provider: "MINIMAX", contextWindow: "204K", }, diff --git a/surfsense_web/contracts/enums/llm-providers.ts b/surfsense_web/contracts/enums/llm-providers.ts index ce2b6afe9..c04a44923 100644 --- a/surfsense_web/contracts/enums/llm-providers.ts +++ b/surfsense_web/contracts/enums/llm-providers.ts @@ -184,8 +184,8 @@ export const LLM_PROVIDERS: LLMProvider[] = [ { value: "MINIMAX", label: "MiniMax", - example: "MiniMax-M2.5, MiniMax-M2.5-highspeed", - description: "High-performance models with 204K context", + example: "MiniMax-M3, MiniMax-M2.7", + description: "High-performance models with up to 512K context", apiBase: "https://api.minimax.io/v1", }, {