@molecule/api-resource-ai-models 1.18.1 → 1.18.2
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/README.md +3 -21
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-10-
|
|
6
|
+
Generated: 2026-10-26T04:23:44.190Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/api-resource-ai-models
|
|
@@ -436,17 +436,7 @@ A model's peak-hour pricing in effect at a given instant: the staged
|
|
|
436
436
|
leaves the existing windows in force), else the model's own `peakPricing`.
|
|
437
437
|
|
|
438
438
|
```typescript
|
|
439
|
-
function effectivePeakPricing(
|
|
440
|
-
modelDef: ModelDefinition,
|
|
441
|
-
at?: Date,
|
|
442
|
-
):
|
|
443
|
-
| {
|
|
444
|
-
windows: { startMinuteUtc: number; endMinuteUtc: number; daysOfWeekUtc?: number[] }[]
|
|
445
|
-
multiplier: number
|
|
446
|
-
excludedDatesUtc?: string[]
|
|
447
|
-
rule?: { url: string; text: string }
|
|
448
|
-
}
|
|
449
|
-
| undefined
|
|
439
|
+
function effectivePeakPricing(modelDef: ModelDefinition, at?: Date): ModelDefinition['peakPricing']
|
|
450
440
|
```
|
|
451
441
|
|
|
452
442
|
- `modelDef` — The model definition.
|
|
@@ -472,15 +462,7 @@ resolving the static band against landed scheduled base rates would leave
|
|
|
472
462
|
function effectiveLongContextPricing(
|
|
473
463
|
modelDef: ModelDefinition,
|
|
474
464
|
at?: Date,
|
|
475
|
-
):
|
|
476
|
-
| {
|
|
477
|
-
aboveInputTokens: number
|
|
478
|
-
inputPricePerMTok: number
|
|
479
|
-
outputPricePerMTok: number
|
|
480
|
-
cacheReadPricePerMTok: number
|
|
481
|
-
cacheWritePricePerMTok: number
|
|
482
|
-
}
|
|
483
|
-
| undefined
|
|
465
|
+
): ModelDefinition['longContextPricing']
|
|
484
466
|
```
|
|
485
467
|
|
|
486
468
|
- `modelDef` — The model definition.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/api-resource-ai-models",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.2",
|
|
4
4
|
"description": "AI model catalog — server-side source of truth plus an authentication-gated discovery endpoint",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
],
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@molecule/api-bond": "1.0.
|
|
31
|
-
"@molecule/api-i18n": "1.0.
|
|
32
|
-
"@molecule/api-resource": "1.0.
|
|
30
|
+
"@molecule/api-bond": "1.0.4",
|
|
31
|
+
"@molecule/api-i18n": "1.0.5",
|
|
32
|
+
"@molecule/api-resource": "1.0.7",
|
|
33
33
|
"@types/node": "26.6.5",
|
|
34
34
|
"typescript": "6.0.3",
|
|
35
35
|
"vitest": "4.1.12"
|