File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
src/api/providers/__tests__ Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -492,4 +492,17 @@ describe("ChutesHandler", () => {
492492 const model = handlerWithModel . getModel ( )
493493 expect ( model . info . temperature ) . toBe ( 0.5 )
494494 } )
495+
496+ it ( "should include zai-org/GLM-4.6-turbo in chutesModels" , ( ) => {
497+ // This test ensures the GLM-4.6-turbo model exists to prevent regressions
498+ expect ( chutesModels ) . toHaveProperty ( "zai-org/GLM-4.6-turbo" )
499+ } )
500+
501+ it ( "should have correct pricing and context for zai-org/GLM-4.6-turbo" , ( ) => {
502+ // This test ensures the GLM-4.6-turbo model has correct pricing > 0 and context window
503+ const model = chutesModels [ "zai-org/GLM-4.6-turbo" ]
504+ expect ( model . inputPrice ) . toBeGreaterThan ( 0 )
505+ expect ( model . outputPrice ) . toBeGreaterThan ( 0 )
506+ expect ( model . contextWindow ) . toBeGreaterThanOrEqual ( 200000 )
507+ } )
495508} )
You can’t perform that action at this time.
0 commit comments