Merge pull request #585 from kaitranntt/kai/fix/kimi-missing-models

fix(cliproxy): add Kimi model catalog, sync, and pricing to dashboard
This commit is contained in:
Kai (Tam Nhu) Tran authored and GitHub committed 2026-02-19 10:49:00 +07:00
commit 10c15dab3d
6 files changed
+108 -19

No files matched your search

+2 -1
View File
@@ -23,6 +23,7 @@ const CHANNEL_TO_PROVIDER: Record<string, CLIProxyProvider> = {
codex: 'codex',
qwen: 'qwen',
iflow: 'iflow',
kimi: 'kimi',
};
/** CCS provider → channel name mapping (reverse) */
@@ -31,7 +32,7 @@ export const PROVIDER_TO_CHANNEL: Record<string, string> = Object.fromEntries(
);
/** Providers to sync from CLIProxyAPI */
export const SYNCABLE_PROVIDERS: CLIProxyProvider[] = ['agy', 'gemini', 'codex', 'claude'];
export const SYNCABLE_PROVIDERS: CLIProxyProvider[] = ['agy', 'gemini', 'codex', 'claude', 'kimi'];
function getCacheFilePath(): string {
return path.join(getCcsDir(), CACHE_FILE_NAME);
+1 -1
View File
@@ -205,7 +205,7 @@ export const MODEL_CATALOG: Partial<Record<CLIProxyProvider, ProviderCatalog>> =
{
id: 'kimi-k2.5',
name: 'Kimi K2.5',
description: 'Latest Moonshot coding model',
description: 'Latest multimodal model (262K context)',
thinking: {
type: 'budget',
min: 1024,
+30 -17
View File
@@ -450,37 +450,50 @@ const PRICING_REGISTRY: Record<string, ModelPricing> = {
},
// ---------------------------------------------------------------------------
// Kimi Models (Moonshot AI) - Source: better-ccusage
// Kimi Models (Moonshot AI) - Source: Official Kimi Platform pricing
// inputPerMillion = cache miss price, cacheReadPerMillion = cache hit price
// ---------------------------------------------------------------------------
'kimi-for-coding': {
inputPerMillion: 0.15,
outputPerMillion: 0.6,
'kimi-k2.5': {
inputPerMillion: 0.6,
outputPerMillion: 3.0,
cacheCreationPerMillion: 0.0,
cacheReadPerMillion: 0.0,
cacheReadPerMillion: 0.1,
},
'kimi-for-coding': {
inputPerMillion: 0.6,
outputPerMillion: 2.5,
cacheCreationPerMillion: 0.0,
cacheReadPerMillion: 0.15,
},
'kimi-k2-0905-preview': {
inputPerMillion: 0.15,
outputPerMillion: 0.6,
inputPerMillion: 0.6,
outputPerMillion: 2.5,
cacheCreationPerMillion: 0.0,
cacheReadPerMillion: 0.0,
cacheReadPerMillion: 0.15,
},
'kimi-k2-turbo-preview': {
inputPerMillion: 0.15,
outputPerMillion: 1.15,
inputPerMillion: 1.15,
outputPerMillion: 8.0,
cacheCreationPerMillion: 0.0,
cacheReadPerMillion: 0.0,
cacheReadPerMillion: 0.15,
},
'kimi-k2-thinking': {
inputPerMillion: 0.15,
outputPerMillion: 0.6,
inputPerMillion: 0.6,
outputPerMillion: 2.5,
cacheCreationPerMillion: 0.0,
cacheReadPerMillion: 0.0,
cacheReadPerMillion: 0.15,
},
'kimi-k2-thinking-turbo': {
inputPerMillion: 0.15,
outputPerMillion: 1.15,
inputPerMillion: 1.15,
outputPerMillion: 8.0,
cacheCreationPerMillion: 0.0,
cacheReadPerMillion: 0.0,
cacheReadPerMillion: 0.15,
},
'kimi-k2': {
inputPerMillion: 0.6,
outputPerMillion: 2.5,
cacheCreationPerMillion: 0.0,
cacheReadPerMillion: 0.15,
},
'kimi-k2-instruct': {
inputPerMillion: 1.0,