Skip to content

Commit f6c75cc

Browse files
committed
feat: add Kimi K2-0905 model to Chutes provider
- Added moonshotai/Kimi-K2-Instruct-0905 to ChutesModelId type - Added model configuration with 256k context window - Added test coverage for the new model Fixes #7700
1 parent 90e7d09 commit f6c75cc

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { chutesModels } from "../chutes.js"
2+
3+
describe("chutesModels", () => {
4+
test("should include Kimi K2-0905 model", () => {
5+
expect(chutesModels["moonshotai/Kimi-K2-Instruct-0905"]).toBeDefined()
6+
expect(chutesModels["moonshotai/Kimi-K2-Instruct-0905"].maxTokens).toBe(32768)
7+
expect(chutesModels["moonshotai/Kimi-K2-Instruct-0905"].contextWindow).toBe(262144)
8+
expect(chutesModels["moonshotai/Kimi-K2-Instruct-0905"].supportsImages).toBe(false)
9+
expect(chutesModels["moonshotai/Kimi-K2-Instruct-0905"].supportsPromptCache).toBe(false)
10+
expect(chutesModels["moonshotai/Kimi-K2-Instruct-0905"].inputPrice).toBe(0.1999)
11+
expect(chutesModels["moonshotai/Kimi-K2-Instruct-0905"].outputPrice).toBe(0.8001)
12+
expect(chutesModels["moonshotai/Kimi-K2-Instruct-0905"].description).toBe(
13+
"Moonshot AI Kimi K2 Instruct 0905 model with 256k context window.",
14+
)
15+
})
16+
17+
test("should include Kimi K2-75k model", () => {
18+
expect(chutesModels["moonshotai/Kimi-K2-Instruct-75k"]).toBeDefined()
19+
expect(chutesModels["moonshotai/Kimi-K2-Instruct-75k"].contextWindow).toBe(75000)
20+
})
21+
})

packages/types/src/providers/chutes.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export type ChutesModelId =
3030
| "zai-org/GLM-4.5-Air"
3131
| "zai-org/GLM-4.5-FP8"
3232
| "moonshotai/Kimi-K2-Instruct-75k"
33+
| "moonshotai/Kimi-K2-Instruct-0905"
3334
| "Qwen/Qwen3-235B-A22B-Thinking-2507"
3435

3536
export const chutesDefaultModelId: ChutesModelId = "deepseek-ai/DeepSeek-R1-0528"
@@ -289,6 +290,15 @@ export const chutesModels = {
289290
outputPrice: 0.5926,
290291
description: "Moonshot AI Kimi K2 Instruct model with 75k context window.",
291292
},
293+
"moonshotai/Kimi-K2-Instruct-0905": {
294+
maxTokens: 32768,
295+
contextWindow: 262144,
296+
supportsImages: false,
297+
supportsPromptCache: false,
298+
inputPrice: 0.1999,
299+
outputPrice: 0.8001,
300+
description: "Moonshot AI Kimi K2 Instruct 0905 model with 256k context window.",
301+
},
292302
"Qwen/Qwen3-235B-A22B-Thinking-2507": {
293303
maxTokens: 32768,
294304
contextWindow: 262144,

0 commit comments

Comments
 (0)