Skip to content

Commit 3cafdd4

Browse files
committed
Keep Kimi metadata in CanopyWave
1 parent 76ebdf4 commit 3cafdd4

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

web/src/llm-api/canopywave.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ interface CanopyWavePricing {
3434
outputCostPerToken: number
3535
}
3636

37-
/** Single source of truth: which OpenRouter model IDs we route through
38-
* CanopyWave, the corresponding CanopyWave model ID, and per-model pricing.
39-
* Kept as one map so adding a model can't drift between routing and billing. */
37+
/** Single source of truth: CanopyWave model metadata and per-model pricing. */
4038
const CANOPYWAVE_MODELS: Record<
4139
string,
4240
{ canopywaveId: string; pricing: CanopyWavePricing }
@@ -49,10 +47,20 @@ const CANOPYWAVE_MODELS: Record<
4947
outputCostPerToken: 1.08 / 1_000_000,
5048
},
5149
},
50+
'moonshotai/kimi-k2.6': {
51+
canopywaveId: 'moonshotai/kimi-k2.6',
52+
pricing: {
53+
inputCostPerToken: 0.95 / 1_000_000,
54+
cachedInputCostPerToken: 0.16 / 1_000_000,
55+
outputCostPerToken: 4.0 / 1_000_000,
56+
},
57+
},
5258
}
5359

60+
const CANOPYWAVE_ROUTED_MODELS = new Set<string>(['minimax/minimax-m2.5'])
61+
5462
export function isCanopyWaveModel(model: string): boolean {
55-
return model in CANOPYWAVE_MODELS
63+
return CANOPYWAVE_ROUTED_MODELS.has(model)
5664
}
5765

5866
function getCanopyWaveModelId(openrouterModel: string): string {

0 commit comments

Comments
 (0)