File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/api/providers/__tests__ Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -502,9 +502,13 @@ describe("ChutesHandler", () => {
502502
503503 it ( "should have correct pricing and context for zai-org/GLM-4.6-turbo" , ( ) => {
504504 // This test ensures the GLM-4.6-turbo model has correct pricing > 0 and context window
505+ // Assert exact values and capabilities to catch regressions
505506 const model = chutesModels [ "zai-org/GLM-4.6-turbo" ]
506- expect ( model . inputPrice ) . toBeGreaterThan ( 0 )
507- expect ( model . outputPrice ) . toBeGreaterThan ( 0 )
508- expect ( model . contextWindow ) . toBeGreaterThanOrEqual ( 200000 )
507+ expect ( model . maxTokens ) . toBe ( 32768 )
508+ expect ( model . contextWindow ) . toBe ( 202752 )
509+ expect ( model . supportsImages ) . toBe ( false )
510+ expect ( model . supportsPromptCache ) . toBe ( false )
511+ expect ( model . inputPrice ) . toBe ( 1.15 )
512+ expect ( model . outputPrice ) . toBe ( 3.25 )
509513 } )
510514} )
You can’t perform that action at this time.
0 commit comments