@molecule/api-resource-ai-models 1.6.0 → 1.6.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.
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAQjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkNG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,eAAe,EAi1DnC,CAAA"}
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAQjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkNG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,eAAe,EAq1DnC,CAAA"}
package/dist/models.js CHANGED
@@ -1428,15 +1428,19 @@ export const MODELS = [
1428
1428
  cacheReadPricePerMTok: 0.003,
1429
1429
  // DeepSeek charges no cache-write premium — write bills at input.
1430
1430
  cacheWritePricePerMTok: 0.15,
1431
- // PINNED NATIVE — no US re-host is wired. DeepInfra does serve
1432
- // `deepseek-ai/DeepSeek-V4.1-Flash` (listed 2026-09-10) at $0.30/$1.20,
1433
- // cache read 0.02× input = $0.006 — exactly 2× this native off-peak card —
1434
- // but offering a us region needs a molecule-dev US_MODEL_MAP entry
1435
- // (region-model-maps.ts) plus a regionPricing row here, and that pair is a
1436
- // deliberate molecule-dev change (it also can't beat this card on the
1437
- // agentic mix, unlike the legacy 0731 re-host). Single-entry ['cn'] pins
1438
- // dispatch to the native endpoint regardless of per-model region choice.
1439
- regions: ['cn'],
1431
+ // Native first (the default region); the DeepInfra US re-host
1432
+ // (`deepseek-ai/DeepSeek-V4.1-Flash`, molecule-dev region-model-maps.ts)
1433
+ // is offered as a SECOND region since 2026-09-14, when the native endpoint
1434
+ // queued every completion for hours (SSE keep-alives, no token, three
1435
+ // Synthase turns lost) while DeepInfra answered at once. Its card, read
1436
+ // live from api.deepinfra.com/models on 2026-09-14: $0.20/$0.60, cache
1437
+ // read 3% of input = $0.006 — roughly 2× this native off-peak card on
1438
+ // cache reads, so native stays the default and `us` is the fallback a
1439
+ // project picks when native is unavailable.
1440
+ regions: ['cn', 'us'],
1441
+ regionPricing: {
1442
+ us: { inputPricePerMTok: 0.2, outputPricePerMTok: 0.6, cacheReadPricePerMTok: 0.006 },
1443
+ },
1440
1444
  // Same peak windows as the family — the V4.1 card footnote is verbatim the
1441
1445
  // 2026-08-31 sentence: 01:00-04:00 and 06:00-10:00 UTC, Mon-Fri, ×2.
1442
1446
  peakPricing: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-resource-ai-models",
3
- "version": "1.6.0",
3
+ "version": "1.6.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.1",
31
- "@molecule/api-i18n": "1.0.1",
32
- "@molecule/api-resource": "1.0.1",
30
+ "@molecule/api-bond": "1.0.2",
31
+ "@molecule/api-i18n": "1.0.3",
32
+ "@molecule/api-resource": "1.0.2",
33
33
  "@types/node": "26.1.2",
34
34
  "typescript": "6.0.3",
35
35
  "vitest": "4.1.11"
@@ -52,7 +52,7 @@
52
52
  "url": "https://github.com/molecule-dev/molecule.git",
53
53
  "directory": "packages/api/resources/ai-models"
54
54
  },
55
- "homepage": "https://github.com/molecule-dev/molecule/tree/main/packages/api/resources/ai-models",
55
+ "homepage": "https://www.molecule.dev/packages/api-resource-ai-models",
56
56
  "bugs": "https://github.com/molecule-dev/molecule/issues",
57
57
  "publishConfig": {
58
58
  "access": "public"