@shop-os/modelkit 0.10.2 → 0.12.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 +14 -0
- package/README.md +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,20 @@ header in the release PR.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [0.12.0] - Unreleased
|
|
13
|
+
|
|
14
|
+
The Prodia, Replicate and Cloudflare AI Gateway keys have one env name each.
|
|
15
|
+
|
|
16
|
+
### Removed
|
|
17
|
+
- `keysFromEnv` reads the `prodia` key from `PRODIA_TOKEN` only, the `replicate` key from `REPLICATE_API_TOKEN` only, and the `cloudflare` key from `CF_AIG_TOKEN` only (each with the `ENTERPRISE_` / `SLOOSH_` prefixes); the older alias names are no longer read. An env that sets only an alias gets no key for that provider, so a call that needs it fails with a `ModelKitError` code `auth`. Set the new names before a consumer upgrades.
|
|
18
|
+
|
|
19
|
+
## [0.11.0] - Unreleased
|
|
20
|
+
|
|
21
|
+
The Google AI Studio key has one env name.
|
|
22
|
+
|
|
23
|
+
### Removed
|
|
24
|
+
- `keysFromEnv` reads the `google` key from `GOOGLE_API_KEY` only (with the `ENTERPRISE_` / `SLOOSH_` prefixes); the older alias names are no longer read. An env that sets only an alias gets no `google` key, so a Gemini call fails with a `ModelKitError` code `auth`. Set `GOOGLE_API_KEY` before a consumer upgrades.
|
|
25
|
+
|
|
12
26
|
## [0.10.2] - Unreleased
|
|
13
27
|
|
|
14
28
|
Wan 3 Prime on fal.
|
package/README.md
CHANGED
|
@@ -346,8 +346,8 @@ change here reaches an app only after a publish and a version bump there.
|
|
|
346
346
|
|
|
347
347
|
Each app owns one lazy kit in a `modelkit.ts` module (`getModelKit()` plus a
|
|
348
348
|
`resetModelKit()` test seam) and reads its keys from the environment. Gemini
|
|
349
|
-
calls go direct everywhere: they need `GOOGLE_API_KEY`
|
|
350
|
-
|
|
349
|
+
calls go direct everywhere: they need `GOOGLE_API_KEY` in the
|
|
350
|
+
app's secrets, not a Cloudflare gateway token.
|
|
351
351
|
|
|
352
352
|
## Adapters
|
|
353
353
|
|
package/dist/index.cjs
CHANGED
|
@@ -18469,7 +18469,7 @@ function keysFromEnv(env, prefix = "") {
|
|
|
18469
18469
|
};
|
|
18470
18470
|
set("openai", pick2("OPENAI_API_KEY"));
|
|
18471
18471
|
set("anthropic", pick2("ANTHROPIC_API_KEY"));
|
|
18472
|
-
set("google", pick2("
|
|
18472
|
+
set("google", pick2("GOOGLE_API_KEY"));
|
|
18473
18473
|
set("xai", pick2("XAI_API_KEY"));
|
|
18474
18474
|
set("perplexity", pick2("PERPLEXITY_API_KEY"));
|
|
18475
18475
|
set("deepseek", pick2("DEEPSEEK_API_KEY"));
|
|
@@ -18477,14 +18477,14 @@ function keysFromEnv(env, prefix = "") {
|
|
|
18477
18477
|
set("minimax", pick2("MINIMAX_API_KEY"));
|
|
18478
18478
|
set("ark", pick2("BYTEDANCE_API_KEY"));
|
|
18479
18479
|
set("fal", pick2("FAL_KEY", "FAL_API_KEY"));
|
|
18480
|
-
set("replicate", pick2("REPLICATE_API_TOKEN"
|
|
18481
|
-
set("prodia", pick2("
|
|
18480
|
+
set("replicate", pick2("REPLICATE_API_TOKEN"));
|
|
18481
|
+
set("prodia", pick2("PRODIA_TOKEN"));
|
|
18482
18482
|
set("higgsfield", pick2("HIGGSFIELD_API_KEY"));
|
|
18483
18483
|
set("higgsfieldSecret", pick2("HIGGSFIELD_API_SECRET"));
|
|
18484
18484
|
set("luma", pick2("LUMA_API_KEY", "LUMA_AGENTS_API_KEY"));
|
|
18485
18485
|
set("fish", pick2("FISH_AUDIO_API_KEY"));
|
|
18486
18486
|
set("elevenlabs", pick2("ELEVENLABS_API_KEY"));
|
|
18487
|
-
set("cloudflare", pick2("
|
|
18487
|
+
set("cloudflare", pick2("CF_AIG_TOKEN"));
|
|
18488
18488
|
const bearer = pick2("AWS_BEARER_TOKEN_BEDROCK");
|
|
18489
18489
|
const accessKeyId = pick2("AWS_ACCESS_KEY_ID");
|
|
18490
18490
|
const secretAccessKey = pick2("AWS_SECRET_ACCESS_KEY");
|