@shop-os/modelkit 0.4.1 → 0.4.2
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 +8 -0
- package/dist/catalog.cjs +44 -0
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.js +44 -0
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +92 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +92 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,14 @@ header in the release PR.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [0.4.2] - Unreleased
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- `wan-3.0` (Wan 3) video row on the fal adapter (`alibaba/wan-3.0`), listed on `cowork` and `space_builder`. One row covers fal's three endpoints and the adapter picks one from the inputs: references (up to 10 images, 5 videos, 5 audio clips; 15 s of video and 15 s of audio in all) go to `/reference-to-video`, a first frame (optionally with a last frame) to `/image-to-video`, and a bare prompt to `/text-to-video`. 480p/720p/1080p, 2-30 s, `adaptive` plus five fixed ratios, switchable audio (default on), seed and the safety checker. Frames and references are exclusive (`framesExcludeReferences`), and a last frame needs a first frame (`lastFrameRequiresFirstFrame`): image-to-video requires `start_image_url`. Prompt expansion is left at fal's default (on); `file_url` / `web_url` and `enable_thinking` are not exposed.
|
|
16
|
+
|
|
17
|
+
### Live rows
|
|
18
|
+
pro-backend's boot `seed-model-catalog` inserts the row listed once a consumer on 0.4.2 deploys; seed its `credit_pricing_video` rows first.
|
|
19
|
+
|
|
12
20
|
## [0.4.1] - Unreleased
|
|
13
21
|
|
|
14
22
|
### Changed
|
package/dist/catalog.cjs
CHANGED
|
@@ -1431,6 +1431,7 @@ var OMNI_RATIOS = ["16:9", "9:16"];
|
|
|
1431
1431
|
var GROK_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3"];
|
|
1432
1432
|
var H3_RATIOS = ["21:9", "16:9", "4:3", "1:1", "3:4", "9:16"];
|
|
1433
1433
|
var H3_REFERENCE_RATIOS = ["adaptive", ...H3_RATIOS];
|
|
1434
|
+
var WAN_RATIOS = ["adaptive", "16:9", "4:3", "1:1", "3:4", "9:16"];
|
|
1434
1435
|
var NEGATIVE_PROMPT = "blur, distort, and low quality";
|
|
1435
1436
|
var FRAMES_EXCLUDE_REFERENCES = { framesExcludeReferences: true };
|
|
1436
1437
|
var KLING_PROMPT = { referenceSyntax: "numbered", maxChars: 2500 };
|
|
@@ -1441,6 +1442,7 @@ var SEEDANCE_2_AUDIO = {
|
|
|
1441
1442
|
audioMaxBytes: 15 * 1024 * 1024
|
|
1442
1443
|
};
|
|
1443
1444
|
var H3_PROMPT = { referenceSyntax: "numbered", maxChars: 5e4 };
|
|
1445
|
+
var WAN_PROMPT = { referenceSyntax: "numbered", maxChars: 2e4 };
|
|
1444
1446
|
var OMNI_PROMPT = { referenceSyntax: "caption", maxChars: 5e4 };
|
|
1445
1447
|
var BYTEDANCE_LOGO = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/3bba5d81-4e57-4e71-911b-cdfa05acca2c_compressed.png";
|
|
1446
1448
|
var GOOGLE_LOGO2 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png";
|
|
@@ -2046,6 +2048,48 @@ var VIDEO_MODELS = [
|
|
|
2046
2048
|
// references instead of the adapter silently dropping the frame.
|
|
2047
2049
|
capabilities: { ...FRAMES_EXCLUDE_REFERENCES }
|
|
2048
2050
|
},
|
|
2051
|
+
{
|
|
2052
|
+
// One row for fal's three Wan 3.0 endpoints; the adapter picks text-, image- or
|
|
2053
|
+
// reference-to-video from the inputs. Each takes aspect_ratio, so none is ignored.
|
|
2054
|
+
// https://fal.ai/models/alibaba/wan-3.0/reference-to-video/api
|
|
2055
|
+
id: "wan-3.0",
|
|
2056
|
+
aliases: ["wan-3", "wan3"],
|
|
2057
|
+
label: "Wan 3",
|
|
2058
|
+
type: "video",
|
|
2059
|
+
adapter: "fal",
|
|
2060
|
+
providerModelId: "alibaba/wan-3.0",
|
|
2061
|
+
lifecycle: "active",
|
|
2062
|
+
exposure: ["cowork", "space_builder"],
|
|
2063
|
+
constraints: {
|
|
2064
|
+
aspectRatios: [...WAN_RATIOS],
|
|
2065
|
+
resolutions: ["480p", "720p", "1080p"],
|
|
2066
|
+
durations: { min: 2, max: 30 },
|
|
2067
|
+
durationPresets: [5, 10, 15, 30],
|
|
2068
|
+
references: {
|
|
2069
|
+
images: 10,
|
|
2070
|
+
videos: 5,
|
|
2071
|
+
audios: 5,
|
|
2072
|
+
videoSeconds: { total: 15 },
|
|
2073
|
+
audioSeconds: { total: 15 }
|
|
2074
|
+
},
|
|
2075
|
+
supports: ["seed", "lastFrame", "generateAudio", "safetyChecker"],
|
|
2076
|
+
prompt: WAN_PROMPT,
|
|
2077
|
+
audio: "optional"
|
|
2078
|
+
},
|
|
2079
|
+
defaults: {
|
|
2080
|
+
durationSeconds: 5,
|
|
2081
|
+
resolution: "1080p",
|
|
2082
|
+
aspectRatio: "adaptive",
|
|
2083
|
+
generateAudio: true
|
|
2084
|
+
},
|
|
2085
|
+
usage: { ...VIDEO_USAGE },
|
|
2086
|
+
pricingKind: "video_per_second",
|
|
2087
|
+
display: {
|
|
2088
|
+
provider: "alibaba",
|
|
2089
|
+
description: "Alibaba Wan 3 video model for text-to-video, image-to-video (start/end frame), and reference-to-video from up to 10 images, 5 videos and 5 audio clips, with native audio; 2-30 seconds at up to 1080p."
|
|
2090
|
+
},
|
|
2091
|
+
capabilities: { ...FRAMES_EXCLUDE_REFERENCES, lastFrameRequiresFirstFrame: true }
|
|
2092
|
+
},
|
|
2049
2093
|
{
|
|
2050
2094
|
// Duration 3-10s per trigger-workflows mapDuration; the endpoint takes no resolution.
|
|
2051
2095
|
id: "kling-o1-v2v",
|