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
feat(recipe-studio): add HF repo ID inference and reset logic for HF state
Shine1i0166cb6d384f
diff --git a/.gitignore b/.gitignoreindex 8b54712a6ce..0d0e7d1133b 100755--- a/.gitignore+++ b/.gitignore@@ -7,6 +7,7 @@ __pycache__/*$py.class*.so.Python+*.egg-info/# Virtual environments.venv/diff --git a/studio/frontend/src/features/recipe-studio/hooks/use-recipe-persistence.ts b/studio/frontend/src/features/recipe-studio/hooks/use-recipe-persistence.tsindex 4546deb1300..099dfb2f6b9 100644--- a/studio/frontend/src/features/recipe-studio/hooks/use-recipe-persistence.ts+++ b/studio/frontend/src/features/recipe-studio/hooks/use-recipe-persistence.ts@@ -64,6 +64,23 @@ function stripApiKeys(value: unknown): unknown {return output;}+function inferHfRepoIdFromPath(pathValue: unknown): string {+ if (typeof pathValue !== "string") {+ return "";+ }+ const parts = pathValue+ .trim()+ .split("/")+ .filter(Boolean);+ if (parts.length >= 3 && parts[0] === "datasets") {+ return `${parts[1]}/${parts[2]}`;+ }+ if (parts.length >= 2) {+ return `${parts[0]}/${parts[1]}`;+ }+ return "";+}+function sanitizeSeedForShare(payload: unknown): unknown {if (!payload || typeof payload !== "object") {return payload;@@ -95,12 +112,28 @@ function sanitizeSeedForShare(payload: unknown): unknown {typeof ui?.seed_source_type === "string" ? ui.seed_source_type : null;const sourceType =typeof source?.seed_type === "string" ? source.seed_type : null;+ const shouldResetHfState =+ sourceType === "hf" || uiSourceType === "hf";const shouldResetLocalState =sourceType === "local" ||sourceType === "unstructured" ||uiSourceType === "local" ||uiSourceType === "unstructured";+ if (shouldResetHfState) {+ const repoId = inferHfRepoIdFromPath(source?.path);+ if (source && "path" in source) {+ source.path = repoId;+ }+ if (ui) {+ ui.seed_columns = [];+ ui.seed_drop_columns = [];+ ui.seed_preview_rows = [];+ ui.local_file_name = "";+ ui.unstructured_file_name = "";+ }+ }+if (shouldResetLocalState) {if (source && "path" in source) {source.path = "";