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
FLUX 3 Klein: a Prompt helper label that fits a phone, and the browser check of the cloud's helper and edit shape
Claude11cff44838c2
diff --git a/scripts/gen-cloud-models.py b/scripts/gen-cloud-models.pyindex 2307432d..442c26da 100644--- a/scripts/gen-cloud-models.py+++ b/scripts/gen-cloud-models.py@@ -230,7 +230,7 @@ KLEIN_LICENCE = {"licence": KLEIN_REC["license"].split(":")[0], "commercial": No# Options → Prompt helper, as on your GPU (params.extra.promptHelper, src/lib/catalog/models.ts KLEIN_PROMPT_HELPER): "off" sends# enable_prompt_expansion false (payload.ts), "on" leaves fal's default; a layout that places boxes always turns it off.KLEIN_HELPER = {"param": "promptHelper", "label": "Prompt helper", "values": ["on", "off"], "default": "on",- "labels": {"on": "On · fal writes a full caption (not with layout boxes)", "off": "Off · your words as typed"}}+ "labels": {"on": "On · full caption (not with boxes)", "off": "Off · your words as typed"}}model("flux-3-klein", "FLUX 3 Klein", "Black Forest Labs", "flux", "image","BFL's open 5.6B model, hosted: up to 4K, edits with up to 10 references in image 1's shape, layout boxes, Prompt helper · FLUX Kommunity licence",[("t2i", f"{KLEIN_FAL}/text-to-image", "fal", {"loraEndpoint": f"{KLEIN_FAL}/text-to-image/lora"}),diff --git a/src/lib/catalog/cloud-models.generated.ts b/src/lib/catalog/cloud-models.generated.tsindex 81c273d0..4fd643e8 100644--- a/src/lib/catalog/cloud-models.generated.ts+++ b/src/lib/catalog/cloud-models.generated.ts@@ -1882,7 +1882,7 @@ export const CLOUD_MODELS: ModelDef[] = [],"default": "on","labels": {- "on": "On \u00b7 fal writes a full caption (not with layout boxes)",+ "on": "On \u00b7 full caption (not with boxes)","off": "Off \u00b7 your words as typed"}}@@ -2037,7 +2037,7 @@ export const CLOUD_MODELS: ModelDef[] = [],"default": "on","labels": {- "on": "On \u00b7 fal writes a full caption (not with layout boxes)",+ "on": "On \u00b7 full caption (not with boxes)","off": "Off \u00b7 your words as typed"}}diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.tsindex 1451c845..2d0cdfb2 100644--- a/src/lib/catalog/models.ts+++ b/src/lib/catalog/models.ts@@ -88,7 +88,7 @@ const KLEIN_PROMPT_HELPER: NonNullable<ModelOptions["controls"]>[number] = {label: "Prompt helper",values: ["on", "off"],default: "on",- labels: { on: "On · writes a full caption (not with layout boxes)", off: "Off · your words as typed" },+ labels: { on: "On · full caption (not with boxes)", off: "Off · your words as typed" },};type OpenSpec = Omit<ModelDef, "engine" | "badges"> & { badges?: ModelDef["badges"] };diff --git a/tests/e2e/flux3-klein.mjs b/tests/e2e/flux3-klein.mjsindex 6ce8f93c..56b105f7 100644--- a/tests/e2e/flux3-klein.mjs+++ b/tests/e2e/flux3-klein.mjs@@ -190,8 +190,7 @@ try {const helper = page.getByRole("combobox", { name: "Prompt helper" });await helper.waitFor({ timeout: 10_000 });const hbox = await helper.boundingBox();- const on = engine === "open" ? /On · writes a full caption \(not with layout boxes\)/ : /On · fal writes a full caption \(not with layout boxes\)/;- check(`${tag} ${engine}: Options shows the Prompt helper, on by default, layout boxes named`, on.test(flat(await helper.innerText())), flat(await helper.innerText()));+ check(`${tag} ${engine}: Options shows the Prompt helper, on by default, layout boxes named`, /On · full caption \(not with boxes\)/.test(flat(await helper.innerText())), flat(await helper.innerText()));// The words read in full: the text is no wider than the box that shows it.const cut = await helper.evaluate((b) => {const v = b.querySelector('[data-slot="select-value"]') ?? b;diff --git a/tests/flux3-klein.test.ts b/tests/flux3-klein.test.tsindex 42345a26..77eb3d5f 100644--- a/tests/flux3-klein.test.ts+++ b/tests/flux3-klein.test.ts@@ -406,7 +406,7 @@ describe("fal's FLUX 3 Klein Prompt helper, as on your GPU", () => {for (const m of [cloud, base, getModel("oss-flux3-klein")!, getModel("oss-flux3-klein-base")!]) {const helper = m.options.controls?.find((c) => c.param === "promptHelper");expect(helper, m.id).toMatchObject({ label: "Prompt helper", values: ["on", "off"], default: "on" });- expect(helper!.labels!.on, m.id).toMatch(/full caption \(not with layout boxes\)$/);+ expect(helper!.labels!.on, m.id).toBe("On · full caption (not with boxes)");expect(helper!.labels!.off).toBe("Off · your words as typed");}});