Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Settings: a length no route of the model's list makes offers the routes' own

Adarsh794a7f96e8b0
diff --git a/src/lib/composer.ts b/src/lib/composer.ts
index a539afed..c9df41e0 100644
--- a/src/lib/composer.ts
+++ b/src/lib/composer.ts
@@ -98,7 +98,8 @@ export function settingsShape(
aspect: !sized || shaped || op === "i2v" || op === "flf2v" || !takes.aspect ? null : many(o.aspectRatios),
// With the tiers a finishing pass reaches (MiniMax H3's 2K on your GPU: a 768p draft redrawn by Open-H3 Regenerate).
resolution: sized && takes.resolution ? many(studioResolutions(o)) : null,
- duration: params.shots || !takes.duration ? null : many(o.durations),
+ // None of the model's lengths taken here (Veo 3.1 extend makes 7 s only): the routes' own lengths are the choice.
+ duration: params.shots || !takes.duration ? null : many(takes.durations && !o.durations?.some((d) => takes.durations!.includes(d)) ? takes.durations : o.durations),
count: (kind === "image" || kind === "video") && !single,
draft: !!o.draft,
audio: o.audio === true,
diff --git a/tests/route-takes.test.ts b/tests/route-takes.test.ts
index fb4175e9..eacacb7f 100644
--- a/tests/route-takes.test.ts
+++ b/tests/route-takes.test.ts
@@ -57,6 +57,15 @@ describe("what a route sends", () => {
expect(settingUnavailable(m, "i2v", "duration", 10, takes)).toBeUndefined();
});
+ it("offers the routes' own lengths when none of the model's is taken (Veo 3.1 extend: 7 s)", () => {
+ const veo = slimModel(model("veo-3-1"));
+ const takes = opTakes(veo, "extend");
+ if (!takes.durations?.length) return; // the catalog lists no lengths for it yet
+ const shape = settingsShape(veo, "extend", "video", true);
+ const offered = shape.duration ?? [];
+ expect(offered.every((d) => takes.durations!.includes(d))).toBe(true);
+ });
+
it("knows a sound switch and a seed the route doesn't send", () => {
const vidu = model("vidu-q4");
expect(opTakes(vidu, "i2v").audio).toBe(false);