@@ -61,7 +61,7 @@ describe("MiniMaxHandler", () => {
6161 } )
6262
6363 it ( "should return specified model when valid model is provided" , ( ) => {
64- const testModelId : MinimaxModelId = "MiniMax-M1 "
64+ const testModelId : MinimaxModelId = "MiniMax-M2 "
6565 const handlerWithModel = new MiniMaxHandler ( {
6666 apiModelId : testModelId ,
6767 minimaxApiKey : "test-minimax-api-key" ,
@@ -71,8 +71,8 @@ describe("MiniMaxHandler", () => {
7171 expect ( model . info ) . toEqual ( minimaxModels [ testModelId ] )
7272 } )
7373
74- it ( "should return MiniMax-M1 model with correct configuration" , ( ) => {
75- const testModelId : MinimaxModelId = "MiniMax-M1 "
74+ it ( "should return MiniMax-M2 model with correct configuration" , ( ) => {
75+ const testModelId : MinimaxModelId = "MiniMax-M2 "
7676 const handlerWithModel = new MiniMaxHandler ( {
7777 apiModelId : testModelId ,
7878 minimaxApiKey : "test-minimax-api-key" ,
@@ -134,10 +134,10 @@ describe("MiniMaxHandler", () => {
134134 expect ( OpenAI ) . toHaveBeenCalledWith ( expect . objectContaining ( { apiKey : undefined } ) )
135135 } )
136136
137- it ( "should default to MiniMax-M1 model" , ( ) => {
137+ it ( "should default to MiniMax-M2 model" , ( ) => {
138138 const handlerDefault = new MiniMaxHandler ( { minimaxApiKey : "test-minimax-api-key" } )
139139 const model = handlerDefault . getModel ( )
140- expect ( model . id ) . toBe ( "MiniMax-M1 " )
140+ expect ( model . id ) . toBe ( "MiniMax-M2 " )
141141 } )
142142 } )
143143
@@ -209,7 +209,7 @@ describe("MiniMaxHandler", () => {
209209 } )
210210
211211 it ( "createMessage should pass correct parameters to MiniMax client" , async ( ) => {
212- const modelId : MinimaxModelId = "MiniMax-M1 "
212+ const modelId : MinimaxModelId = ""
213213 const modelInfo = minimaxModels [ modelId ]
214214 const handlerWithModel = new MiniMaxHandler ( {
215215 apiModelId : modelId ,
@@ -269,8 +269,8 @@ describe("MiniMaxHandler", () => {
269269 } )
270270
271271 describe ( "Model Configuration" , ( ) => {
272- it ( "should correctly configure MiniMax-M1 model properties" , ( ) => {
273- const model = minimaxModels [ "MiniMax-M1 " ]
272+ it ( "should correctly configure MiniMax-M2 model properties" , ( ) => {
273+ const model = minimaxModels [ "MiniMax-M2 " ]
274274 expect ( model . maxTokens ) . toBe ( 25_600 )
275275 expect ( model . contextWindow ) . toBe ( 1_000_192 )
276276 expect ( model . supportsImages ) . toBe ( false )
0 commit comments