@shop-os/modelkit 0.11.0 → 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 CHANGED
@@ -9,6 +9,13 @@ 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
+
12
19
  ## [0.11.0] - Unreleased
13
20
 
14
21
  The Google AI Studio key has one env name.
package/dist/index.cjs CHANGED
@@ -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", "REPLICATE_API_KEY"));
18481
- set("prodia", pick2("PRODIA_API_KEY", "PRODIA_TOKEN"));
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("CLOUDFLARE_AI_GATEWAY_TOKEN", "CF_AIG_TOKEN"));
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");