@amalgm/chat 0.2.9-preview.36053697119 → 0.2.9-preview.36777100786
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/usage/model-catalog.d.ts +5 -7
- package/dist/usage/model-catalog.d.ts.map +1 -1
- package/dist/usage/model-catalog.js +191 -61
- package/dist/usage/model-catalog.js.map +1 -1
- package/docs/contracts/input-and-execution.md +8 -3
- package/host/index.d.ts +2 -0
- package/host/model-resolution.js +29 -19
- package/host/native-contract.js +33 -9
- package/package.json +5 -4
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Provider model catalog used by usage normalization.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* available/applicable — never zero (a pricing miss must surface as
|
|
9
|
-
* `null`, not a free model).
|
|
4
|
+
* Pricing & specs for every Vercel AI Gateway language model, generated from
|
|
5
|
+
* https://ai-gateway.vercel.sh/v1/models by `npm run sync:catalog`. Pricing is
|
|
6
|
+
* the base tier, per 1M tokens (USD). `null` = not available/applicable —
|
|
7
|
+
* never zero (a pricing miss must surface as `null`, not a free model).
|
|
10
8
|
*
|
|
11
|
-
*
|
|
9
|
+
* Do not hand-edit rates here; rerun the sync.
|
|
12
10
|
*/
|
|
13
11
|
/** One catalog entry. Prices are USD per 1M tokens; `null` = not offered. */
|
|
14
12
|
export interface CatalogModel {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-catalog.d.ts","sourceRoot":"","sources":["../../src/usage/model-catalog.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"model-catalog.d.ts","sourceRoot":"","sources":["../../src/usage/model-catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,6EAA6E;AAC7E,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,eAAO,MAAM,aAAa,EAAE,SAAS,YAAY,EAwWhD,CAAC;AAwBF;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,YAAY,GAAG,IAAI,CAuChF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAClC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,eAAe,SAAI,EACnB,gBAAgB,SAAI,GACnB,MAAM,GAAG,IAAI,CAuBf;AAED,qCAAqC;AACrC,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,YAAY,EAAE,CAEpE;AAED,iCAAiC;AACjC,wBAAgB,YAAY,IAAI,MAAM,EAAE,CAEvC"}
|