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
UX: single chat header error placement and selector alignment (#5173)
Lee Jackson2469ac885bb0
diff --git a/studio/frontend/src/components/assistant-ui/model-selector.tsx b/studio/frontend/src/components/assistant-ui/model-selector.tsxindex 3628252177a..679034c9fae 100644--- a/studio/frontend/src/components/assistant-ui/model-selector.tsx+++ b/studio/frontend/src/components/assistant-ui/model-selector.tsx@@ -66,7 +66,7 @@ function ModelSelectorTrigger({type="button"data-tour={dataTour}className={cn(- "flex items-center gap-2 transition-colors",+ "flex min-w-0 items-center gap-2 transition-colors",variant === "outline" &&"rounded-[8px] border border-border/60 hover:bg-[#ececec] dark:hover:bg-[#2e3035]",variant === "ghost" && "rounded-[8px] hover:bg-[#ececec] dark:hover:bg-[#2e3035]",@@ -80,17 +80,23 @@ function ModelSelectorTrigger({{isLoaded && (<span className="size-2 shrink-0 rounded-full bg-emerald-500" />)}- <span className="font-heading font-medium text-[16px] text-black dark:text-white">- {currentModel?.name ?? "Select model"}+ <span className="flex min-w-0 flex-1 items-baseline gap-2">+ <span className="min-w-0 flex-1 truncate font-heading text-[16px] font-medium leading-none text-black dark:text-white">+ {currentModel?.name ?? "Select model"}+ </span>+ {currentModel?.description && (+ <span className="shrink-0 text-xs leading-none text-muted-foreground">+ {currentModel.description}+ </span>+ )}+ </span>+ <span className="flex size-4 shrink-0 items-center justify-center">+ <HugeiconsIcon+ icon={ArrowDown01Icon}+ strokeWidth={1.75}+ className="relative top-0.5 size-3.5 text-muted-foreground"+ /></span>- {currentModel?.description && (- <span className="text-muted-foreground text-xs">{currentModel.description}</span>- )}- <HugeiconsIcon- icon={ArrowDown01Icon}- strokeWidth={1.75}- className="size-3.5 shrink-0 text-muted-foreground"- /></button></PopoverTrigger>);diff --git a/studio/frontend/src/features/chat/chat-page.tsx b/studio/frontend/src/features/chat/chat-page.tsxindex 9987af230b3..e3239f7cc1d 100644--- a/studio/frontend/src/features/chat/chat-page.tsx+++ b/studio/frontend/src/features/chat/chat-page.tsx@@ -886,7 +886,7 @@ export function ChatPage(): ReactElement {onOpenChange={handleModelSelectorOpenChange}triggerDataTour="chat-model-selector"contentDataTour="chat-model-selector-popover"- className="max-w-[62vw] sm:max-w-none !h-[34px]"+ className="max-w-[62vw] !pr-3 sm:max-w-none !h-[34px]"/>)}{loadingModel && loadToastDismissed ? (@@ -910,12 +910,17 @@ export function ChatPage(): ReactElement {onStop={cancelLoading}/>) : null}+ {!loadingModel && modelsError ? (+ <div+ className="relative top-0.5 max-w-[28rem] truncate pl-0.5 text-xs text-destructive"+ title={modelsError}+ role="status"+ aria-live="polite"+ >+ {modelsError}+ </div>+ ) : null}</div>- {modelsError && (- <div className="ml-2 text-xs text-destructive truncate max-w-[28rem]">- {modelsError}- </div>- )}<div className="ml-auto flex items-center gap-2">{view.mode === "single" && ggufContextLength && contextUsage ? (<ContextUsageBar