File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed
packages/types/src/providers Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 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+ } )
Original file line number Diff line number Diff 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
3536export 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 ,
You can’t perform that action at this time.
0 commit comments