feat: upgrade MiniMax default model to M3

- Add MiniMax-M3 as the new default model
- Retain MiniMax-M2.7 as available alternative
- Remove deprecated MiniMax-M2.5 and MiniMax-M2.5-highspeed
- Update unit and integration tests for the new model list
This commit is contained in:
octo-patch
2026-06-04 17:11:00 +08:00
committed by ulleo
parent f54a7cc7d5
commit b86b70d396
3 changed files with 9 additions and 11 deletions
+1 -2
View File
@@ -291,9 +291,8 @@ export const supplierList: Array<{
api_domain: 'https://api.minimax.io/v1',
common_args: [{ key: 'temperature', val: 0.7, type: 'number', range: '[0, 1]' }],
model_options: [
{ name: 'MiniMax-M3' },
{ name: 'MiniMax-M2.7' },
{ name: 'MiniMax-M2.5' },
{ name: 'MiniMax-M2.5-highspeed' },
],
},
},
+3 -3
View File
@@ -35,7 +35,7 @@ class TestMiniMaxAPIConnectivity(unittest.TestCase):
"Content-Type": "application/json",
},
json={
"model": "MiniMax-M2.5-highspeed",
"model": "MiniMax-M3",
"messages": [{"role": "user", "content": "Hi"}],
"max_tokens": 1,
},
@@ -53,7 +53,7 @@ class TestMiniMaxAPIConnectivity(unittest.TestCase):
"Content-Type": "application/json",
},
json={
"model": "MiniMax-M2.5-highspeed",
"model": "MiniMax-M3",
"messages": [{"role": "user", "content": "Say hello in one word."}],
"temperature": 0.7,
"max_tokens": 10,
@@ -77,7 +77,7 @@ class TestMiniMaxAPIConnectivity(unittest.TestCase):
"Content-Type": "application/json",
},
json={
"model": "MiniMax-M2.5-highspeed",
"model": "MiniMax-M3",
"messages": [{"role": "user", "content": "Reply with OK."}],
"temperature": 0,
"max_tokens": 5,
+5 -6
View File
@@ -65,10 +65,9 @@ class TestMiniMaxSupplierConfig(unittest.TestCase):
self.assertIn("range: '[0, 1]'", minimax_section)
def test_minimax_model_options(self):
"""MiniMax should have M2.7, M2.5, and M2.5-highspeed models."""
"""MiniMax should have M3 and M2.7 models."""
self.assertIn("name: 'MiniMax-M3'", self.supplier_content)
self.assertIn("name: 'MiniMax-M2.7'", self.supplier_content)
self.assertIn("name: 'MiniMax-M2.5'", self.supplier_content)
self.assertIn("name: 'MiniMax-M2.5-highspeed'", self.supplier_content)
def test_minimax_has_model_config_type_0(self):
"""MiniMax should have model_config with type 0 (LLM)."""
@@ -87,9 +86,9 @@ class TestMiniMaxSupplierConfig(unittest.TestCase):
minimax_section = self.supplier_content[
self.supplier_content.index("id: 13") :
]
# Get just the MiniMax entry (roughly 20 lines)
lines = minimax_section.split("\n")[:20]
minimax_text = "\n".join(lines)
# Limit to just MiniMax section (up to next id:)
next_id = minimax_section.index("id: 11", 10) if "id: 11" in minimax_section[10:] else len(minimax_section)
minimax_text = minimax_section[:next_id]
self.assertNotIn("type: 'vllm'", minimax_text)
self.assertNotIn("type: 'azure'", minimax_text)