@byte_fluffy/nexra-sdk 0.1.0-alpha.18 → 0.1.0-alpha.19

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 CHANGED
@@ -40,6 +40,22 @@ Static catalog APIs are also available from `@byte_fluffy/nexra-sdk/catalog`.
40
40
  Exact non-negative decimal helpers are available from
41
41
  `@byte_fluffy/nexra-sdk/decimal`.
42
42
 
43
+ The static catalog includes the 13 verified Agnes and CTYun image/video model
44
+ contracts. A catalog entry describes parameters; it does not grant access to a
45
+ private model or publish a sale price. Check the selected environment's model
46
+ listing and current prices before submitting a task.
47
+
48
+ GPT-6 Sol and GPT-6 Luna are included in the language model catalog. Sale prices
49
+ are not bundled into the SDK; use the current prices published by the selected
50
+ Nexra environment:
51
+
52
+ ```ts
53
+ const { prices } = await nexra.catalog.listPrices();
54
+ const gpt6Prices = prices.filter(({ modelId }) =>
55
+ modelId === "openai/gpt-6-sol" || modelId === "openai/gpt-6-luna"
56
+ );
57
+ ```
58
+
43
59
  ## Directory layout
44
60
 
45
61
  ```
@@ -59,9 +75,9 @@ scripts/
59
75
  src/catalog/generated/*
60
76
  ```
61
77
 
62
- ### Adding a new public model
78
+ ### Adding a model spec
63
79
 
64
- 1. Add its ID to `PUBLIC_MODEL_IDS` in `scripts/generate-public-catalog.ts`.
80
+ 1. Add its ID to `SDK_MODEL_IDS` in `scripts/generate-public-catalog.ts`.
65
81
  2. Run `bun run generate` (from `packages/sdk`).
66
82
  3. The script groups projected models by `model.kind`, writes one
67
83
  `src/catalog/generated/<kind>.generated.json` per kind (new kinds appear
package/dist/catalog.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  getModelSpec,
7
7
  listModelSpecs,
8
8
  projectMediaGeometry
9
- } from "./chunk-VFIIDWIH.js";
9
+ } from "./chunk-E2EFOWSK.js";
10
10
  export {
11
11
  CatalogClient,
12
12
  applyMediaGeometry,