fix: add Kimi K2.6 provider catalog rows

This commit is contained in:
Shakker
2026-04-22 01:54:18 +01:00
committed by Shakker
parent cc78dd2044
commit 8ba52acc41
2 changed files with 28 additions and 0 deletions

View File

@@ -11,6 +11,12 @@ const OPENROUTER_DEFAULT_COST = {
cacheRead: 0,
cacheWrite: 0,
};
const OPENROUTER_KIMI_K2_6_COST = {
input: 0.8,
output: 3.5,
cacheRead: 0.2,
cacheWrite: 0,
};
function normalizeBaseUrl(baseUrl: string | undefined): string {
return (baseUrl ?? "").trim().replace(/\/+$/, "");
@@ -59,6 +65,15 @@ export function buildOpenrouterProvider(): ModelProviderConfig {
contextWindow: 262144,
maxTokens: 65536,
},
{
id: "moonshotai/kimi-k2.6",
name: "MoonshotAI: Kimi K2.6",
reasoning: true,
input: ["text", "image"],
cost: OPENROUTER_KIMI_K2_6_COST,
contextWindow: 262144,
maxTokens: 262144,
},
],
};
}

View File

@@ -81,6 +81,19 @@ const STATIC_VERCEL_AI_GATEWAY_MODEL_CATALOG: readonly StaticVercelGatewayModel[
cacheRead: 0,
},
},
{
id: "moonshotai/kimi-k2.6",
name: "Kimi K2.6",
reasoning: true,
input: ["text", "image"],
contextWindow: 262_000,
maxTokens: 262_000,
cost: {
input: 0.95,
output: 4,
cacheRead: 0.16,
},
},
] as const;
function toPerMillionCost(value: number | string | undefined): number {