Skip to content

Commit 35cd56f

Browse files
octo-patchPR BotJinHai-CNyingfeng
authored
feat: add MiniMax-M2.5 and M2.5-highspeed models (#13557)
## Summary Add MiniMax's latest M2.5 model family to the model registry and update the default API base URL to the international endpoint for broader accessibility. ## Changes - **Add MiniMax-M2.5 models** to `conf/llm_factories.json`: - `MiniMax-M2.5` — Peak Performance. Ultimate Value. Master the Complex. - `MiniMax-M2.5-highspeed` — Same performance, faster and more agile. - Both support 204,800 token context window and tool calling (`is_tools: true`). - **Update default MiniMax API base URL** in `rag/llm/__init__.py`: - From `https://api.minimaxi.com/v1` (domestic) to `https://api.minimax.io/v1` (international). - Chinese users can still override via the Base URL field in the UI settings (as documented in existing i18n strings). ## Supported Models | Model | Context Window | Tool Calling | Description | |-------|---------------|-------------|-------------| | `MiniMax-M2.5` | 204,800 tokens | Yes | Peak Performance. Ultimate Value. | | `MiniMax-M2.5-highspeed` | 204,800 tokens | Yes | Same performance, faster and more agile. | ## API Documentation - OpenAI Compatible API: https://platform.minimax.io/docs/api-reference/text-openai-api ## Testing - [x] JSON validation passes - [x] Python syntax validation passes - [x] Ruff lint passes - [x] MiniMax-M2.5 API call verified (returns valid response) - [x] MiniMax-M2.5-highspeed API call verified (returns valid response) Co-authored-by: PR Bot <pr-bot@minimaxi.com> Co-authored-by: Jin Hai <haijin.chn@gmail.com> Co-authored-by: Yingfeng <yingfeng.zhang@gmail.com>
1 parent 3fbf8bc commit 35cd56f

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

conf/llm_factories.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,6 +1300,20 @@
13001300
"rank": "810",
13011301
"url": "https://api.minimaxi.com/v1",
13021302
"llm": [
1303+
{
1304+
"llm_name": "MiniMax-M2.5",
1305+
"tags": "LLM,CHAT,200k",
1306+
"max_tokens": 204800,
1307+
"model_type": "chat",
1308+
"is_tools": true
1309+
},
1310+
{
1311+
"llm_name": "MiniMax-M2.5-highspeed",
1312+
"tags": "LLM,CHAT,200k",
1313+
"max_tokens": 204800,
1314+
"model_type": "chat",
1315+
"is_tools": true
1316+
},
13031317
{
13041318
"llm_name": "MiniMax-M2.1",
13051319
"tags": "LLM,CHAT,200k",

rag/llm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class SupportedLiteLLMProvider(StrEnum):
8181
SupportedLiteLLMProvider.Anthropic: "https://api.anthropic.com/",
8282
SupportedLiteLLMProvider.JiekouAI: "https://api.jiekou.ai/openai",
8383
SupportedLiteLLMProvider.ZHIPU_AI: "https://open.bigmodel.cn/api/paas/v4",
84-
SupportedLiteLLMProvider.MiniMax: "https://api.minimaxi.com/v1",
84+
SupportedLiteLLMProvider.MiniMax: "https://api.minimax.io/v1",
8585
SupportedLiteLLMProvider.DeerAPI: "https://api.deerapi.com/v1",
8686
SupportedLiteLLMProvider.OpenAI: "https://api.openai.com/v1",
8787
SupportedLiteLLMProvider.n1n: "https://api.n1n.ai/v1",

0 commit comments

Comments
 (0)