Skip to content

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.

Studio: top-level Models block group in picker (#10736)

Sourav Rajvif48ce8494e65
diff --git a/studio/frontend/src/features/recipe-studio/components/block-sheet.tsx b/studio/frontend/src/features/recipe-studio/components/block-sheet.tsx
index 6545d904622..d1c78487b26 100644
--- a/studio/frontend/src/features/recipe-studio/components/block-sheet.tsx
+++ b/studio/frontend/src/features/recipe-studio/components/block-sheet.tsx
@@ -19,6 +19,7 @@ import {
DocumentAttachmentIcon,
PlusSignIcon,
Search01Icon,
+ Settings02Icon,
Upload01Icon,
} from "@hugeicons/core-free-icons";
import {
@@ -52,6 +53,7 @@ type SheetView =
| "sampler"
| "seed"
| "llm"
+ | "model"
| "validator"
| "expression"
| "note"
@@ -122,6 +124,9 @@ function getSheetTitle(sheetView: SheetView): string {
if (sheetView === "processor") {
return "Processor blocks";
}
+ if (sheetView === "model") {
+ return "Models";
+ }
return "AI generation";
}
@@ -130,6 +135,7 @@ const VIEW_KIND: Record<SheetView, SheetKind | null> = {
sampler: "sampler",
seed: "seed",
llm: "llm",
+ model: "llm",
validator: "validator",
expression: "expression",
note: "note",
@@ -137,8 +143,16 @@ const VIEW_KIND: Record<SheetView, SheetKind | null> = {
};
const ROOT_GROUPS: RootGroup[] = [...BLOCK_GROUPS];
+const MODEL_ROOT_GROUP: RootGroup = {
+ kind: "model",
+ title: "Models",
+ description: "Connect a provider and pick which model powers your AI steps.",
+ icon: Settings02Icon,
+};
+const MODEL_SETUP_TYPES = new Set<BlockType>(["model_provider", "model_config"]);
const ROOT_GROUPS_WITH_SEED_FIRST: RootGroup[] = [
...ROOT_GROUPS.filter((group) => group.kind === "seed"),
+ MODEL_ROOT_GROUP,
...ROOT_GROUPS.filter((group) => group.kind !== "seed"),
];
const SEARCHABLE_KINDS: SheetKind[] = [
@@ -295,7 +309,11 @@ export function BlockSheet({
if (!isScopedBlockView) {
return [];
}
- const blocks = getBlocksForKind(VIEW_KIND[sheetView] ?? "sampler");
+ const kindBlocks = getBlocksForKind(VIEW_KIND[sheetView] ?? "sampler");
+ const blocks =
+ sheetView === "model"
+ ? kindBlocks.filter((item) => MODEL_SETUP_TYPES.has(item.type))
+ : kindBlocks;
if (!hasSearch) {
return blocks;
}
@@ -329,8 +347,12 @@ export function BlockSheet({
if (group.kind === "processor") {
return matchesSearch(PROCESSOR_TITLE, PROCESSOR_DESCRIPTION);
}
- return getBlocksForKind(group.kind).some((item) =>
- matchesSearch(item.title, item.description),
+ const blockKind = VIEW_KIND[group.kind];
+ return (
+ blockKind !== null &&
+ getBlocksForKind(blockKind).some((item) =>
+ matchesSearch(item.title, item.description),
+ )
);
});
}, [hasSearch, matchesSearch]);
diff --git a/studio/frontend/src/features/recipe-studio/stores/recipe-studio.ts b/studio/frontend/src/features/recipe-studio/stores/recipe-studio.ts
index 2ccad7207a2..cb3d55c53dd 100644
--- a/studio/frontend/src/features/recipe-studio/stores/recipe-studio.ts
+++ b/studio/frontend/src/features/recipe-studio/stores/recipe-studio.ts
@@ -56,6 +56,7 @@ type SheetView =
| "sampler"
| "seed"
| "llm"
+ | "model"
| "validator"
| "expression"
| "note"