Skip to content

Commit 002796b

Browse files
fix: test with exact values
Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com>
1 parent 9dea255 commit 002796b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

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

0 commit comments

Comments
 (0)