@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.
- package/dist/{chunk-757P7L4T.js → chunk-T367MVTP.js} +52 -20
- package/dist/chunk-T367MVTP.js.map +1 -0
- package/dist/index.cjs +53 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -6
- package/dist/index.d.ts +14 -6
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/model-registry.cjs +5 -6
- package/dist/model-registry.cjs.map +1 -1
- package/dist/model-registry.d.cts +5 -7
- package/dist/model-registry.d.ts +5 -7
- package/dist/model-registry.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-757P7L4T.js.map +0 -1
|
@@ -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
|
-
* -
|
|
84
|
-
*
|
|
85
|
-
*
|
|
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.
|
|
164
|
-
* Credits
|
|
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()`. */
|
package/dist/model-registry.d.ts
CHANGED
|
@@ -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
|
-
* -
|
|
84
|
-
*
|
|
85
|
-
*
|
|
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.
|
|
164
|
-
* Credits
|
|
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()`. */
|
package/dist/model-registry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kenkaiiii/gg-core",
|
|
3
|
-
"version": "5.
|
|
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.
|
|
53
|
+
"@kenkaiiii/gg-ai": "5.107.0"
|
|
54
54
|
},
|
|
55
55
|
"optionalDependencies": {
|
|
56
56
|
"@huggingface/transformers": "4.3.2",
|