@@ -87,6 +87,23 @@ describe("MiniMaxHandler", () => {
8787 expect ( model . info ) . toEqual ( minimaxModels [ testModelId ] )
8888 } )
8989
90+ it ( "should return MiniMax-M2.7 model with correct configuration" , ( ) => {
91+ const testModelId : MinimaxModelId = "MiniMax-M2.7"
92+ const handlerWithModel = new MiniMaxHandler ( {
93+ apiModelId : testModelId ,
94+ minimaxApiKey : "test-minimax-api-key" ,
95+ } )
96+ const model = handlerWithModel . getModel ( )
97+ expect ( model . id ) . toBe ( testModelId )
98+ expect ( model . info ) . toEqual ( minimaxModels [ testModelId ] )
99+ expect ( model . info . contextWindow ) . toBe ( 204_800 )
100+ expect ( model . info . maxTokens ) . toBe ( 131_072 )
101+ expect ( model . info . supportsPromptCache ) . toBe ( true )
102+ expect ( model . info . supportsImages ) . toBe ( false )
103+ expect ( model . info . cacheWritesPrice ) . toBe ( 0.375 )
104+ expect ( model . info . cacheReadsPrice ) . toBe ( 0.03 )
105+ } )
106+
90107 it ( "should return MiniMax-M2.5 model with correct configuration" , ( ) => {
91108 const testModelId : MinimaxModelId = "MiniMax-M2.5"
92109 const handlerWithModel = new MiniMaxHandler ( {
@@ -396,6 +413,18 @@ describe("MiniMaxHandler", () => {
396413 } )
397414
398415 describe ( "Model Configuration" , ( ) => {
416+ it ( "should correctly configure MiniMax-M2.7 model properties" , ( ) => {
417+ const model = minimaxModels [ "MiniMax-M2.7" ]
418+ expect ( model . maxTokens ) . toBe ( 131_072 )
419+ expect ( model . contextWindow ) . toBe ( 204_800 )
420+ expect ( model . supportsImages ) . toBe ( false )
421+ expect ( model . supportsPromptCache ) . toBe ( true )
422+ expect ( model . inputPrice ) . toBe ( 0.3 )
423+ expect ( model . outputPrice ) . toBe ( 1.2 )
424+ expect ( model . cacheWritesPrice ) . toBe ( 0.375 )
425+ expect ( model . cacheReadsPrice ) . toBe ( 0.03 )
426+ } )
427+
399428 it ( "should correctly configure MiniMax-M2 model properties" , ( ) => {
400429 const model = minimaxModels [ "MiniMax-M2" ]
401430 expect ( model . maxTokens ) . toBe ( 16_384 )
0 commit comments