@shop-os/modelkit 0.4.0 → 0.4.1
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 +10 -0
- package/dist/catalog.cjs +50 -36
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.js +50 -36
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +50 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +50 -36
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,16 @@ header in the release PR.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [0.4.1] - Unreleased
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- `veo-3.1`, `veo-3.1-fast`, `veo-3.1-lite` and `gemini-omni-flash` are `deprecated`, replaced by `gemini-omni-1.1-flash`, with no exposure. Google shuts down their provider models (`veo-3.1-generate-preview`, `veo-3.1-fast-generate-preview`, `veo-3.1-lite-generate-preview`, `gemini-omni-flash-preview`) on 2026-10-22. The rows still resolve, so stored ids keep working until then.
|
|
16
|
+
- `gemini-3-pro-image-preview` sends `gemini-3-pro-image` and `gemini-3.1-flash-image-preview` sends `gemini-3.1-flash-image`: Google listed the preview endpoints for shutdown on 2026-06-25, and the GA ids cost the same. The catalog ids are unchanged, since they are pricing keys and stored model ids.
|
|
17
|
+
- `higgsfield-dop-preview` is priced `flat`: Higgsfield bills DoP per generation, a fixed-length clip with no duration knob.
|
|
18
|
+
|
|
19
|
+
### Live rows
|
|
20
|
+
pro-backend's `apply-model-shutdowns` script (PR #1486) makes the same changes to the live `model_catalog` rows per environment, including clearing the deprecated rows' exposure.
|
|
21
|
+
|
|
12
22
|
## [0.4.0] - Unreleased
|
|
13
23
|
|
|
14
24
|
### Added
|
package/dist/catalog.cjs
CHANGED
|
@@ -275,35 +275,43 @@ var IMAGE_MODELS = [
|
|
|
275
275
|
GEMINI_PROMPT_MAX_CHARS,
|
|
276
276
|
NANO_BANANA_2_1_RATIOS
|
|
277
277
|
),
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
278
|
+
// Google retired the -preview endpoints for the GA ids; the catalog ids stay because they
|
|
279
|
+
// are pricing keys and stored model ids.
|
|
280
|
+
{
|
|
281
|
+
...geminiImage(
|
|
282
|
+
"gemini-3-pro-image-preview",
|
|
283
|
+
"Nano Banana Pro",
|
|
284
|
+
["nb-pro"],
|
|
285
|
+
["1K", "2K", "4K"],
|
|
286
|
+
{
|
|
287
|
+
provider: "google",
|
|
288
|
+
description: "Create stunning, production-quality visuals with exceptional realism, detail, and typography. Best for campaigns, e-commerce, product photography, and hero creatives.",
|
|
289
|
+
logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png"
|
|
290
|
+
},
|
|
291
|
+
["cowork", "space_builder"],
|
|
292
|
+
{ images: 14 },
|
|
293
|
+
GEMINI_PROMPT_MAX_CHARS
|
|
294
|
+
),
|
|
295
|
+
providerModelId: "gemini-3-pro-image"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
...geminiImage(
|
|
299
|
+
"gemini-3.1-flash-image-preview",
|
|
300
|
+
"Nano Banana 2",
|
|
301
|
+
["nb-2"],
|
|
302
|
+
// Flash 3.1 is the only Gemini image model with the 512 tier.
|
|
303
|
+
["512", "1K", "2K", "4K"],
|
|
304
|
+
{
|
|
305
|
+
provider: "google",
|
|
306
|
+
description: "Generate high-quality images at speed. Perfect for brainstorming, concept boards, concept testing, creative exploration, and large batch workflows.",
|
|
307
|
+
logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png"
|
|
308
|
+
},
|
|
309
|
+
["cowork", "space_builder"],
|
|
310
|
+
{ images: 14 },
|
|
311
|
+
GEMINI_PROMPT_MAX_CHARS
|
|
312
|
+
),
|
|
313
|
+
providerModelId: "gemini-3.1-flash-image"
|
|
314
|
+
},
|
|
307
315
|
geminiImage(
|
|
308
316
|
"gemini-3.1-flash-lite-image",
|
|
309
317
|
"Nano Banana Lite",
|
|
@@ -1437,6 +1445,7 @@ var OMNI_PROMPT = { referenceSyntax: "caption", maxChars: 5e4 };
|
|
|
1437
1445
|
var BYTEDANCE_LOGO = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/3bba5d81-4e57-4e71-911b-cdfa05acca2c_compressed.png";
|
|
1438
1446
|
var GOOGLE_LOGO2 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png";
|
|
1439
1447
|
var VIDEO_MODELS = [
|
|
1448
|
+
// Google shuts down the Veo 3.1 previews and Omni Flash 1.0 on 2026-10-22.
|
|
1440
1449
|
{
|
|
1441
1450
|
id: "veo-3.1",
|
|
1442
1451
|
aliases: [
|
|
@@ -1449,8 +1458,9 @@ var VIDEO_MODELS = [
|
|
|
1449
1458
|
type: "video",
|
|
1450
1459
|
adapter: "google-genai",
|
|
1451
1460
|
providerModelId: "veo-3.1-generate-preview",
|
|
1452
|
-
lifecycle: "
|
|
1453
|
-
|
|
1461
|
+
lifecycle: "deprecated",
|
|
1462
|
+
replacedBy: "gemini-omni-1.1-flash",
|
|
1463
|
+
exposure: [],
|
|
1454
1464
|
constraints: {
|
|
1455
1465
|
aspectRatios: [...OMNI_RATIOS],
|
|
1456
1466
|
resolutions: ["720p", "1080p", "4k"],
|
|
@@ -1485,7 +1495,8 @@ var VIDEO_MODELS = [
|
|
|
1485
1495
|
type: "video",
|
|
1486
1496
|
adapter: "google-genai",
|
|
1487
1497
|
providerModelId: "veo-3.1-fast-generate-preview",
|
|
1488
|
-
lifecycle: "
|
|
1498
|
+
lifecycle: "deprecated",
|
|
1499
|
+
replacedBy: "gemini-omni-1.1-flash",
|
|
1489
1500
|
exposure: [],
|
|
1490
1501
|
constraints: {
|
|
1491
1502
|
aspectRatios: [...OMNI_RATIOS],
|
|
@@ -1515,7 +1526,8 @@ var VIDEO_MODELS = [
|
|
|
1515
1526
|
type: "video",
|
|
1516
1527
|
adapter: "google-genai",
|
|
1517
1528
|
providerModelId: "veo-3.1-lite-generate-preview",
|
|
1518
|
-
lifecycle: "
|
|
1529
|
+
lifecycle: "deprecated",
|
|
1530
|
+
replacedBy: "gemini-omni-1.1-flash",
|
|
1519
1531
|
exposure: [],
|
|
1520
1532
|
constraints: {
|
|
1521
1533
|
aspectRatios: [...OMNI_RATIOS],
|
|
@@ -1546,8 +1558,9 @@ var VIDEO_MODELS = [
|
|
|
1546
1558
|
type: "video",
|
|
1547
1559
|
adapter: "google-genai",
|
|
1548
1560
|
providerModelId: "gemini-omni-flash-preview",
|
|
1549
|
-
lifecycle: "
|
|
1550
|
-
|
|
1561
|
+
lifecycle: "deprecated",
|
|
1562
|
+
replacedBy: "gemini-omni-1.1-flash",
|
|
1563
|
+
exposure: [],
|
|
1551
1564
|
constraints: {
|
|
1552
1565
|
// 1.0 rejects `resolution`; it renders 720p. No defaults: the adapter
|
|
1553
1566
|
// sends ratio and duration only when the caller set them, so a
|
|
@@ -2102,7 +2115,8 @@ var VIDEO_MODELS = [
|
|
|
2102
2115
|
},
|
|
2103
2116
|
defaults: {},
|
|
2104
2117
|
usage: { ...VIDEO_USAGE },
|
|
2105
|
-
|
|
2118
|
+
// Higgsfield bills DoP per generation: a fixed-length clip with no duration knob.
|
|
2119
|
+
pricingKind: "flat",
|
|
2106
2120
|
display: {
|
|
2107
2121
|
provider: "higgsfield",
|
|
2108
2122
|
description: "Higgsfield DOP image-to-video model; animates a required first-frame image from a text prompt with an optional last-frame image and motion controls."
|