Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Studio Images: no toast when the prompt upsampler is not available (#15365)
Daniel Han16672fb9e263
diff --git a/studio/frontend/src/features/images/lib/prompt-enhance.ts b/studio/frontend/src/features/images/lib/prompt-enhance.tsindex c0bc29b43b4..39c0ad220db 100644--- a/studio/frontend/src/features/images/lib/prompt-enhance.ts+++ b/studio/frontend/src/features/images/lib/prompt-enhance.ts@@ -307,17 +307,10 @@ export function previewSignature(body: PromptUpsamplerPreviewRequest): string {return JSON.stringify([body.prompt.trim(), body.variant ?? null, refs]);}-/** Non-blocking notice after a run that asked for enhancement and did not get it, else null. */+/** Notice when the upsampler failed, else null; "unavailable" stays silent. */export function enhancementNotice(outcome: string | null | undefined,): { title: string; description: string } | null {- if (outcome === "unavailable") {- return {- title: "Prompt used as typed",- description:- "The prompt upsampler could not run (not downloaded yet, or llama.cpp is unavailable), so the prompt ran unchanged.",- };- }if (outcome === "failed") {return {title: "Prompt used as typed",diff --git a/studio/frontend/tests/image-prompt-enhance.test.ts b/studio/frontend/tests/image-prompt-enhance.test.tsindex 151b6ecf0b8..8bd4b74f403 100644--- a/studio/frontend/tests/image-prompt-enhance.test.ts+++ b/studio/frontend/tests/image-prompt-enhance.test.ts@@ -236,7 +236,7 @@ test("routes live in one place; variant and notices", () => {assert.equal(upsamplerVariantFor("flux.3-klein-base"), "base");assert.equal(upsamplerVariantFor("flux.3-klein"), "distilled");assert.equal(upsamplerVariantFor(null), "distilled");- assert.ok(enhancementNotice("unavailable"));+ assert.equal(enhancementNotice("unavailable"), null);assert.ok(enhancementNotice("failed"));assert.equal(enhancementNotice("applied"), null);assert.equal(enhancementNotice("off"), null);@@ -264,8 +264,7 @@ test("a preview caption goes stale when the prompt, the variant or a reference i);});-test("an unavailable outcome does not claim the weights are missing, and overrides offer no download", () => {- assert.match(enhancementNotice("unavailable")!.description, /llama\.cpp is unavailable/);+test("overrides offer no download", () => {const status = parsePromptUpsamplerStatus({ supported: true, downloaded: true, mmproj_downloaded: false, override: true });assert.equal(status.override, true);assert.equal(upsamplerNeedsDownload(status), false);