Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions packages/types/src/providers/chutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export type ChutesModelId =
| "zai-org/GLM-4.5-FP8"
| "zai-org/GLM-4.5-turbo"
| "zai-org/GLM-4.6-FP8"
| "zai-org/GLM-4.6-turbo"
| "moonshotai/Kimi-K2-Instruct-75k"
| "moonshotai/Kimi-K2-Instruct-0905"
| "Qwen/Qwen3-235B-A22B-Thinking-2507"
Expand Down Expand Up @@ -326,6 +327,15 @@ export const chutesModels = {
description:
"GLM-4.6 introduces major upgrades over GLM-4.5, including a longer 200K-token context window for complex tasks, stronger coding performance in benchmarks and real-world tools (such as Claude Code, Cline, Roo Code, and Kilo Code), improved reasoning with tool use during inference, more capable and efficient agent integration, and refined writing that better matches human style, readability, and natural role-play scenarios.",
},
"zai-org/GLM-4.6-turbo": {
maxTokens: 32768,
contextWindow: 202752,
supportsImages: false,
supportsPromptCache: false,
inputPrice: 1.1500,
outputPrice: 3.2500,
description: "GLM-4.6-turbo model with 200K+ token context window, optimized for fast inference.",
},
"Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8": {
maxTokens: 32768,
contextWindow: 262144,
Expand Down
13 changes: 13 additions & 0 deletions src/api/providers/__tests__/chutes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -492,4 +492,17 @@ describe("ChutesHandler", () => {
const model = handlerWithModel.getModel()
expect(model.info.temperature).toBe(0.5)
})

it("should include zai-org/GLM-4.6-turbo in chutesModels", () => {
// This test ensures the GLM-4.6-turbo model exists to prevent regressions
expect(chutesModels).toHaveProperty("zai-org/GLM-4.6-turbo")
})

it("should have correct pricing and context for zai-org/GLM-4.6-turbo", () => {
// This test ensures the GLM-4.6-turbo model has correct pricing > 0 and context window
const model = chutesModels["zai-org/GLM-4.6-turbo"]
expect(model.inputPrice).toBeGreaterThan(0)
expect(model.outputPrice).toBeGreaterThan(0)
expect(model.contextWindow).toBeGreaterThanOrEqual(200000)
})
})