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
Tests: make image-engine-choice and image-mask-from-text typecheck (#14272)
Daniel Hanbf22118c9877
diff --git a/studio/frontend/tests/image-engine-choice.test.ts b/studio/frontend/tests/image-engine-choice.test.tsindex 604879daa93..a9188150004 100644--- a/studio/frontend/tests/image-engine-choice.test.ts+++ b/studio/frontend/tests/image-engine-choice.test.ts@@ -302,7 +302,8 @@ test("a background load that fails reseeds the Engine select, like a refused statest("a reload from status keeps the resident GGUF's base repo, on the load and the plan", () => {const gguf = { loaded: true, model_kind: "gguf", repo_id: "org/klein-GGUF", gguf_filename: "klein-Q4.gguf", base_repo: "org/custom-base" };assert.equal(residentReloadTarget(gguf)?.baseRepo, "org/custom-base");- assert.equal(nativeReloadTarget(null, gguf)?.baseRepo, "org/custom-base");+ // With no last load T has no baseRepo, so name it: the status-built target is the branch that carries one.+ assert.equal(nativeReloadTarget<{ repoId: string; baseRepo?: string }>(null, gguf)?.baseRepo, "org/custom-base");assert.equal("baseRepo" in (residentReloadTarget({ ...gguf, base_repo: null }) ?? {}), false);const source = readSrc("features/images/images-page.tsx");assert.equal(source.match(/base_repo: opts\.baseRepo,/g)?.length, 2);diff --git a/studio/frontend/tests/image-mask-from-text.test.ts b/studio/frontend/tests/image-mask-from-text.test.tsindex d7ed33aeae3..ba301c7fff3 100644--- a/studio/frontend/tests/image-mask-from-text.test.ts+++ b/studio/frontend/tests/image-mask-from-text.test.ts@@ -233,7 +233,9 @@ test("a text mask that went stale while it decoded never touches the reused canv});live = false; // Clear, a new source or a newer mask before the decode finishedassert.equal(await stale, null);- assert.deepEqual(calls, []);+ // Not deepEqual(calls, []): strict assert narrows calls to never[] after it, so the later includes() checks+ // stop typechecking.+ assert.equal(calls.length, 0);const fresh = await applyMaskToLayer({layer: canvas(),display: canvas(),