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.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Tests: follow the studios' current default models
Adarsh37c45bb9b332
diff --git a/tests/assist-runtime.test.ts b/tests/assist-runtime.test.tsindex 107c6e6b..612538cf 100644--- a/tests/assist-runtime.test.ts+++ b/tests/assist-runtime.test.ts@@ -47,8 +47,8 @@ describe("offline planner (U18)", () => {// MiniMax H3, the Video studio's default, makes one shot a clip: a 3-shot clip runs on the next model in Best that cuts shots.expect(jobs[1]).toMatchObject({ model_id: "seedance-2-5", after: 0, shots: 3 });expect(p.say).toMatch(/still first, then animate it as a 3-shot clip/);- // The open engine picks the open defaults (the Image studio's is Ideogram 4).- expect((agent.offlinePlan("A photo of a lighthouse, then animate it", "open")!.input as { jobs: { model_id: string }[] }).jobs.map((j) => j.model_id)).toEqual(["oss-ideogram-4", "oss-minimax-h3"]);+ // The open engine picks the open defaults (the Image studio's is Auto).+ expect((agent.offlinePlan("A photo of a lighthouse, then animate it", "open")!.input as { jobs: { model_id: string }[] }).jobs.map((j) => j.model_id)).toEqual(["oss-auto-image", "oss-minimax-h3"]);});it("reads 'N portraits' as N takes and 'N-shot' video as one multi-shot clip", () => {diff --git a/tests/assist-suggestions.test.ts b/tests/assist-suggestions.test.tsindex 7dcb2ba5..c29b2ebc 100644--- a/tests/assist-suggestions.test.ts+++ b/tests/assist-suggestions.test.ts@@ -53,7 +53,7 @@ describe("Assist's suggestion chips on the offline planner (R4-04)", () => {expect(plan.jobs).toMatchObject([{ kind: "image", op: "t2i", count: 4 }]);// The same request with a plural noun and a "best one" also asks.const fox = agent.offlinePlan("Make 3 portraits of a fox in a trench coat, then animate the best one into a 5 s video", "open")!;- expect(jobsOf(fox)).toEqual([expect.objectContaining({ model_id: "oss-ideogram-4", outputs: 3, prompt: "Portrait of a fox in a trench coat" })]);+ expect(jobsOf(fox)).toEqual([expect.objectContaining({ model_id: "oss-auto-image", outputs: 3, prompt: "Portrait of a fox in a trench coat" })]);// "… then animate them": every still gets its own clip.const all = agent.offlinePlan("Two posters of a jazz club, then animate them", "cloud")!;expect(jobsOf(all).map((j) => [j.model_id, j.after])).toEqual([@@ -162,7 +162,7 @@ describe("picking a take", () => {await agent.run(t.id, agent.offline);let v = agent.getThread(t.id)!;expect(v.generations).toHaveLength(4);- expect(v.generations.every((g) => g.request.modelId === "oss-ideogram-4")).toBe(true);+ expect(v.generations.every((g) => g.request.modelId === "oss-auto-image")).toBe(true);// Done out of order: the numbers follow the order they were started in, like the chat shows them.for (const g of [...v.generations].reverse()) {db()diff --git a/tests/cli-api.test.ts b/tests/cli-api.test.tsindex 0daba4ba..aaf96fef 100644--- a/tests/cli-api.test.ts+++ b/tests/cli-api.test.ts@@ -16,6 +16,7 @@ const { GET: listModels } = await import("@/app/api/models/route");const { POST: postGeneration } = await import("@/app/api/generations/route");const { listGenerations } = await import("@/server/generations");const { setSetting } = await import("@/server/settings");+const { asOwnRequest } = await import("@/server/api-caller");// Placeholders where nothing is connected, as the studio once did by default ("auto": code in this process only).beforeAll(() => setSetting("demoMode", "auto"));@@ -61,13 +62,13 @@ describe("GET /api/models", () => {});it("names the studios' default models, and follows the engine mode", async () => {- expect((await models()).body.defaults).toMatchObject({ image: { cloud: "nano-banana-pro", open: "oss-ideogram-4" }, video: { cloud: "minimax-h3", open: "oss-minimax-h3" } });+ expect((await models()).body.defaults).toMatchObject({ image: { cloud: "nano-banana-pro", open: "oss-auto-image" }, video: { cloud: "minimax-h3", open: "oss-minimax-h3" } });setSetting("engineMode", "open");try {const { body } = await models("?kind=image");expect(body.engineMode).toBe("open");expect(body.items.every((m) => m.engine === "open")).toBe(true);- expect(body.defaults.image).toEqual({ open: "oss-ideogram-4" });+ expect(body.defaults.image).toEqual({ open: "oss-auto-image" });} finally {setSetting("engineMode", "both");}@@ -158,7 +159,8 @@ describe("POST /api/generations?preview=1", () => {});describe("POST /api/generations: where an owner's run came from", () => {- const send = (body: unknown, headers: Record<string, string> = {}) => postGeneration(new Request("http://localhost/api/generations", { method: "POST", headers, body: JSON.stringify(body) }));+ // Each call is a request of its own, as on a server: a token one request was sent with never marks the next.+ const send = (body: unknown, headers: Record<string, string> = {}) => asOwnRequest(() => postGeneration(new Request("http://localhost/api/generations", { method: "POST", headers, body: JSON.stringify(body) })));const stored = (id: string) => listGenerations({ limit: 200, steps: true }).find((g) => g.id === id)!.request;const idOf = async (res: Response) => {expect(res.status).toBeLessThan(300);diff --git a/tests/flux3-klein.test.ts b/tests/flux3-klein.test.tsindex 65fdb997..4b4a8dc0 100644--- a/tests/flux3-klein.test.ts+++ b/tests/flux3-klein.test.ts@@ -248,10 +248,10 @@ describe("FLUX 3 Klein in the catalog, both engines", () => {});it("sits in the Image studio's Best list on your GPU, beside Ideogram 4 and Qwen-Image 2.1; the Edit studio offers it outside its Best list", () => {- expect(IMAGE_STUDIO.defaultModels).toEqual({ cloud: "nano-banana-pro", open: "oss-ideogram-4" });+ expect(IMAGE_STUDIO.defaultModels).toEqual({ cloud: "nano-banana-pro", open: "oss-auto-image" });expect(EDIT_STUDIO.defaultModels).toEqual({ cloud: "nano-banana-pro", open: "oss-qwen-image-21" });const image = studioBest(filterModels(MODELS, { kind: "image", ops: IMAGE_STUDIO.pickerOps }), "open", IMAGE_STUDIO.defaultModels.open, IMAGE_STUDIO.ops);- expect(image.slice(0, 3)).toEqual(["oss-ideogram-4", "oss-qwen-image-21", "oss-flux3-klein"]);+ expect(image.slice(0, 4)).toEqual(["oss-auto-image", "oss-ideogram-4", "oss-qwen-image-21", "oss-flux3-klein"]);const editable = filterModels(MODELS, { kind: "image", ops: EDIT_STUDIO.ops });expect(editable.map((m) => m.id)).toContain("oss-flux3-klein");const edit = studioBest(editable, "open", EDIT_STUDIO.defaultModels.open, EDIT_STUDIO.ops);diff --git a/tests/gpu-api.test.ts b/tests/gpu-api.test.tsindex 25d58609..c90b44c8 100644--- a/tests/gpu-api.test.ts+++ b/tests/gpu-api.test.ts@@ -32,8 +32,8 @@ const generations = await import("@/app/api/generations/route");const idx = loadIndex();const Z = "z-image-turbo-t2i";-/** The Image studio's default on your GPU (Ideogram 4: 24 GB, ComfyUI 0.42.0). */-const I4 = "ideogram4-t2i";+/** The Image studio's default on your GPU: Auto, whose routes are Krea 2 Realism's (words) and Qwen-Image 2.1's (edits). */+const AUTO = ["krea2-realism-t2i", "qwen-image-21-edit"];const fakes: FakeComfy[] = [];afterAll(async () => {globalThis.__fuobeGpuTestTransport = undefined;@@ -101,7 +101,7 @@ describe("an account", () => {it("checks its own GPU only, streams the lines, then the board, reads only, and writes an audit row", async () => {const big = { version: "0.42.1", devices: [{ name: "cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync", type: "cuda", vramGb: 24 }] };- const f = await fake(readyFor(idx, [Z, I4], { manager: { api: "v4", installed: {} }, argv: ["main.py", "--enable-manager"], ...big }));+ const f = await fake(readyFor(idx, [Z, ...AUTO], { manager: { api: "v4", installed: {} }, argv: ["main.py", "--enable-manager"], ...big }));const { cookie, id } = account(f);const { res, events } = await runCheck(cookie);expect(res.status).toBe(200);