@shop-os/modelkit 0.7.11 → 0.8.0
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/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,13 @@ header in the release PR.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [0.8.0] - Unreleased
|
|
13
|
+
|
|
14
|
+
The BytePlus ModelArk key has one env name.
|
|
15
|
+
|
|
16
|
+
### Removed
|
|
17
|
+
- `keysFromEnv` reads the `ark` key from `BYTEDANCE_API_KEY` only (with the `ENTERPRISE_` / `SLOOSH_` prefixes); the two older alias names are no longer read. An env that sets only an alias gets no `ark` key, so an Ark call fails with a `ModelKitError` code `auth`. Set `BYTEDANCE_API_KEY` before a consumer upgrades.
|
|
18
|
+
|
|
12
19
|
## [0.7.11] - Unreleased
|
|
13
20
|
|
|
14
21
|
Kling 4.0 on fal.
|
package/README.md
CHANGED
|
@@ -108,7 +108,7 @@ before submit), and `model3dPricingSku(row, options, inputs)` names the flat pri
|
|
|
108
108
|
bills under; `model3dSkus(row)` lists them all, and pro-backend keeps a `credit_pricing_flat`
|
|
109
109
|
row for each. All three are in the browser-safe catalog entry.
|
|
110
110
|
|
|
111
|
-
Keys come from `process.env` by default: bare names for pro (`OPENAI_API_KEY`, `FAL_KEY`, `
|
|
111
|
+
Keys come from `process.env` by default: bare names for pro (`OPENAI_API_KEY`, `FAL_KEY`, `BYTEDANCE_API_KEY`, `LUMA_API_KEY` ...), the `ENTERPRISE_` prefix for enterprise and the `SLOOSH_` prefix for sloosh (sloosh reads `SLOOSH_LUMA_API_KEY` for Luma). Pass `keys: { pro, enterprise, sloosh }` to override. `tier: "sloosh"` uses the sloosh keys only: a missing key is a `ModelKitError` with code `auth`, never a fallback to pro.
|
|
112
112
|
|
|
113
113
|
## Browser-safe catalog
|
|
114
114
|
|
package/dist/index.cjs
CHANGED
|
@@ -17369,7 +17369,7 @@ function keysFromEnv(env, prefix = "") {
|
|
|
17369
17369
|
set("deepseek", pick2("DEEPSEEK_API_KEY"));
|
|
17370
17370
|
set("moonshot", pick2("MOONSHOT_API_KEY"));
|
|
17371
17371
|
set("minimax", pick2("MINIMAX_API_KEY"));
|
|
17372
|
-
set("ark", pick2("
|
|
17372
|
+
set("ark", pick2("BYTEDANCE_API_KEY"));
|
|
17373
17373
|
set("fal", pick2("FAL_KEY", "FAL_API_KEY"));
|
|
17374
17374
|
set("replicate", pick2("REPLICATE_API_TOKEN", "REPLICATE_API_KEY"));
|
|
17375
17375
|
set("prodia", pick2("PRODIA_API_KEY", "PRODIA_TOKEN"));
|