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
Finished runs show only the settings they were made at
Adarshdd1055b40e32
diff --git a/src/components/studio/made-note.tsx b/src/components/studio/made-note.tsxindex 061452b9..1f43d5f8 100644--- a/src/components/studio/made-note.tsx+++ b/src/components/studio/made-note.tsx@@ -1,30 +1,25 @@-import { changeLine } from "@/lib/catalog/made";import type { Generation } from "@/lib/catalog/types";import { autoLine } from "@/lib/auto-image";import { AddAutoPattern } from "@/components/add-auto-pattern";import { cn } from "@/lib/utils";-type NoteRun = Pick<Generation, "made" | "declinedCards" | "status" | "modelId" | "modelName"> & {+type NoteRun = Pick<Generation, "declinedCards" | "status" | "modelId" | "modelName"> & {request: Pick<Generation["request"], "notice" | "modelId" | "auto" | "prompt">;};/**- * Under a run (the feed card, the run details): each setting it was made at differently from what it asked, in one small- * muted line ("Quality: asked for 2K · made at 1080p (the most this model makes)"), what made a run of Auto ("Auto · made+ * Under a run (the feed card, the run details): what made a run of Auto ("Auto · made* with Krea 2 Realism · Ideogram 4 declined this one"), what changed while it ran (its notice: "Made with Qwen-Image 2.1 ·* Ideogram 4 declined this one"), and, for the owner's eyes only, what Ideogram 4 returned in place of a picture, for- * which words. Nothing when it made what it asked.+ * which words. A setting a model makes differently is said before the run, where it can still be changed; after the run+ * the views show only the value it was made at (shownSettings), never a value the studio didn't offer.*/export function MadeNote({ g, className }: { g: NoteRun; className?: string }) {- const changes = g.made?.changes ?? [];const auto = autoLine(g);const notice = g.request.notice?.trim();- if (!changes.length && !auto && !notice && !g.declinedCards?.length) return null;+ if (!auto && !notice && !g.declinedCards?.length) return null;return (- <ul className={cn("space-y-0.5 text-[11.5px] leading-snug text-pretty text-muted-foreground", className)} aria-label="Made differently from what was asked">- {changes.map((c) => (- <li key={c.setting + c.label}>{changeLine(c)}</li>- ))}+ <ul className={cn("space-y-0.5 text-[11.5px] leading-snug text-pretty text-muted-foreground", className)} aria-label="How this run was made">{auto && <li>{auto}</li>}{notice && <li>{notice}</li>}{!!g.declinedCards?.length && (diff --git a/src/lib/catalog/fitted.ts b/src/lib/catalog/fitted.tsindex 12c1981b..57c025e6 100644--- a/src/lib/catalog/fitted.ts+++ b/src/lib/catalog/fitted.ts@@ -5,7 +5,7 @@ import { OPERATION_PLACE, routeDrops, routeTakes } from "./route-takes";import { tierWords, type MadeSettings, type SettingChange } from "./made";import type { GenParams, ModelDef, ModelRoute, Operation, ProviderId } from "./types";-export { changeLine, shownSettings, tierWords, type FittedSetting, type MadeSettings, type SettingChange } from "./made";+export { shownSettings, tierWords, type FittedSetting, type MadeSettings, type SettingChange } from "./made";/** What a run is actually made at. A hosted route sends only the fields its map names and fits a value it doesn't take todiff --git a/src/lib/catalog/made.ts b/src/lib/catalog/made.tsindex ddf49f0b..25c5c908 100644--- a/src/lib/catalog/made.ts+++ b/src/lib/catalog/made.ts@@ -15,7 +15,7 @@ export interface SettingChange {/** What was asked and what is made, as shown ("2K", "1080p"; "Its own" when the setting isn't sent). */asked: string;made: string;- /** Why, short, for after a run: "the most this model makes". */+ /** Why, short: "the most this model makes" (API run records). */reason: string;/** The whole sentence, for before a run: "MiniMax H3 Max Turbo makes up to 1080p, so this is made at 1080p". */note: string;@@ -47,7 +47,3 @@ export function shownSettings(g: { request: { params?: GenParams }; made?: MadeSreturn { aspectRatio: m.aspectRatio, resolution: m.resolution && tierWords(m.resolution), duration: m.duration, seed: m.seed };}-/** "Asked for 2K · made at 1080p (the most this model makes)": one line per change, for under a finished run. */-export function changeLine(c: SettingChange): string {- return `${c.label}: asked for ${c.asked} · made at ${c.made} (${c.reason})`;-}diff --git a/tests/fitted-settings.test.ts b/tests/fitted-settings.test.tsindex 447ffa47..1e9c629c 100644--- a/tests/fitted-settings.test.ts+++ b/tests/fitted-settings.test.ts@@ -1,6 +1,6 @@import { describe, expect, it } from "vitest";import { getModel, getPreset, MODELS } from "@/lib/catalog";-import { changeLine, fittedSettings, madeOfRun, shownSettings, tierWords } from "@/lib/catalog/fitted";+import { fittedSettings, madeOfRun, shownSettings, tierWords } from "@/lib/catalog/fitted";import { buildPayload } from "@/lib/catalog/payload";import { planGeneration } from "@/lib/catalog/plan";import type { EnumField, ModelDef } from "@/lib/catalog/types";@@ -18,7 +18,7 @@ const model = (id: string): ModelDef => {const turbo = model("minimax-h3-max-turbo");describe("quality", () => {- it("a size above the most a model makes is made at its most, and says so", () => {+ it("a size above the most a model makes is made at its most, and says so before the run", () => {for (const asked of ["2K", "4K"]) {const made = fittedSettings(turbo, "t2v", { resolution: asked });expect(made.resolution).toBe("1080P");@@ -33,7 +33,8 @@ describe("quality", () => {use: "1080P",}),]);- expect(changeLine(made.changes[0])).toBe(`Quality: asked for ${asked} · made at 1080p (the most this model makes)`);+ // After the run the views show only the made value: no line about what was asked.+ expect(shownSettings({ request: { params: { resolution: asked } }, made }).resolution).toBe("1080p");}});