Skip to content

Commit 8d38e60

Browse files
authored
feat: Add OpenAI-compatible base provider and migrate Moonshot to AI SDK (#11063)
1 parent ed35b09 commit 8d38e60

7 files changed

Lines changed: 552 additions & 154 deletions

File tree

packages/types/src/providers/moonshot.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,19 @@ export const moonshotModels = {
5353
defaultTemperature: 1.0,
5454
description: `The kimi-k2-thinking model is a general-purpose agentic reasoning model developed by Moonshot AI. Thanks to its strength in deep reasoning and multi-turn tool use, it can solve even the hardest problems.`,
5555
},
56+
"kimi-k2.5": {
57+
maxTokens: 16_384,
58+
contextWindow: 262_144,
59+
supportsImages: false,
60+
supportsPromptCache: true,
61+
inputPrice: 0.6, // $0.60 per million tokens (cache miss)
62+
outputPrice: 3.0, // $3.00 per million tokens
63+
cacheReadsPrice: 0.1, // $0.10 per million tokens (cache hit)
64+
supportsTemperature: true,
65+
defaultTemperature: 1.0,
66+
description:
67+
"Kimi K2.5 is the latest generation of Moonshot AI's Kimi series, featuring improved reasoning capabilities and enhanced performance across diverse tasks.",
68+
},
5669
} as const satisfies Record<string, ModelInfo>
5770

5871
export const MOONSHOT_DEFAULT_TEMPERATURE = 0.6

pnpm-lock.yaml

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)