@llmgateway/models 1.384.1 → 1.385.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/models/deepseek.d.ts +105 -6
- package/dist/models/deepseek.js +135 -6
- package/dist/models/deepseek.js.map +1 -1
- package/dist/models/moonshot.d.ts +28 -0
- package/dist/models/moonshot.js +45 -0
- package/dist/models/moonshot.js.map +1 -1
- package/dist/models/stepfun.d.ts +23 -0
- package/dist/models/stepfun.js +26 -0
- package/dist/models/stepfun.js.map +1 -1
- package/dist/models/xiaomi.d.ts +36 -0
- package/dist/models/xiaomi.js +38 -0
- package/dist/models/xiaomi.js.map +1 -1
- package/dist/models/zai.d.ts +64 -0
- package/dist/models/zai.js +69 -0
- package/dist/models/zai.js.map +1 -1
- package/dist/models.d.ts +256 -6
- package/dist/tencent-models.spec.d.ts +1 -0
- package/dist/tencent-models.spec.js +119 -0
- package/dist/tencent-models.spec.js.map +1 -0
- package/package.json +1 -1
package/dist/models.d.ts
CHANGED
|
@@ -9572,6 +9572,24 @@ export declare const models: [{
|
|
|
9572
9572
|
readonly tools: true;
|
|
9573
9573
|
readonly supportedToolChoices: ["auto"];
|
|
9574
9574
|
readonly jsonOutput: true;
|
|
9575
|
+
}, {
|
|
9576
|
+
readonly providerId: "tencent";
|
|
9577
|
+
readonly externalId: "mimo-v2.6-pro";
|
|
9578
|
+
readonly maxTemperature: 1.5;
|
|
9579
|
+
readonly inputPrice: "0.435e-6";
|
|
9580
|
+
readonly outputPrice: "0.87e-6";
|
|
9581
|
+
readonly cachedInputPrice: "0.0036e-6";
|
|
9582
|
+
readonly requestPrice: "0";
|
|
9583
|
+
readonly contextSize: 1000000;
|
|
9584
|
+
readonly maxOutput: 131072;
|
|
9585
|
+
readonly streaming: true;
|
|
9586
|
+
readonly reasoning: true;
|
|
9587
|
+
readonly reasoningEfforts: ["none", "low", "medium", "high", "max"];
|
|
9588
|
+
readonly vision: true;
|
|
9589
|
+
readonly tools: true;
|
|
9590
|
+
readonly supportedToolChoices: ["auto"];
|
|
9591
|
+
readonly jsonOutput: true;
|
|
9592
|
+
readonly jsonOutputSchema: true;
|
|
9575
9593
|
}, {
|
|
9576
9594
|
readonly providerId: "deepinfra";
|
|
9577
9595
|
readonly externalId: "XiaomiMiMo/MiMo-V2.6-Pro";
|
|
@@ -9615,6 +9633,24 @@ export declare const models: [{
|
|
|
9615
9633
|
readonly tools: true;
|
|
9616
9634
|
readonly supportedToolChoices: ["auto"];
|
|
9617
9635
|
readonly jsonOutput: true;
|
|
9636
|
+
}, {
|
|
9637
|
+
readonly providerId: "tencent";
|
|
9638
|
+
readonly externalId: "mimo-v2.6-flash";
|
|
9639
|
+
readonly maxTemperature: 1.5;
|
|
9640
|
+
readonly inputPrice: "0.14e-6";
|
|
9641
|
+
readonly outputPrice: "0.28e-6";
|
|
9642
|
+
readonly cachedInputPrice: "0.0028e-6";
|
|
9643
|
+
readonly requestPrice: "0";
|
|
9644
|
+
readonly contextSize: 1000000;
|
|
9645
|
+
readonly maxOutput: 131072;
|
|
9646
|
+
readonly streaming: true;
|
|
9647
|
+
readonly reasoning: true;
|
|
9648
|
+
readonly reasoningEfforts: ["none", "low", "medium", "high", "max"];
|
|
9649
|
+
readonly vision: true;
|
|
9650
|
+
readonly tools: true;
|
|
9651
|
+
readonly supportedToolChoices: ["auto"];
|
|
9652
|
+
readonly jsonOutput: true;
|
|
9653
|
+
readonly jsonOutputSchema: true;
|
|
9618
9654
|
}, {
|
|
9619
9655
|
readonly providerId: "deepinfra";
|
|
9620
9656
|
readonly externalId: "XiaomiMiMo/MiMo-V2.6-Flash";
|
|
@@ -10901,9 +10937,23 @@ export declare const models: [{
|
|
|
10901
10937
|
}, {
|
|
10902
10938
|
readonly providerId: "tencent";
|
|
10903
10939
|
readonly externalId: "deepseek-v4-pro-202606";
|
|
10904
|
-
readonly inputPrice: "0.
|
|
10905
|
-
readonly cachedInputPrice: "0.
|
|
10906
|
-
readonly outputPrice: "
|
|
10940
|
+
readonly inputPrice: "0.66e-6";
|
|
10941
|
+
readonly cachedInputPrice: "0.022e-6";
|
|
10942
|
+
readonly outputPrice: "1.98e-6";
|
|
10943
|
+
readonly peakPricing: {
|
|
10944
|
+
readonly peak: {
|
|
10945
|
+
readonly inputPrice: "1.32e-6";
|
|
10946
|
+
readonly outputPrice: "3.96e-6";
|
|
10947
|
+
readonly cachedInputPrice: "0.044e-6";
|
|
10948
|
+
};
|
|
10949
|
+
readonly offPeak: {
|
|
10950
|
+
readonly inputPrice: "0.66e-6";
|
|
10951
|
+
readonly outputPrice: "1.98e-6";
|
|
10952
|
+
readonly cachedInputPrice: "0.022e-6";
|
|
10953
|
+
};
|
|
10954
|
+
readonly hoursUtc: readonly [[1, 4], [6, 10]];
|
|
10955
|
+
readonly offPeakDaysUtc: readonly [0, 6];
|
|
10956
|
+
};
|
|
10907
10957
|
readonly requestPrice: "0";
|
|
10908
10958
|
readonly contextSize: 1000000;
|
|
10909
10959
|
readonly maxOutput: 393216;
|
|
@@ -10913,6 +10963,8 @@ export declare const models: [{
|
|
|
10913
10963
|
readonly vision: false;
|
|
10914
10964
|
readonly tools: true;
|
|
10915
10965
|
readonly supportedToolChoices: ["auto", "none"];
|
|
10966
|
+
readonly supportedToolChoicesWithThinkingDisabled: ["required", "function"];
|
|
10967
|
+
readonly supportsDeveloperRole: false;
|
|
10916
10968
|
readonly jsonOutput: true;
|
|
10917
10969
|
readonly jsonOutputSchema: false;
|
|
10918
10970
|
}, {
|
|
@@ -11138,9 +11190,23 @@ export declare const models: [{
|
|
|
11138
11190
|
}, {
|
|
11139
11191
|
readonly providerId: "tencent";
|
|
11140
11192
|
readonly externalId: "deepseek-v4-flash-202605";
|
|
11141
|
-
readonly inputPrice: "0.
|
|
11142
|
-
readonly cachedInputPrice: "0.
|
|
11143
|
-
readonly outputPrice: "0.
|
|
11193
|
+
readonly inputPrice: "0.15e-6";
|
|
11194
|
+
readonly cachedInputPrice: "0.003e-6";
|
|
11195
|
+
readonly outputPrice: "0.6e-6";
|
|
11196
|
+
readonly peakPricing: {
|
|
11197
|
+
readonly peak: {
|
|
11198
|
+
readonly inputPrice: "0.3e-6";
|
|
11199
|
+
readonly outputPrice: "1.2e-6";
|
|
11200
|
+
readonly cachedInputPrice: "0.006e-6";
|
|
11201
|
+
};
|
|
11202
|
+
readonly offPeak: {
|
|
11203
|
+
readonly inputPrice: "0.15e-6";
|
|
11204
|
+
readonly outputPrice: "0.6e-6";
|
|
11205
|
+
readonly cachedInputPrice: "0.003e-6";
|
|
11206
|
+
};
|
|
11207
|
+
readonly hoursUtc: readonly [[1, 4], [6, 10]];
|
|
11208
|
+
readonly offPeakDaysUtc: readonly [0, 6];
|
|
11209
|
+
};
|
|
11144
11210
|
readonly requestPrice: "0";
|
|
11145
11211
|
readonly contextSize: 1000000;
|
|
11146
11212
|
readonly maxOutput: 393216;
|
|
@@ -11150,6 +11216,8 @@ export declare const models: [{
|
|
|
11150
11216
|
readonly vision: false;
|
|
11151
11217
|
readonly tools: true;
|
|
11152
11218
|
readonly supportedToolChoices: ["auto", "none"];
|
|
11219
|
+
readonly supportedToolChoicesWithThinkingDisabled: ["required", "function"];
|
|
11220
|
+
readonly supportsDeveloperRole: false;
|
|
11153
11221
|
readonly jsonOutput: true;
|
|
11154
11222
|
readonly jsonOutputSchema: false;
|
|
11155
11223
|
}, {
|
|
@@ -11219,6 +11287,39 @@ export declare const models: [{
|
|
|
11219
11287
|
readonly family: "deepseek";
|
|
11220
11288
|
readonly releasedAt: Date;
|
|
11221
11289
|
readonly providers: [{
|
|
11290
|
+
readonly providerId: "tencent";
|
|
11291
|
+
readonly externalId: "deepseek-v4.1-flash";
|
|
11292
|
+
readonly inputPrice: "0.15e-6";
|
|
11293
|
+
readonly outputPrice: "0.6e-6";
|
|
11294
|
+
readonly cachedInputPrice: "0.003e-6";
|
|
11295
|
+
readonly peakPricing: {
|
|
11296
|
+
readonly peak: {
|
|
11297
|
+
readonly inputPrice: "0.3e-6";
|
|
11298
|
+
readonly outputPrice: "1.2e-6";
|
|
11299
|
+
readonly cachedInputPrice: "0.006e-6";
|
|
11300
|
+
};
|
|
11301
|
+
readonly offPeak: {
|
|
11302
|
+
readonly inputPrice: "0.15e-6";
|
|
11303
|
+
readonly outputPrice: "0.6e-6";
|
|
11304
|
+
readonly cachedInputPrice: "0.003e-6";
|
|
11305
|
+
};
|
|
11306
|
+
readonly hoursUtc: readonly [[1, 4], [6, 10]];
|
|
11307
|
+
readonly offPeakDaysUtc: readonly [0, 6];
|
|
11308
|
+
};
|
|
11309
|
+
readonly requestPrice: "0";
|
|
11310
|
+
readonly contextSize: 1000000;
|
|
11311
|
+
readonly maxOutput: 393216;
|
|
11312
|
+
readonly streaming: true;
|
|
11313
|
+
readonly reasoning: true;
|
|
11314
|
+
readonly reasoningEfforts: ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
11315
|
+
readonly vision: true;
|
|
11316
|
+
readonly requiresBase64Images: true;
|
|
11317
|
+
readonly tools: true;
|
|
11318
|
+
readonly supportedToolChoices: ["auto", "none", "function"];
|
|
11319
|
+
readonly supportedToolChoicesWithThinkingDisabled: ["required"];
|
|
11320
|
+
readonly jsonOutput: true;
|
|
11321
|
+
readonly jsonOutputSchema: true;
|
|
11322
|
+
}, {
|
|
11222
11323
|
readonly providerId: "deepseek";
|
|
11223
11324
|
readonly externalId: "deepseek-flash";
|
|
11224
11325
|
readonly deactivatedAt: Date;
|
|
@@ -11437,6 +11538,40 @@ export declare const models: [{
|
|
|
11437
11538
|
readonly family: "deepseek";
|
|
11438
11539
|
readonly releasedAt: Date;
|
|
11439
11540
|
readonly providers: [{
|
|
11541
|
+
readonly providerId: "tencent";
|
|
11542
|
+
readonly externalId: "deepseek/deepseek-flash";
|
|
11543
|
+
readonly inputPrice: "0.15e-6";
|
|
11544
|
+
readonly outputPrice: "0.6e-6";
|
|
11545
|
+
readonly cachedInputPrice: "0.003e-6";
|
|
11546
|
+
readonly peakPricing: {
|
|
11547
|
+
readonly peak: {
|
|
11548
|
+
readonly inputPrice: "0.3e-6";
|
|
11549
|
+
readonly outputPrice: "1.2e-6";
|
|
11550
|
+
readonly cachedInputPrice: "0.006e-6";
|
|
11551
|
+
};
|
|
11552
|
+
readonly offPeak: {
|
|
11553
|
+
readonly inputPrice: "0.15e-6";
|
|
11554
|
+
readonly outputPrice: "0.6e-6";
|
|
11555
|
+
readonly cachedInputPrice: "0.003e-6";
|
|
11556
|
+
};
|
|
11557
|
+
readonly hoursUtc: readonly [[1, 4], [6, 10]];
|
|
11558
|
+
readonly offPeakDaysUtc: readonly [0, 6];
|
|
11559
|
+
};
|
|
11560
|
+
readonly requestPrice: "0";
|
|
11561
|
+
readonly contextSize: 1000000;
|
|
11562
|
+
readonly maxOutput: 393216;
|
|
11563
|
+
readonly streaming: true;
|
|
11564
|
+
readonly reasoning: true;
|
|
11565
|
+
readonly reasoningEfforts: ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
11566
|
+
readonly vision: true;
|
|
11567
|
+
readonly requiresBase64Images: true;
|
|
11568
|
+
readonly tools: true;
|
|
11569
|
+
readonly supportedToolChoices: ["auto", "none"];
|
|
11570
|
+
readonly supportedToolChoicesWithThinkingDisabled: ["required", "function"];
|
|
11571
|
+
readonly supportsDeveloperRole: false;
|
|
11572
|
+
readonly jsonOutput: true;
|
|
11573
|
+
readonly jsonOutputSchema: false;
|
|
11574
|
+
}, {
|
|
11440
11575
|
readonly providerId: "deepseek";
|
|
11441
11576
|
readonly externalId: "deepseek-flash";
|
|
11442
11577
|
readonly requiresBase64Images: true;
|
|
@@ -12468,6 +12603,34 @@ export declare const models: [{
|
|
|
12468
12603
|
readonly supportsVideoAudio: true;
|
|
12469
12604
|
readonly supportsVideoWithoutAudio: false;
|
|
12470
12605
|
}];
|
|
12606
|
+
}, {
|
|
12607
|
+
readonly id: "kimi-k2.8-preview";
|
|
12608
|
+
readonly name: "Kimi K2.8 Preview";
|
|
12609
|
+
readonly description: "Moonshot's Kimi K2.8 preview model with vision, reasoning, tool calling, and a 1M-token context window.";
|
|
12610
|
+
readonly family: "moonshot";
|
|
12611
|
+
readonly releasedAt: Date;
|
|
12612
|
+
readonly output: ["text"];
|
|
12613
|
+
readonly providers: [{
|
|
12614
|
+
readonly providerId: "tencent";
|
|
12615
|
+
readonly externalId: "kimi-k2.8-preview";
|
|
12616
|
+
readonly inputPrice: "1e-6";
|
|
12617
|
+
readonly cachedInputPrice: "0.25e-6";
|
|
12618
|
+
readonly outputPrice: "4e-6";
|
|
12619
|
+
readonly requestPrice: "0";
|
|
12620
|
+
readonly contextSize: 1000000;
|
|
12621
|
+
readonly maxOutput: 1000000;
|
|
12622
|
+
readonly streaming: true;
|
|
12623
|
+
readonly reasoning: true;
|
|
12624
|
+
readonly reasoningEfforts: ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
12625
|
+
readonly vision: true;
|
|
12626
|
+
readonly tools: true;
|
|
12627
|
+
readonly supportedToolChoices: ["auto", "none", "required"];
|
|
12628
|
+
readonly supportedToolChoicesWithThinkingDisabled: ["function"];
|
|
12629
|
+
readonly jsonOutput: true;
|
|
12630
|
+
readonly jsonOutputSchema: true;
|
|
12631
|
+
readonly supportsDeveloperRole: false;
|
|
12632
|
+
readonly supportedParameters: ["max_tokens", "response_format", "tools", "tool_choice", "reasoning_effort"];
|
|
12633
|
+
}];
|
|
12471
12634
|
}, {
|
|
12472
12635
|
readonly id: "kimi-k2";
|
|
12473
12636
|
readonly name: "Kimi K2";
|
|
@@ -18104,6 +18267,33 @@ export declare const models: [{
|
|
|
18104
18267
|
readonly tools: false;
|
|
18105
18268
|
readonly jsonOutput: true;
|
|
18106
18269
|
}];
|
|
18270
|
+
}, {
|
|
18271
|
+
readonly id: "glm-5.3-flashx";
|
|
18272
|
+
readonly name: "GLM-5.3 FlashX";
|
|
18273
|
+
readonly description: "Multimodal GLM-5.3 FlashX model with reasoning, tool calling, and a 1M-token context window.";
|
|
18274
|
+
readonly family: "zai";
|
|
18275
|
+
readonly releasedAt: Date;
|
|
18276
|
+
readonly output: ["text"];
|
|
18277
|
+
readonly providers: [{
|
|
18278
|
+
readonly providerId: "tencent";
|
|
18279
|
+
readonly externalId: "glm-5.3-flashx";
|
|
18280
|
+
readonly maxTemperature: 1;
|
|
18281
|
+
readonly inputPrice: "0.37e-6";
|
|
18282
|
+
readonly cachedInputPrice: "0.075e-6";
|
|
18283
|
+
readonly outputPrice: "1.25e-6";
|
|
18284
|
+
readonly requestPrice: "0";
|
|
18285
|
+
readonly contextSize: 1000000;
|
|
18286
|
+
readonly maxOutput: 131072;
|
|
18287
|
+
readonly streaming: true;
|
|
18288
|
+
readonly reasoning: true;
|
|
18289
|
+
readonly reasoningEfforts: ["xhigh", "max"];
|
|
18290
|
+
readonly vision: true;
|
|
18291
|
+
readonly tools: true;
|
|
18292
|
+
readonly supportedToolChoices: ["auto"];
|
|
18293
|
+
readonly jsonOutput: true;
|
|
18294
|
+
readonly jsonOutputSchema: true;
|
|
18295
|
+
readonly supportsDeveloperRole: false;
|
|
18296
|
+
}];
|
|
18107
18297
|
}, {
|
|
18108
18298
|
readonly id: "glm-5.3-flash";
|
|
18109
18299
|
readonly name: "GLM-5.3 Flash";
|
|
@@ -18111,6 +18301,25 @@ export declare const models: [{
|
|
|
18111
18301
|
readonly family: "zai";
|
|
18112
18302
|
readonly releasedAt: Date;
|
|
18113
18303
|
readonly providers: [{
|
|
18304
|
+
readonly providerId: "tencent";
|
|
18305
|
+
readonly externalId: "glm-5.3-flash";
|
|
18306
|
+
readonly maxTemperature: 1;
|
|
18307
|
+
readonly inputPrice: "0.15e-6";
|
|
18308
|
+
readonly cachedInputPrice: "0.03e-6";
|
|
18309
|
+
readonly outputPrice: "0.50e-6";
|
|
18310
|
+
readonly requestPrice: "0";
|
|
18311
|
+
readonly contextSize: 1000000;
|
|
18312
|
+
readonly maxOutput: 131072;
|
|
18313
|
+
readonly streaming: true;
|
|
18314
|
+
readonly reasoning: true;
|
|
18315
|
+
readonly reasoningEfforts: ["xhigh", "max"];
|
|
18316
|
+
readonly vision: true;
|
|
18317
|
+
readonly tools: true;
|
|
18318
|
+
readonly supportedToolChoices: ["auto"];
|
|
18319
|
+
readonly jsonOutput: true;
|
|
18320
|
+
readonly jsonOutputSchema: true;
|
|
18321
|
+
readonly supportsDeveloperRole: false;
|
|
18322
|
+
}, {
|
|
18114
18323
|
readonly providerId: "zai";
|
|
18115
18324
|
readonly externalId: "glm-5.3-flash";
|
|
18116
18325
|
readonly inputPrice: "0.15e-6";
|
|
@@ -18248,6 +18457,24 @@ export declare const models: [{
|
|
|
18248
18457
|
readonly family: "zai";
|
|
18249
18458
|
readonly releasedAt: Date;
|
|
18250
18459
|
readonly providers: [{
|
|
18460
|
+
readonly providerId: "tencent";
|
|
18461
|
+
readonly externalId: "glm-5.3";
|
|
18462
|
+
readonly inputPrice: "1.4e-6";
|
|
18463
|
+
readonly cachedInputPrice: "0.26e-6";
|
|
18464
|
+
readonly outputPrice: "4.4e-6";
|
|
18465
|
+
readonly requestPrice: "0";
|
|
18466
|
+
readonly contextSize: 1000000;
|
|
18467
|
+
readonly maxOutput: 128000;
|
|
18468
|
+
readonly streaming: true;
|
|
18469
|
+
readonly reasoning: true;
|
|
18470
|
+
readonly reasoningEfforts: ["low", "medium", "high", "xhigh", "max"];
|
|
18471
|
+
readonly reasoningOutput: "omit";
|
|
18472
|
+
readonly vision: false;
|
|
18473
|
+
readonly tools: true;
|
|
18474
|
+
readonly supportedToolChoices: ["auto", "none", "required", "function"];
|
|
18475
|
+
readonly jsonOutput: true;
|
|
18476
|
+
readonly jsonOutputSchema: true;
|
|
18477
|
+
}, {
|
|
18251
18478
|
readonly providerId: "zai";
|
|
18252
18479
|
readonly externalId: "glm-5.3";
|
|
18253
18480
|
readonly inputPrice: "1.4e-6";
|
|
@@ -19645,6 +19872,29 @@ export declare const models: [{
|
|
|
19645
19872
|
readonly jsonOutput: true;
|
|
19646
19873
|
readonly jsonOutputSchema: true;
|
|
19647
19874
|
}];
|
|
19875
|
+
}, {
|
|
19876
|
+
readonly id: "step-5-preview";
|
|
19877
|
+
readonly name: "Step 5 Preview";
|
|
19878
|
+
readonly description: "StepFun's multimodal reasoning preview model with a 1M-token context window, structured output, and function calling.";
|
|
19879
|
+
readonly family: "stepfun";
|
|
19880
|
+
readonly releasedAt: Date;
|
|
19881
|
+
readonly providers: [{
|
|
19882
|
+
readonly providerId: "tencent";
|
|
19883
|
+
readonly externalId: "step-5-preview";
|
|
19884
|
+
readonly inputPrice: "1e-6";
|
|
19885
|
+
readonly outputPrice: "2.7e-6";
|
|
19886
|
+
readonly cachedInputPrice: "0.05e-6";
|
|
19887
|
+
readonly requestPrice: "0";
|
|
19888
|
+
readonly contextSize: 1000000;
|
|
19889
|
+
readonly maxOutput: 65536;
|
|
19890
|
+
readonly streaming: true;
|
|
19891
|
+
readonly reasoning: true;
|
|
19892
|
+
readonly vision: true;
|
|
19893
|
+
readonly tools: true;
|
|
19894
|
+
readonly supportedToolChoices: ["auto"];
|
|
19895
|
+
readonly jsonOutput: true;
|
|
19896
|
+
readonly jsonOutputSchema: true;
|
|
19897
|
+
}];
|
|
19648
19898
|
}, {
|
|
19649
19899
|
readonly id: "step-3.7-flash";
|
|
19650
19900
|
readonly name: "Step 3.7 Flash";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { models } from "./models.js";
|
|
3
|
+
const catalogue = models;
|
|
4
|
+
function tencentMapping(id) {
|
|
5
|
+
return catalogue
|
|
6
|
+
.find((model) => model.id === id)
|
|
7
|
+
?.providers.find((mapping) => mapping.providerId === "tencent");
|
|
8
|
+
}
|
|
9
|
+
describe("Tencent Singapore catalogue", () => {
|
|
10
|
+
it.each([
|
|
11
|
+
["glm-5.3", "1.4e-6", "4.4e-6", "0.26e-6"],
|
|
12
|
+
["glm-5.3-flash", "0.15e-6", "0.5e-6", "0.03e-6"],
|
|
13
|
+
["glm-5.3-flashx", "0.37e-6", "1.25e-6", "0.075e-6"],
|
|
14
|
+
["kimi-k2.8-preview", "1e-6", "4e-6", "0.25e-6"],
|
|
15
|
+
["mimo-v2.6-pro", "0.435e-6", "0.87e-6", "0.0036e-6"],
|
|
16
|
+
["mimo-v2.6-flash", "0.14e-6", "0.28e-6", "0.0028e-6"],
|
|
17
|
+
["step-5-preview", "1e-6", "2.7e-6", "0.05e-6"],
|
|
18
|
+
])("uses Singapore token rates for %s", (id, inputPrice, outputPrice, cachedInputPrice) => {
|
|
19
|
+
const mapping = tencentMapping(id);
|
|
20
|
+
expect(mapping).toBeDefined();
|
|
21
|
+
expect(Number(mapping?.inputPrice)).toBe(Number(inputPrice));
|
|
22
|
+
expect(Number(mapping?.outputPrice)).toBe(Number(outputPrice));
|
|
23
|
+
expect(Number(mapping?.cachedInputPrice)).toBe(Number(cachedInputPrice));
|
|
24
|
+
});
|
|
25
|
+
it("preserves the historical Vendor Direct deployment IDs", () => {
|
|
26
|
+
expect(tencentMapping("deepseek-v4-pro")?.externalId).toBe("deepseek-v4-pro-202606");
|
|
27
|
+
expect(tencentMapping("deepseek-v4-flash")?.externalId).toBe("deepseek-v4-flash-202605");
|
|
28
|
+
});
|
|
29
|
+
it("never duplicates a provider mapping within a model", () => {
|
|
30
|
+
for (const model of catalogue) {
|
|
31
|
+
const providerIds = model.providers.map((mapping) => mapping.providerId);
|
|
32
|
+
expect(new Set(providerIds).size, model.id).toBe(providerIds.length);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
describe("Tencent DeepSeek peak pricing", () => {
|
|
37
|
+
it.each([
|
|
38
|
+
[
|
|
39
|
+
"deepseek-v4-pro",
|
|
40
|
+
"0.66e-6",
|
|
41
|
+
"1.98e-6",
|
|
42
|
+
"0.022e-6",
|
|
43
|
+
"1.32e-6",
|
|
44
|
+
"3.96e-6",
|
|
45
|
+
"0.044e-6",
|
|
46
|
+
],
|
|
47
|
+
[
|
|
48
|
+
"deepseek-v4-flash",
|
|
49
|
+
"0.15e-6",
|
|
50
|
+
"0.6e-6",
|
|
51
|
+
"0.003e-6",
|
|
52
|
+
"0.3e-6",
|
|
53
|
+
"1.2e-6",
|
|
54
|
+
"0.006e-6",
|
|
55
|
+
],
|
|
56
|
+
[
|
|
57
|
+
"deepseek-v4.1-flash",
|
|
58
|
+
"0.15e-6",
|
|
59
|
+
"0.6e-6",
|
|
60
|
+
"0.003e-6",
|
|
61
|
+
"0.3e-6",
|
|
62
|
+
"1.2e-6",
|
|
63
|
+
"0.006e-6",
|
|
64
|
+
],
|
|
65
|
+
[
|
|
66
|
+
"deepseek-v4.1-flash-1017",
|
|
67
|
+
"0.15e-6",
|
|
68
|
+
"0.6e-6",
|
|
69
|
+
"0.003e-6",
|
|
70
|
+
"0.3e-6",
|
|
71
|
+
"1.2e-6",
|
|
72
|
+
"0.006e-6",
|
|
73
|
+
],
|
|
74
|
+
])("prices both billing periods for %s", (id, inputPrice, outputPrice, cachedInputPrice, peakInputPrice, peakOutputPrice, peakCachedInputPrice) => {
|
|
75
|
+
expect(tencentMapping(id)).toMatchObject({
|
|
76
|
+
inputPrice,
|
|
77
|
+
outputPrice,
|
|
78
|
+
cachedInputPrice,
|
|
79
|
+
peakPricing: {
|
|
80
|
+
peak: {
|
|
81
|
+
inputPrice: peakInputPrice,
|
|
82
|
+
outputPrice: peakOutputPrice,
|
|
83
|
+
cachedInputPrice: peakCachedInputPrice,
|
|
84
|
+
},
|
|
85
|
+
offPeak: { inputPrice, outputPrice, cachedInputPrice },
|
|
86
|
+
hoursUtc: [
|
|
87
|
+
[1, 4],
|
|
88
|
+
[6, 10],
|
|
89
|
+
],
|
|
90
|
+
offPeakDaysUtc: [0, 6],
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
describe("Tencent sampling metadata", () => {
|
|
96
|
+
it.each([
|
|
97
|
+
["mimo-v2.6-pro", 1.5],
|
|
98
|
+
["mimo-v2.6-flash", 1.5],
|
|
99
|
+
["glm-5.3", undefined],
|
|
100
|
+
["glm-5.3-flash", 1],
|
|
101
|
+
["glm-5.3-flashx", 1],
|
|
102
|
+
["step-5-preview", undefined],
|
|
103
|
+
])("keeps only verified temperature ceilings for %s", (model, expected) => {
|
|
104
|
+
const mapping = tencentMapping(model);
|
|
105
|
+
expect(mapping).toBeDefined();
|
|
106
|
+
expect(mapping?.maxTemperature).toBe(expected);
|
|
107
|
+
});
|
|
108
|
+
it("omits Kimi's fixed sampling parameters", () => {
|
|
109
|
+
const supported = tencentMapping("kimi-k2.8-preview")?.supportedParameters;
|
|
110
|
+
expect(supported).toEqual([
|
|
111
|
+
"max_tokens",
|
|
112
|
+
"response_format",
|
|
113
|
+
"tools",
|
|
114
|
+
"tool_choice",
|
|
115
|
+
"reasoning_effort",
|
|
116
|
+
]);
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
//# sourceMappingURL=tencent-models.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tencent-models.spec.js","sourceRoot":"","sources":["../src/tencent-models.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAIrC,MAAM,SAAS,GAA+B,MAAM,CAAC;AAErD,SAAS,cAAc,CAAC,EAAU;IACjC,OAAO,SAAS;SACd,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;QACjC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC;AAClE,CAAC;AAED,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC5C,EAAE,CAAC,IAAI,CAAC;QACP,CAAC,SAAS,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