mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:10:45 +00:00
fix: add Kimi K2.6 provider catalog rows
This commit is contained in:
@@ -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,
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user