2020class 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
9695if __name__ == '__main__' :
0 commit comments