@shop-os/modelkit 0.2.5 → 0.2.6
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 +7 -0
- package/dist/catalog.cjs +4 -4
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.js +4 -4
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1435,7 +1435,7 @@ var VIDEO_MODELS = [
|
|
|
1435
1435
|
// reference clip keeps its own framing.
|
|
1436
1436
|
aspectRatios: [...OMNI_RATIOS],
|
|
1437
1437
|
durations: [3, 4, 5, 6, 7, 8, 9, 10],
|
|
1438
|
-
references: { images: 6, videos:
|
|
1438
|
+
references: { images: 6, videos: 1 },
|
|
1439
1439
|
supports: []
|
|
1440
1440
|
},
|
|
1441
1441
|
defaults: {},
|
|
@@ -1461,7 +1461,7 @@ var VIDEO_MODELS = [
|
|
|
1461
1461
|
aspectRatios: [...OMNI_RATIOS],
|
|
1462
1462
|
resolutions: ["360p", "720p", "1080p", "4k"],
|
|
1463
1463
|
durations: [3, 4, 5, 6, 7, 8, 9, 10],
|
|
1464
|
-
references: { images: 6, videos:
|
|
1464
|
+
references: { images: 6, videos: 1 },
|
|
1465
1465
|
supports: []
|
|
1466
1466
|
},
|
|
1467
1467
|
defaults: {},
|
|
@@ -1588,7 +1588,7 @@ var VIDEO_MODELS = [
|
|
|
1588
1588
|
resolutions: ["480p", "720p"],
|
|
1589
1589
|
durations: { min: 1, max: 15 },
|
|
1590
1590
|
durationPresets: [4, 6, 8, 10],
|
|
1591
|
-
references: { images:
|
|
1591
|
+
references: { images: 5 },
|
|
1592
1592
|
supports: []
|
|
1593
1593
|
},
|
|
1594
1594
|
// No resolution default: xAI picks its own unless the caller asks.
|
|
@@ -1597,7 +1597,7 @@ var VIDEO_MODELS = [
|
|
|
1597
1597
|
pricingKind: "video_per_second",
|
|
1598
1598
|
display: {
|
|
1599
1599
|
provider: "xai",
|
|
1600
|
-
description: "xAI's reference-to-video model. Generates short clips conditioned on up to
|
|
1600
|
+
description: "xAI's reference-to-video model. Generates short clips conditioned on up to 5 reference images with flexible aspect ratios.",
|
|
1601
1601
|
logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/858b7fcc-9bd5-411d-aea1-a7b35ecfffab_compressed.png"
|
|
1602
1602
|
},
|
|
1603
1603
|
capabilities: { ...FRAMES_EXCLUDE_REFERENCES }
|
|
@@ -7264,7 +7264,7 @@ async function generateXaiVideo(req, ctx, deps) {
|
|
|
7264
7264
|
retryable: false
|
|
7265
7265
|
});
|
|
7266
7266
|
}
|
|
7267
|
-
const refUrls = (req.referenceImages ?? []).map(refToUrl).slice(0,
|
|
7267
|
+
const refUrls = (req.referenceImages ?? []).map(refToUrl).slice(0, 5);
|
|
7268
7268
|
const xaiOptions = {
|
|
7269
7269
|
pollIntervalMs: POLL_INTERVAL_MS2,
|
|
7270
7270
|
pollTimeoutMs: POLL_TIMEOUT_MS2
|