@@ -275,6 +275,52 @@ describe("ChutesHandler", () => {
275275 )
276276 } )
277277
278+ it ( "should return zai-org/GLM-4.6-FP8 model with correct configuration" , ( ) => {
279+ const testModelId : ChutesModelId = "zai-org/GLM-4.6-FP8"
280+ const handlerWithModel = new ChutesHandler ( {
281+ apiModelId : testModelId ,
282+ chutesApiKey : "test-chutes-api-key" ,
283+ } )
284+ const model = handlerWithModel . getModel ( )
285+ expect ( model . id ) . toBe ( testModelId )
286+ expect ( model . info ) . toEqual (
287+ expect . objectContaining ( {
288+ maxTokens : 32768 ,
289+ contextWindow : 200000 ,
290+ supportsImages : false ,
291+ supportsPromptCache : false ,
292+ inputPrice : 0 ,
293+ outputPrice : 0 ,
294+ description :
295+ "GLM-4.6-FP8 model with 200K token context window, state-of-the-art performance with fast inference." ,
296+ temperature : 0.5 , // Default temperature for non-DeepSeek models
297+ } ) ,
298+ )
299+ } )
300+
301+ it ( "should return meituan-longcat/LongCat-Flash-Thinking-FP8 model with correct configuration" , ( ) => {
302+ const testModelId : ChutesModelId = "meituan-longcat/LongCat-Flash-Thinking-FP8"
303+ const handlerWithModel = new ChutesHandler ( {
304+ apiModelId : testModelId ,
305+ chutesApiKey : "test-chutes-api-key" ,
306+ } )
307+ const model = handlerWithModel . getModel ( )
308+ expect ( model . id ) . toBe ( testModelId )
309+ expect ( model . info ) . toEqual (
310+ expect . objectContaining ( {
311+ maxTokens : 32768 ,
312+ contextWindow : 128000 ,
313+ supportsImages : false ,
314+ supportsPromptCache : false ,
315+ inputPrice : 0 ,
316+ outputPrice : 0 ,
317+ description :
318+ "LongCat Flash Thinking FP8 model with 128K context window, optimized for complex reasoning and coding tasks." ,
319+ temperature : 0.5 , // Default temperature for non-DeepSeek models
320+ } ) ,
321+ )
322+ } )
323+
278324 it ( "should return Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8 model with correct configuration" , ( ) => {
279325 const testModelId : ChutesModelId = "Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8"
280326 const handlerWithModel = new ChutesHandler ( {
0 commit comments