@kenkaiiii/gg-core 5.106.1 → 5.107.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.
@@ -80,11 +80,9 @@ interface ModelInfo {
80
80
  * endpoints/keys (a plan key vs. a pay-per-token key). The first key with stored credentials wins, so a
81
81
  * model can both prefer one endpoint AND fall back to another the user has
82
82
  * configured instead:
83
- * - `mimo-v2.6-pro` / `mimo-v2.6-flash`: `["xiaomi", XIAOMI_CREDITS_KEY]` —
84
- * prefer the Token Plan, fall back to API Credits (API Credits serves
85
- * every MiMo model, so a Credits-only user still reaches these).
86
- * - `mimo-v2.6-pro-ultraspeed`: `[XIAOMI_CREDITS_KEY]` only — not served
87
- * over the Token Plan endpoint, so there's no fallback to it.
83
+ * - every MiMo model: `["xiaomi", XIAOMI_CREDITS_KEY]` — prefer the Token
84
+ * Plan, fall back to API Credits (API Credits serves every MiMo model, so
85
+ * a Credits-only user still reaches these).
88
86
  * - Kimi: `[KIMI_CODE_KEY, "moonshot"]` — the Kimi Code plan key first;
89
87
  * K2.8 Preview is `[KIMI_CODE_KEY]` only (the plan endpoint serves it).
90
88
  * - every Gemini model: `[GEMINI_API_KEY]` — the AI Studio key.
@@ -160,8 +158,8 @@ declare function withoutPaidTier(modelId: string): string;
160
158
  * `(provider, model)`, first match wins. Almost every model just uses its
161
159
  * provider id (one credential per provider). Models with `authStorageKeys`
162
160
  * set (currently only Xiaomi) can prefer one endpoint and fall back to
163
- * another — e.g. `mimo-v2.6-pro` prefers the Token Plan but falls back to API
164
- * Credits, while the API-only `mimo-v2.6-pro-ultraspeed` has no fallback.
161
+ * another — e.g. every MiMo model prefers the Token Plan but falls back to API
162
+ * Credits.
165
163
  */
166
164
  declare function getAuthStorageKeys(provider: Provider, modelId: string): string[];
167
165
  /** The preferred (first) auth-storage key for `(provider, model)` — see `getAuthStorageKeys()`. */
@@ -80,11 +80,9 @@ interface ModelInfo {
80
80
  * endpoints/keys (a plan key vs. a pay-per-token key). The first key with stored credentials wins, so a
81
81
  * model can both prefer one endpoint AND fall back to another the user has
82
82
  * configured instead:
83
- * - `mimo-v2.6-pro` / `mimo-v2.6-flash`: `["xiaomi", XIAOMI_CREDITS_KEY]` —
84
- * prefer the Token Plan, fall back to API Credits (API Credits serves
85
- * every MiMo model, so a Credits-only user still reaches these).
86
- * - `mimo-v2.6-pro-ultraspeed`: `[XIAOMI_CREDITS_KEY]` only — not served
87
- * over the Token Plan endpoint, so there's no fallback to it.
83
+ * - every MiMo model: `["xiaomi", XIAOMI_CREDITS_KEY]` — prefer the Token
84
+ * Plan, fall back to API Credits (API Credits serves every MiMo model, so
85
+ * a Credits-only user still reaches these).
88
86
  * - Kimi: `[KIMI_CODE_KEY, "moonshot"]` — the Kimi Code plan key first;
89
87
  * K2.8 Preview is `[KIMI_CODE_KEY]` only (the plan endpoint serves it).
90
88
  * - every Gemini model: `[GEMINI_API_KEY]` — the AI Studio key.
@@ -160,8 +158,8 @@ declare function withoutPaidTier(modelId: string): string;
160
158
  * `(provider, model)`, first match wins. Almost every model just uses its
161
159
  * provider id (one credential per provider). Models with `authStorageKeys`
162
160
  * set (currently only Xiaomi) can prefer one endpoint and fall back to
163
- * another — e.g. `mimo-v2.6-pro` prefers the Token Plan but falls back to API
164
- * Credits, while the API-only `mimo-v2.6-pro-ultraspeed` has no fallback.
161
+ * another — e.g. every MiMo model prefers the Token Plan but falls back to API
162
+ * Credits.
165
163
  */
166
164
  declare function getAuthStorageKeys(provider: Provider, modelId: string): string[];
167
165
  /** The preferred (first) auth-storage key for `(provider, model)` — see `getAuthStorageKeys()`. */
@@ -23,7 +23,7 @@ import {
23
23
  setProviderCatalog,
24
24
  usesOpenAICodexTransport,
25
25
  withoutPaidTier
26
- } from "./chunk-757P7L4T.js";
26
+ } from "./chunk-T367MVTP.js";
27
27
  import "./chunk-GXOFTHM5.js";
28
28
  export {
29
29
  DEFAULT_MAX_VIDEO_BYTES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenkaiiii/gg-core",
3
- "version": "5.106.1",
3
+ "version": "5.107.0",
4
4
  "type": "module",
5
5
  "description": "Model registry, sign-in and stored credentials, and local model discovery for apps built on gg-ai. No UI, no agent loop.",
6
6
  "author": "Ken Kai",
@@ -50,7 +50,7 @@
50
50
  "NOTICE"
51
51
  ],
52
52
  "dependencies": {
53
- "@kenkaiiii/gg-ai": "5.106.1"
53
+ "@kenkaiiii/gg-ai": "5.107.0"
54
54
  },
55
55
  "optionalDependencies": {
56
56
  "@huggingface/transformers": "4.3.2",