@shop-os/modelkit 0.10.2 → 0.11.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.11.0] - Unreleased
13
+
14
+ The Google AI Studio key has one env name.
15
+
16
+ ### Removed
17
+ - `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.
18
+
12
19
  ## [0.10.2] - Unreleased
13
20
 
14
21
  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` (or `GEMINI_API_KEY`) in
350
- the app's secrets, not a Cloudflare gateway token.
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("GOOGLE_GENERATIVE_AI_API_KEY", "GEMINI_API_KEY", "GOOGLE_API_KEY"));
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"));