Skip to content

Commit ac398b1

Browse files
author
octo-patch
committed
feat: upgrade MiniMax default model to M3
- Switch MINIMAX_LLM_MODEL default from MiniMax-M2.7 to MiniMax-M3 - Update sample query content to describe M3 as the new default and keep M2.7 / M2.7-highspeed as alternatives - Update unit tests to assert the new default model name
1 parent 59f50e1 commit ac398b1

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

examples/minimax_integration_example.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
# MiniMax configuration
5353
MINIMAX_BASE_URL = os.getenv("MINIMAX_BASE_URL", "https://api.minimax.io/v1")
5454
MINIMAX_API_KEY = os.getenv("MINIMAX_API_KEY", "")
55-
MINIMAX_LLM_MODEL = os.getenv("MINIMAX_LLM_MODEL", "MiniMax-M2.7")
55+
MINIMAX_LLM_MODEL = os.getenv("MINIMAX_LLM_MODEL", "MiniMax-M3")
5656

5757
# Embedding configuration (MiniMax does not provide an embedding model;
5858
# configure a separate embedding service below)
@@ -257,14 +257,15 @@ async def simple_query_example(self):
257257
"This integration connects MiniMax's powerful language models "
258258
"with RAG-Anything's multimodal document processing pipeline.\n\n"
259259
"Key features:\n"
260-
"- MiniMax-M2.7: Peak Performance. Ultimate Value. Master the Complex.\n"
261-
"- MiniMax-M2.7-highspeed: Same performance, faster and more agile.\n"
260+
"- MiniMax-M3: The latest flagship model and current default.\n"
261+
"- MiniMax-M2.7: Previous generation, available as alternative.\n"
262+
"- MiniMax-M2.7-highspeed: Same as M2.7, faster and more agile.\n"
262263
"- OpenAI-compatible API — no SDK changes required.\n"
263264
"- Supports text, table, and equation modalities.\n\n"
264265
"Configuration:\n"
265266
" MINIMAX_API_KEY=your-api-key\n"
266267
" MINIMAX_BASE_URL=https://api.minimax.io/v1 (default)\n"
267-
" MINIMAX_LLM_MODEL=MiniMax-M2.7 (default)\n"
268+
" MINIMAX_LLM_MODEL=MiniMax-M3 (default)\n"
268269
),
269270
"page_idx": 0,
270271
}

tests/test_minimax_integration.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def _load_example(extra_env=None):
7979
env = {
8080
"MINIMAX_API_KEY": "test-key",
8181
"MINIMAX_BASE_URL": "https://api.minimax.io/v1",
82-
"MINIMAX_LLM_MODEL": "MiniMax-M2.7",
82+
"MINIMAX_LLM_MODEL": "MiniMax-M3",
8383
"EMBEDDING_BINDING_HOST": "https://api.openai.com/v1",
8484
"EMBEDDING_BINDING_API_KEY": "test-embed-key",
8585
"EMBEDDING_MODEL": "text-embedding-3-small",
@@ -124,7 +124,7 @@ def test_default_base_url(self):
124124
k: v
125125
for k, v in {
126126
"MINIMAX_API_KEY": "test-key",
127-
"MINIMAX_LLM_MODEL": "MiniMax-M2.7",
127+
"MINIMAX_LLM_MODEL": "MiniMax-M3",
128128
"EMBEDDING_BINDING_HOST": "https://api.openai.com/v1",
129129
"EMBEDDING_BINDING_API_KEY": "test-embed-key",
130130
"EMBEDDING_MODEL": "text-embedding-3-small",
@@ -149,7 +149,7 @@ def test_default_model(self):
149149
}
150150
with patch.dict(os.environ, env, clear=True):
151151
mod, _ = _load_example()
152-
assert mod.MINIMAX_LLM_MODEL == "MiniMax-M2.7"
152+
assert mod.MINIMAX_LLM_MODEL == "MiniMax-M3"
153153

154154
def test_custom_model_env(self):
155155
mod, _ = _load_example({"MINIMAX_LLM_MODEL": "MiniMax-M2.7-highspeed"})
@@ -311,7 +311,7 @@ async def mock_complete(model, prompt, **kwargs):
311311

312312
mod.openai_complete_if_cache = mock_complete
313313
await mod.minimax_llm_model_func("test")
314-
assert captured["model"] == "MiniMax-M2.7"
314+
assert captured["model"] == "MiniMax-M3"
315315

316316
@pytest.mark.asyncio
317317
async def test_system_prompt_passed_through(self):
@@ -375,7 +375,7 @@ class TestMiniMaxRAGIntegration:
375375
def test_default_model_name(self):
376376
mod, _ = _load_example()
377377
integration = mod.MiniMaxRAGIntegration()
378-
assert integration.model_name == "MiniMax-M2.7"
378+
assert integration.model_name == "MiniMax-M3"
379379

380380
def test_default_base_url(self):
381381
mod, _ = _load_example()

0 commit comments

Comments
 (0)