Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions schemas/videoasset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@
type: string
minLength: 1
example: https://s3-ap-northeast-1.amazonaws.com/my-bucket/input-image.jpg
seed:
deprecated: true
description: >-
**Deprecated — use `inputSrc`.** Legacy alias for the image-to-video
input image URL, accepted and normalised to `inputSrc` on ingest. The
name is misleading — industry-wide `seed` means an integer RNG sampling
seed — and will be removed in a future major version.
type: string
minLength: 1
example: https://s3-ap-northeast-1.amazonaws.com/my-bucket/seed-image.jpg
model:
description: >-
The generation model to use when `prompt` is set (e.g. `luma-ray-3`,
Expand Down
17 changes: 9 additions & 8 deletions tests/smoke.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,14 @@ async function run() {
assert.strictEqual(result.model, "luma-ray-3");
});

check("Parse videoAsset with deprecated seed alias (still accepted for back-compat)", () => {
const result = zodCjs.videoAssetSchema.parse({
type: "video",
prompt: "Camera pans right",
seed: "https://example.com/seed.jpg",
});
assert.strictEqual(result.seed, "https://example.com/seed.jpg");
check("REJECT videoAsset with removed `seed` field (use inputSrc instead)", () => {
assert.throws(() =>
zodCjs.videoAssetSchema.parse({
type: "video",
prompt: "Camera pans right",
seed: "https://example.com/seed.jpg",
})
);
});

check("Parse audioAsset with prompt + voice", () => {
Expand Down Expand Up @@ -321,7 +322,7 @@ async function run() {
);
});

check("REJECT video with deprecated seed but no src and no prompt (alias is a modifier)", () => {
check("REJECT video with removed `seed` field and no src/prompt (seed no longer recognized)", () => {
assert.throws(() =>
zodCjs.videoAssetSchema.parse({ type: "video", seed: "https://example.com/seed.jpg" })
);
Expand Down
Loading