Skip to content

Commit ec5d8ac

Browse files
committed
fix: update Chutes model configurations
- Update Qwen3 Coder context window from 131k to 262k - Update Kimi K2 model ID to include -75k suffix (moonshotai/Kimi-K2-Instruct-75k) - Update Kimi K2 context window from 131k to 75k - Update Kimi K2 pricing: input $0.1481, output $0.5926 - Update tests to reflect new model configurations
1 parent fb08b14 commit ec5d8ac

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

packages/types/src/providers/chutes.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export type ChutesModelId =
2828
| "tngtech/DeepSeek-R1T-Chimera"
2929
| "zai-org/GLM-4.5-Air"
3030
| "zai-org/GLM-4.5-FP8"
31-
| "moonshotai/Kimi-K2-Instruct"
31+
| "moonshotai/Kimi-K2-Instruct-75k"
3232

3333
export const chutesDefaultModelId: ChutesModelId = "deepseek-ai/DeepSeek-R1-0528"
3434

@@ -262,20 +262,20 @@ export const chutesModels = {
262262
},
263263
"Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8": {
264264
maxTokens: 32768,
265-
contextWindow: 131072,
265+
contextWindow: 262144,
266266
supportsImages: false,
267267
supportsPromptCache: false,
268268
inputPrice: 0,
269269
outputPrice: 0,
270270
description: "Qwen3 Coder 480B A35B Instruct FP8 model, optimized for coding tasks.",
271271
},
272-
"moonshotai/Kimi-K2-Instruct": {
272+
"moonshotai/Kimi-K2-Instruct-75k": {
273273
maxTokens: 32768,
274-
contextWindow: 131072,
274+
contextWindow: 75000,
275275
supportsImages: false,
276276
supportsPromptCache: false,
277-
inputPrice: 0,
278-
outputPrice: 0,
279-
description: "Moonshot AI Kimi K2 Instruct model.",
277+
inputPrice: 0.1481,
278+
outputPrice: 0.5926,
279+
description: "Moonshot AI Kimi K2 Instruct model with 75k context window.",
280280
},
281281
} as const satisfies Record<string, ModelInfo>

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ describe("ChutesHandler", () => {
242242
expect(model.info).toEqual(
243243
expect.objectContaining({
244244
maxTokens: 32768,
245-
contextWindow: 131072,
245+
contextWindow: 262144,
246246
supportsImages: false,
247247
supportsPromptCache: false,
248248
inputPrice: 0,
@@ -253,8 +253,8 @@ describe("ChutesHandler", () => {
253253
)
254254
})
255255

256-
it("should return moonshotai/Kimi-K2-Instruct model with correct configuration", () => {
257-
const testModelId: ChutesModelId = "moonshotai/Kimi-K2-Instruct"
256+
it("should return moonshotai/Kimi-K2-Instruct-75k model with correct configuration", () => {
257+
const testModelId: ChutesModelId = "moonshotai/Kimi-K2-Instruct-75k"
258258
const handlerWithModel = new ChutesHandler({
259259
apiModelId: testModelId,
260260
chutesApiKey: "test-chutes-api-key",
@@ -264,12 +264,12 @@ describe("ChutesHandler", () => {
264264
expect(model.info).toEqual(
265265
expect.objectContaining({
266266
maxTokens: 32768,
267-
contextWindow: 131072,
267+
contextWindow: 75000,
268268
supportsImages: false,
269269
supportsPromptCache: false,
270-
inputPrice: 0,
271-
outputPrice: 0,
272-
description: "Moonshot AI Kimi K2 Instruct model.",
270+
inputPrice: 0.1481,
271+
outputPrice: 0.5926,
272+
description: "Moonshot AI Kimi K2 Instruct model with 75k context window.",
273273
temperature: 0.5, // Default temperature for non-DeepSeek models
274274
}),
275275
)

0 commit comments

Comments
 (0)