Skip to content

Commit c61799c

Browse files
authored
Merge pull request #239 from octo-patch/feature/upgrade-minimax-m3
feat: upgrade MiniMax default model to M3
2 parents 68fc958 + 839d281 commit c61799c

4 files changed

Lines changed: 19 additions & 24 deletions

File tree

docs/5.2.2-Harbor-Boost-Configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ HARBOR_BOOST_OPENAI_KEY_HF=sk-hf456
8484
8585
MiniMax API key. When set, the MiniMax OpenAI-compatible
8686
endpoint (https://api.minimax.io/v1) is automatically
87-
registered as a boost backend with MiniMax-M2.7,
88-
MiniMax-M2.7-highspeed, and previous MiniMax models.
87+
registered as a boost backend with MiniMax-M3 (default),
88+
MiniMax-M2.7, and MiniMax-M2.7-highspeed.
8989

9090

9191
## HARBOR_BOOST_EXTRA_LLM_PARAMS

services/boost/src/config.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ def _convert_value(self, value: str) -> T:
232232
description="""
233233
MiniMax API key. When set, the MiniMax OpenAI-compatible
234234
endpoint (https://api.minimax.io/v1) is automatically
235-
registered as a boost backend with MiniMax-M2.7,
236-
MiniMax-M2.7-highspeed, and previous MiniMax models.
235+
registered as a boost backend with MiniMax-M3 (default),
236+
MiniMax-M2.7, and MiniMax-M2.7-highspeed.
237237
""".strip(),
238238
)
239239

@@ -243,20 +243,14 @@ def _convert_value(self, value: str) -> T:
243243
# expose a /models endpoint.
244244
MINIMAX_MODELS = (
245245
[
246+
{"id": "MiniMax-M3", "object": "model", "created": 0, "owned_by": "minimax"},
246247
{"id": "MiniMax-M2.7", "object": "model", "created": 0, "owned_by": "minimax"},
247248
{
248249
"id": "MiniMax-M2.7-highspeed",
249250
"object": "model",
250251
"created": 0,
251252
"owned_by": "minimax",
252253
},
253-
{"id": "MiniMax-M2.5", "object": "model", "created": 0, "owned_by": "minimax"},
254-
{
255-
"id": "MiniMax-M2.5-highspeed",
256-
"object": "model",
257-
"created": 0,
258-
"owned_by": "minimax",
259-
},
260254
]
261255
if HARBOR_MINIMAX_API_KEY.value
262256
else []

services/boost/tests/test_minimax_config.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,20 @@ def test_minimax_static_models_populated(self):
7171
config = self._reload_config()
7272

7373
model_ids = [m['id'] for m in config.MINIMAX_MODELS]
74+
self.assertIn('MiniMax-M3', model_ids)
7475
self.assertIn('MiniMax-M2.7', model_ids)
7576
self.assertIn('MiniMax-M2.7-highspeed', model_ids)
76-
self.assertIn('MiniMax-M2.5', model_ids)
77-
self.assertIn('MiniMax-M2.5-highspeed', model_ids)
77+
self.assertNotIn('MiniMax-M2.5', model_ids)
78+
self.assertNotIn('MiniMax-M2.5-highspeed', model_ids)
7879

7980
@patch.dict(os.environ, {'HARBOR_MINIMAX_API_KEY': 'sk-test-key'}, clear=False)
80-
def test_minimax_m27_is_first_model(self):
81+
def test_minimax_m3_is_first_model(self):
8182
config = self._reload_config()
8283

8384
model_ids = [m['id'] for m in config.MINIMAX_MODELS]
84-
self.assertEqual(model_ids[0], 'MiniMax-M2.7')
85-
self.assertEqual(model_ids[1], 'MiniMax-M2.7-highspeed')
85+
self.assertEqual(model_ids[0], 'MiniMax-M3')
86+
self.assertEqual(model_ids[1], 'MiniMax-M2.7')
87+
self.assertEqual(model_ids[2], 'MiniMax-M2.7-highspeed')
8688

8789
@patch.dict(os.environ, {'HARBOR_MINIMAX_API_KEY': ''}, clear=False)
8890
def test_minimax_static_models_empty_when_no_key(self):

services/boost/tests/test_minimax_integration.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
class TestMiniMaxIntegration(unittest.TestCase):
2121
"""Integration tests verifying MiniMax API connectivity."""
2222

23-
def test_chat_completion_m27(self):
23+
def test_chat_completion_m3(self):
2424
body = json.dumps({
25-
'model': 'MiniMax-M2.7',
25+
'model': 'MiniMax-M3',
2626
'messages': [{'role': 'user', 'content': 'Say hello in one word.'}],
2727
'max_tokens': 20,
2828
'temperature': 1.0,
@@ -39,9 +39,9 @@ def test_chat_completion_m27(self):
3939
content = resp['choices'][0]['message']['content']
4040
self.assertTrue(len(content) > 0)
4141

42-
def test_chat_completion_m25(self):
42+
def test_chat_completion_m27(self):
4343
body = json.dumps({
44-
'model': 'MiniMax-M2.5',
44+
'model': 'MiniMax-M2.7',
4545
'messages': [{'role': 'user', 'content': 'Say hello in one word.'}],
4646
'max_tokens': 20,
4747
'temperature': 1.0,
@@ -58,9 +58,9 @@ def test_chat_completion_m25(self):
5858
content = resp['choices'][0]['message']['content']
5959
self.assertTrue(len(content) > 0)
6060

61-
def test_chat_completion_m25_highspeed(self):
61+
def test_chat_completion_m27_highspeed(self):
6262
body = json.dumps({
63-
'model': 'MiniMax-M2.5-highspeed',
63+
'model': 'MiniMax-M2.7-highspeed',
6464
'messages': [{'role': 'user', 'content': 'Say hi in one word.'}],
6565
'max_tokens': 20,
6666
'temperature': 1.0,
@@ -87,10 +87,9 @@ def test_boost_auto_registers_minimax(self):
8787

8888
self.assertIn(MINIMAX_BASE_URL, config.BOOST_APIS)
8989
model_ids = [m['id'] for m in config.MINIMAX_MODELS]
90+
self.assertIn('MiniMax-M3', model_ids)
9091
self.assertIn('MiniMax-M2.7', model_ids)
9192
self.assertIn('MiniMax-M2.7-highspeed', model_ids)
92-
self.assertIn('MiniMax-M2.5', model_ids)
93-
self.assertIn('MiniMax-M2.5-highspeed', model_ids)
9493

9594

9695
if __name__ == '__main__':

0 commit comments

Comments
 (0)