@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.js
CHANGED
|
@@ -1342,7 +1342,7 @@ var VIDEO_MODELS = [
|
|
|
1342
1342
|
// reference clip keeps its own framing.
|
|
1343
1343
|
aspectRatios: [...OMNI_RATIOS],
|
|
1344
1344
|
durations: [3, 4, 5, 6, 7, 8, 9, 10],
|
|
1345
|
-
references: { images: 6, videos:
|
|
1345
|
+
references: { images: 6, videos: 1 },
|
|
1346
1346
|
supports: []
|
|
1347
1347
|
},
|
|
1348
1348
|
defaults: {},
|
|
@@ -1368,7 +1368,7 @@ var VIDEO_MODELS = [
|
|
|
1368
1368
|
aspectRatios: [...OMNI_RATIOS],
|
|
1369
1369
|
resolutions: ["360p", "720p", "1080p", "4k"],
|
|
1370
1370
|
durations: [3, 4, 5, 6, 7, 8, 9, 10],
|
|
1371
|
-
references: { images: 6, videos:
|
|
1371
|
+
references: { images: 6, videos: 1 },
|
|
1372
1372
|
supports: []
|
|
1373
1373
|
},
|
|
1374
1374
|
defaults: {},
|
|
@@ -1495,7 +1495,7 @@ var VIDEO_MODELS = [
|
|
|
1495
1495
|
resolutions: ["480p", "720p"],
|
|
1496
1496
|
durations: { min: 1, max: 15 },
|
|
1497
1497
|
durationPresets: [4, 6, 8, 10],
|
|
1498
|
-
references: { images:
|
|
1498
|
+
references: { images: 5 },
|
|
1499
1499
|
supports: []
|
|
1500
1500
|
},
|
|
1501
1501
|
// No resolution default: xAI picks its own unless the caller asks.
|
|
@@ -1504,7 +1504,7 @@ var VIDEO_MODELS = [
|
|
|
1504
1504
|
pricingKind: "video_per_second",
|
|
1505
1505
|
display: {
|
|
1506
1506
|
provider: "xai",
|
|
1507
|
-
description: "xAI's reference-to-video model. Generates short clips conditioned on up to
|
|
1507
|
+
description: "xAI's reference-to-video model. Generates short clips conditioned on up to 5 reference images with flexible aspect ratios.",
|
|
1508
1508
|
logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/858b7fcc-9bd5-411d-aea1-a7b35ecfffab_compressed.png"
|
|
1509
1509
|
},
|
|
1510
1510
|
capabilities: { ...FRAMES_EXCLUDE_REFERENCES }
|
|
@@ -7180,7 +7180,7 @@ async function generateXaiVideo(req, ctx, deps) {
|
|
|
7180
7180
|
retryable: false
|
|
7181
7181
|
});
|
|
7182
7182
|
}
|
|
7183
|
-
const refUrls = (req.referenceImages ?? []).map(refToUrl).slice(0,
|
|
7183
|
+
const refUrls = (req.referenceImages ?? []).map(refToUrl).slice(0, 5);
|
|
7184
7184
|
const xaiOptions = {
|
|
7185
7185
|
pollIntervalMs: POLL_INTERVAL_MS2,
|
|
7186
7186
|
pollTimeoutMs: POLL_TIMEOUT_MS2
|