@rayadesu/dsh-llm-billing 0.3.7 → 0.3.8
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/lib/index.js +34 -0
- package/lib/types/billing.js +11 -0
- package/lib/types/index.js +2 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -337,6 +337,32 @@ const DEFAULT_MODEL_PRICING = [
|
|
|
337
337
|
cacheMissInput: 1.5,
|
|
338
338
|
output: 4.5
|
|
339
339
|
}
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
model: "mimo-v2.5-pro",
|
|
343
|
+
peak: {
|
|
344
|
+
cacheHitInput: .025,
|
|
345
|
+
cacheMissInput: 3,
|
|
346
|
+
output: 6
|
|
347
|
+
},
|
|
348
|
+
offPeak: {
|
|
349
|
+
cacheHitInput: .025,
|
|
350
|
+
cacheMissInput: 3,
|
|
351
|
+
output: 6
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
model: "mimo-v2.5",
|
|
356
|
+
peak: {
|
|
357
|
+
cacheHitInput: .02,
|
|
358
|
+
cacheMissInput: 1,
|
|
359
|
+
output: 2
|
|
360
|
+
},
|
|
361
|
+
offPeak: {
|
|
362
|
+
cacheHitInput: .02,
|
|
363
|
+
cacheMissInput: 1,
|
|
364
|
+
output: 2
|
|
365
|
+
}
|
|
340
366
|
}
|
|
341
367
|
];
|
|
342
368
|
/**
|
|
@@ -1329,6 +1355,14 @@ const DEFAULT_MODELS = [
|
|
|
1329
1355
|
{
|
|
1330
1356
|
id: "deepseek-v4-flash-vision-exp",
|
|
1331
1357
|
name: "DeepSeek-V4-Flash-Vision-Exp"
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
id: "mimo-v2.5-pro",
|
|
1361
|
+
name: "MiMo-V2.5-Pro"
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
id: "mimo-v2.5",
|
|
1365
|
+
name: "MiMo-V2.5"
|
|
1332
1366
|
}
|
|
1333
1367
|
];
|
|
1334
1368
|
const billingModel = z.object({
|
package/lib/types/billing.js
CHANGED
|
@@ -40,6 +40,17 @@ export const DEFAULT_MODEL_PRICING = [
|
|
|
40
40
|
peak: { cacheHitInput: 0.10, cacheMissInput: 3.0, output: 9.0 },
|
|
41
41
|
offPeak: { cacheHitInput: 0.05, cacheMissInput: 1.5, output: 4.5 },
|
|
42
42
|
},
|
|
43
|
+
// MiMo-V2.5 series (Xiaomi): flat rate, no peak/off-peak distinction.
|
|
44
|
+
{
|
|
45
|
+
model: 'mimo-v2.5-pro',
|
|
46
|
+
peak: { cacheHitInput: 0.025, cacheMissInput: 3.0, output: 6.0 },
|
|
47
|
+
offPeak: { cacheHitInput: 0.025, cacheMissInput: 3.0, output: 6.0 },
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
model: 'mimo-v2.5',
|
|
51
|
+
peak: { cacheHitInput: 0.02, cacheMissInput: 1.0, output: 2.0 },
|
|
52
|
+
offPeak: { cacheHitInput: 0.02, cacheMissInput: 1.0, output: 2.0 },
|
|
53
|
+
},
|
|
43
54
|
];
|
|
44
55
|
/**
|
|
45
56
|
* Resolve optional configuration to a pricing table, defaulting omitted or
|
package/lib/types/index.js
CHANGED
|
@@ -41,6 +41,8 @@ const DEFAULT_MODELS = [
|
|
|
41
41
|
{ id: 'deepseek-v4-flash', name: 'DeepSeek-V4-Flash' },
|
|
42
42
|
{ id: 'deepseek-v4-pro', name: 'DeepSeek-V4-Pro' },
|
|
43
43
|
{ id: 'deepseek-v4-flash-vision-exp', name: 'DeepSeek-V4-Flash-Vision-Exp' },
|
|
44
|
+
{ id: 'mimo-v2.5-pro', name: 'MiMo-V2.5-Pro' },
|
|
45
|
+
{ id: 'mimo-v2.5', name: 'MiMo-V2.5' },
|
|
44
46
|
];
|
|
45
47
|
const billingModel = z.object({
|
|
46
48
|
id: z.string().required(),
|
package/package.json
CHANGED