Skip to content

Commit eb45e7c

Browse files
committed
test: add GLM-4.6-turbo model coverage to prevent regressions
1 parent ab87040 commit eb45e7c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/api/providers/__tests__/chutes.spec.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)