@byte_fluffy/nexra-sdk 0.1.0-alpha.17 → 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 +18 -2
- package/dist/catalog.js +1 -1
- package/dist/{chunk-ZDFPKKHQ.js → chunk-E2EFOWSK.js} +5948 -780
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/dist/{types-Dwy7j1S1.d.ts → types-CvKdgo7V.d.ts} +3 -0
- package/dist/types.d.ts +1 -1
- package/package.json +2 -1
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
|
|
78
|
+
### Adding a model spec
|
|
63
79
|
|
|
64
|
-
1. Add its ID to `
|
|
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
|