File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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. */
4038const 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+
5462export function isCanopyWaveModel ( model : string ) : boolean {
55- return model in CANOPYWAVE_MODELS
63+ return CANOPYWAVE_ROUTED_MODELS . has ( model )
5664}
5765
5866function getCanopyWaveModelId ( openrouterModel : string ) : string {
You can’t perform that action at this time.
0 commit comments