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: engine versions and updates in Settings, Use via API for Images and Video, shorter Notifications, rounder waveforms (#14590)
Michael Hane24fa71e1bee
diff --git a/studio/frontend/scripts/check-bundle-budget.ts b/studio/frontend/scripts/check-bundle-budget.tsindex 4ca083dfb6e..ed5b6d1dfc0 100644--- a/studio/frontend/scripts/check-bundle-budget.ts+++ b/studio/frontend/scripts/check-bundle-budget.ts@@ -365,10 +365,10 @@ export const BUDGET = {// Shortcut fixes (#14597): stop action, isModEnter, zoom guard and strings in the eager locales:// +3,339 B raw / +1,727 B transfer (6,881,936 -> 6,885,275 B raw,// 2,073,188 -> 2,074,915 B transfer against b2ba86a514, Node 26, 98 chunks). Raised by that.- // Run settings save state and Advanced groups (#14589) merged with main at 8bcbf837bd: 6,725.4 KB raw /- // 2,026.7 KB transfer (Node 24, 98 chunks). Raised to that plus about 200 B.- transferBytes: 2_075_550,- rawBytes: 6_887_000,+ // #14590 (eager locale strings, help entry, API buttons, update card close) merged with main at 356721b31e:+ // 6,729.6 KB raw / 2,027.3 KB transfer (Node 24, 98 chunks). Raised to that plus about 200 B.+ transferBytes: 2_076_150,+ rawBytes: 6_891_300,};// The chunk count is reported but not budgeted. Splitting a page out of the entry raises it while lowering thediff --git a/studio/frontend/src/components/app-sidebar.tsx b/studio/frontend/src/components/app-sidebar.tsxindex 87bb1eef411..ca46c9d1aaf 100644--- a/studio/frontend/src/components/app-sidebar.tsx+++ b/studio/frontend/src/components/app-sidebar.tsx@@ -106,6 +106,7 @@ import {CpuIcon,CursorInfo02Icon,DashboardCircleIcon,+ DashboardSquareEditIcon,Delete02Icon,Download01Icon,Edit03Icon,@@ -6809,6 +6810,18 @@ export function AppSidebar() {alignEnd={true}className="unsloth-plus-menu sidebar-row-menu sidebar-menu w-56">+ {/* Pinned here rather than among the shortcuts above, which it can hide. */}+ <DropdownMenuItem+ onSelect={() =>+ useSettingsDialogStore.getState().openDialog("appearance", {+ scrollTarget: "appearance-sidebar-nav",+ })+ }+ >+ <HugeiconsIcon icon={DashboardSquareEditIcon} strokeWidth={1.75} className="size-icon" />+ <span>{t("shell.navigation.customizeSidebar")}</span>+ </DropdownMenuItem>+ <DropdownMenuSeparator />{HELP_GROUPS.map((group, index) => (<DropdownMenuGroup key={group[0]}>{index > 0 && <DropdownMenuSeparator />}diff --git a/studio/frontend/src/components/llama-update-banner.tsx b/studio/frontend/src/components/llama-update-banner.tsxindex e0d3efbb6f9..4e87ba5b0d0 100644--- a/studio/frontend/src/components/llama-update-banner.tsx+++ b/studio/frontend/src/components/llama-update-banner.tsx@@ -31,7 +31,7 @@ import {} from "@/lib/llama-job-lifecycle";import { toast } from "@/lib/toast";import { cn } from "@/lib/utils";-import { Download } from "lucide-react";+import { Download, X } from "lucide-react";import {type CSSProperties,type MouseEvent,@@ -354,8 +354,8 @@ export function LlamaUpdateBanner({// detail is 0 for Enter or Space, so only keyboard users get focus moved to Undo.fromKeyboard: event.detail === 0,message: skippedTag- ? `Skipped ${label} ${skippedTag}`- : `Skipped the ${label} ${bundled ? "updates" : "update"}`,+ ? `Skipped ${label} ${skippedTag} for now`+ : `Skipped the ${label} ${bundled ? "updates" : "update"} for now`,});}// show the backend pair when a migration has no version change.@@ -484,7 +484,19 @@ export function LlamaUpdateBanner({>{/* fill the height floor even when the changelog content is short. */}<div className="relative flex max-h-[calc(100dvh_-_2rem_-_var(--studio-window-chrome-top,0px))] min-h-0 grow flex-col overflow-hidden rounded-[24px] bg-white px-5 pb-4 pt-5 shadow-[0_2px_8px_-2px_rgba(0,0,0,0.16)] dark:bg-card dark:shadow-[0_8px_28px_-6px_var(--background)]">- <div className="flex min-w-0 shrink-0 items-start gap-4">+ {/* Hides the card until the app is reopened, the same skip What's new offers. */}+ {applying ? null : (+ <button+ type="button"+ onClick={handleSkip}+ aria-label={`Hide the ${label} ${bundled ? "updates" : "update"} until Unsloth is reopened`}+ className="absolute right-3 top-3 flex size-7 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"+ data-testid="llama-update-close-button"+ >+ <X aria-hidden="true" className="size-4" strokeWidth={2} />+ </button>+ )}+ <div className="flex min-w-0 shrink-0 items-start gap-4 pr-6"><Downloadaria-hidden="true"className="mt-1 size-5 shrink-0 text-foreground"diff --git a/studio/frontend/src/components/media-api-button.tsx b/studio/frontend/src/components/media-api-button.tsxnew file mode 100644index 00000000000..d5793dfb98d--- /dev/null+++ b/studio/frontend/src/components/media-api-button.tsx@@ -0,0 +1,51 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0++import { ApiIcon } from "@hugeicons/core-free-icons";+import { HugeiconsIcon } from "@hugeicons/react";++import {+ Tooltip,+ TooltipContent,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { publicModelId } from "@/features/hub";+import { useSettingsDialogStore } from "@/features/settings";+import { useT } from "@/i18n";++export function MediaApiButton({+ kind,+ model,+}: {+ kind: "images" | "video";+ model: string | null;+}) {+ const t = useT();+ const label = t("settings.apiKeys.audioApi.useViaApi");+ return (+ <Tooltip>+ <TooltipTrigger asChild={true}>+ <button+ type="button"+ aria-label={label}+ onClick={() =>+ useSettingsDialogStore.getState().openMediaApi({+ kind,+ // /v1 names a model by its public id.+ model: model ? publicModelId(model) : null,+ })+ }+ className="flex h-[calc(34px*var(--ui-space-scale,1))] shrink-0 items-center gap-1.5 rounded-full px-2.5 text-ui-13 font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"+ >+ <HugeiconsIcon icon={ApiIcon} className="size-4 shrink-0" />+ <span className="hidden whitespace-nowrap @[84rem]:inline">+ {label}+ </span>+ </button>+ </TooltipTrigger>+ <TooltipContent side="bottom" sideOffset={6} className="tooltip-compact">+ {label}+ </TooltipContent>+ </Tooltip>+ );+}diff --git a/studio/frontend/src/features/audio/components/ab-compare.tsx b/studio/frontend/src/features/audio/components/ab-compare.tsxindex b8e28bdda6c..8075e370a4a 100644--- a/studio/frontend/src/features/audio/components/ab-compare.tsx+++ b/studio/frontend/src/features/audio/components/ab-compare.tsx@@ -16,7 +16,8 @@ import {resumeAfterLoad,switchSide,} from "./ab-compare-state";-import { WAVEFORM_BARS, computePeaks, formatSeconds } from "./waveform-peaks";+import { PlaybackTime, WaveformBarGlyphs } from "./waveform";+import { computePeaks, formatSeconds } from "./waveform-peaks";const SEEK_STEP_SECONDS = 5;// Decoding holds every sample in memory; past this the bars stay flat.@@ -114,7 +115,6 @@ export function ABCompare({const fraction = duration > 0 ? Math.min(1, ab.position / duration) : 0;const barsSrc = ab.side === "original" ? originalBarsSrc : editedBarsSrc;const bars = barsSrc ? (peaks[barsSrc] ?? null) : null;- const count = bars?.length ?? WAVEFORM_BARS;const src = current.src;// A new pair resets the player; the Original's object URL arriving late does not.@@ -225,42 +225,12 @@ export function ABCompare({seekTo(((event.clientX - box.left) / box.width) * duration);}}>- <svg- aria-hidden="true"- className="size-full"- viewBox={`0 0 ${count * 3} 32`}- preserveAspectRatio="none"- >- {Array.from({ length: count }, (_, index) => {- const peak = bars ? (bars[index] ?? 0) : 0;- // A floor keeps silence visible as a line rather than a gap.- const height = Math.max(2, peak * 30);- const played = (index + 0.5) / count <= fraction;- return (- <rect- // biome-ignore lint/suspicious/noArrayIndexKey: bars are positional and never reorder.- key={index}- x={index * 3 + 0.5}- y={(32 - height) / 2}- width={2}- height={height}- rx={1}- className={cn(- "fill-current",- played && ab.position > 0- ? "text-foreground"- : "text-muted-foreground",- bars ? "opacity-100" : "opacity-40",- )}- />- );- })}- </svg>+ <WaveformBarGlyphs+ peaks={bars}+ isPlayed={(at) => ab.position > 0 && at <= fraction}+ /></div>- <span className="shrink-0 font-mono text-ui-11p5 tabular-nums text-muted-foreground">- {ab.position > 0 ? `${formatSeconds(ab.position)} / ` : ""}- {formatSeconds(duration)}- </span>+ <PlaybackTime position={ab.position} duration={duration} /></div>{src ? (// biome-ignore lint/a11y/useMediaCaption: speech clips have no caption track; the clip's text is shown beside it.diff --git a/studio/frontend/src/features/audio/components/audio-source-input.tsx b/studio/frontend/src/features/audio/components/audio-source-input.tsxindex 6e52833ab7f..2fc528fc200 100644--- a/studio/frontend/src/features/audio/components/audio-source-input.tsx+++ b/studio/frontend/src/features/audio/components/audio-source-input.tsx@@ -215,7 +215,7 @@ export function AudioSourceInput({if (file) void source.pickFile(file);}}className={cn(- "corner-squircle grid gap-3 rounded-4xl bg-card p-4 ring-1 outline-none transition-colors duration-150 focus-visible:ring-2 focus-visible:ring-ring",+ "corner-squircle grid gap-3 rounded-lg bg-card p-4 ring-1 outline-none transition-colors duration-150 focus-visible:ring-2 focus-visible:ring-ring",dragging? "bg-accent ring-[color-mix(in_oklab,var(--foreground)_calc(40%*var(--contrast-edge-gain,1)),transparent)]": "ring-[color-mix(in_oklab,var(--foreground)_calc(10%*var(--contrast-edge-gain,1)),transparent)]",@@ -388,7 +388,7 @@ export function AudioSourceInput({type="button"disabled={disabled}onClick={() => fileRef.current?.click()}- className="flex min-h-[calc(88px*var(--ui-space-scale,1))] flex-col items-center justify-center gap-1 rounded-xl border border-dashed border-border px-3 text-ui-12 text-muted-foreground transition-colors hover:border-[color-mix(in_oklab,var(--foreground)_calc(30%*var(--contrast-edge-gain,1)),transparent)] hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"+ className="flex min-h-[calc(88px*var(--ui-space-scale,1))] flex-col items-center justify-center gap-1 rounded-[10px] border border-dashed border-border px-3 text-ui-12 text-muted-foreground transition-colors hover:border-[color-mix(in_oklab,var(--foreground)_calc(30%*var(--contrast-edge-gain,1)),transparent)] hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"><HugeiconsIcon icon={Upload04Icon} className="size-5" /><span>Drop an audio file here, or choose one</span>diff --git a/studio/frontend/src/features/audio/components/clip-card.tsx b/studio/frontend/src/features/audio/components/clip-card.tsxindex 88a119d06dd..a7de0b52d40 100644--- a/studio/frontend/src/features/audio/components/clip-card.tsx+++ b/studio/frontend/src/features/audio/components/clip-card.tsx@@ -47,7 +47,7 @@ export function ClipSendToMenu({ handlers }: { handlers: ClipSendHandlers }) {);}-const CARD_CLASS = "w-full max-w-xl gap-3 px-5 py-4";+const CARD_CLASS = "w-full max-w-xl gap-3 rounded-xl px-5 py-4";/** never autoplays; a new clip focuses its play button once. */export function ClipCard({diff --git a/studio/frontend/src/features/audio/components/instructions-fields.tsx b/studio/frontend/src/features/audio/components/instructions-fields.tsxindex 5f103b93112..64ab76b3b3b 100644--- a/studio/frontend/src/features/audio/components/instructions-fields.tsx+++ b/studio/frontend/src/features/audio/components/instructions-fields.tsx@@ -60,7 +60,7 @@ export function InstructionsField({? "A warm, low female voice, speaking slowly and calmly…": "Warm, measured delivery with a calm conversational tone…"}- className="min-h-24"+ className="min-h-24 rounded-lg"/></Field>);diff --git a/studio/frontend/src/features/audio/components/lyrics-editor.tsx b/studio/frontend/src/features/audio/components/lyrics-editor.tsxindex c3a711ac417..1933fb65691 100644--- a/studio/frontend/src/features/audio/components/lyrics-editor.tsx+++ b/studio/frontend/src/features/audio/components/lyrics-editor.tsx@@ -101,7 +101,7 @@ export function LyricsEditor({onChange={(event) => onChange(event.target.value)}placeholder={placeholder}aria-describedby={describedBy}- className="min-h-36 font-normal"+ className="min-h-36 font-normal rounded-lg"/></div>);diff --git a/studio/frontend/src/features/audio/components/music-edit-inputs.tsx b/studio/frontend/src/features/audio/components/music-edit-inputs.tsxindex 5163e60df8c..12d44fc55cc 100644--- a/studio/frontend/src/features/audio/components/music-edit-inputs.tsx+++ b/studio/frontend/src/features/audio/components/music-edit-inputs.tsx@@ -250,7 +250,7 @@ export function MusicEditInputs({? "Lo-fi jazz, warm piano, brushed drums…": "A soaring guitar solo over the same groove…"}- className="min-h-20 rounded-xl"+ className="min-h-20 rounded-lg"/></div>) : null}diff --git a/studio/frontend/src/features/audio/components/transcript-diff-editor.tsx b/studio/frontend/src/features/audio/components/transcript-diff-editor.tsxindex 0f4dec673d2..dc36360c588 100644--- a/studio/frontend/src/features/audio/components/transcript-diff-editor.tsx+++ b/studio/frontend/src/features/audio/components/transcript-diff-editor.tsx@@ -74,7 +74,7 @@ export function TranscriptDiffEditor({disabled={disabled}aria-describedby={`${hintId} ${diffId}`}onChange={(event) => onChange(event.target.value)}- className="min-h-16"+ className="min-h-16 rounded-lg"/>{segments && changes ? (<pdiff --git a/studio/frontend/src/features/audio/components/waveform-peaks.ts b/studio/frontend/src/features/audio/components/waveform-peaks.tsindex b3db426f487..65d21bfe074 100644--- a/studio/frontend/src/features/audio/components/waveform-peaks.ts+++ b/studio/frontend/src/features/audio/components/waveform-peaks.ts@@ -3,7 +3,8 @@// Free of app imports so the node test runner can load it directly.-export const WAVEFORM_BARS = 72;+// Source resolution; the player pools it down to as many bars as fit.+export const WAVEFORM_BARS = 240;/** Per-bar peak across channels, normalised so the loudest bar is 1; silence stays 0. */export function computePeaks(@@ -36,6 +37,24 @@ export function computePeaks(return peaks.map((peak) => Math.min(1, peak / loudest));}+/** Max-pools (or repeats) peaks to `count` bars, so a short spike survives the narrowing. */+export function resamplePeaks(+ peaks: readonly number[],+ count: number,+): number[] {+ const length = peaks.length;+ if (length === 0 || count <= 0) return [];+ return Array.from({ length: count }, (_, bar) => {+ const start = Math.floor((bar * length) / count);+ const end = Math.max(start + 1, Math.floor(((bar + 1) * length) / count));+ let peak = 0;+ for (let index = start; index < end && index < length; index += 1) {+ if (peaks[index] > peak) peak = peaks[index];+ }+ return peak;+ });+}+export function formatSeconds(seconds: number | null | undefined): string {if (seconds === null || seconds === undefined || !Number.isFinite(seconds))return "0:00";diff --git a/studio/frontend/src/features/audio/components/waveform.tsx b/studio/frontend/src/features/audio/components/waveform.tsxindex 823e2734c5f..8aa02274f13 100644--- a/studio/frontend/src/features/audio/components/waveform.tsx+++ b/studio/frontend/src/features/audio/components/waveform.tsx@@ -13,12 +13,17 @@ import {useCallback,useEffect,useImperativeHandle,+ useLayoutEffect,useRef,useState,} from "react";-import { WAVEFORM_BARS, formatSeconds } from "./waveform-peaks";+import { formatSeconds, resamplePeaks } from "./waveform-peaks";const SEEK_STEP_SECONDS = 5;+const BAR_GAP_PX = 2;+const BAR_PITCH_PX = 2 + BAR_GAP_PX;+// Fraction of the track height above the baseline.+const BASELINE = 0.7;export interface WaveformControl {seek: (seconds: number, play?: boolean) => void;@@ -166,10 +171,7 @@ export function Waveform({) : (slider)}- <span className="shrink-0 font-mono text-ui-11p5 tabular-nums text-muted-foreground">- {position > 0 ? `${formatSeconds(position)} / ` : ""}- {formatSeconds(duration)}- </span>+ <PlaybackTime position={position} duration={duration} />{src ? (// biome-ignore lint/a11y/useMediaCaption: voice references have no caption track; the clip's text is shown beside it.<audio@@ -220,7 +222,6 @@ export function WaveformBars({style?: CSSProperties;}) {const bars = peaks && peaks.length > 0 ? peaks : null;- const count = bars?.length ?? WAVEFORM_BARS;return (<divrole="slider"@@ -246,34 +247,99 @@ export function WaveformBars({);}}>- <svg- aria-hidden="true"- className="size-full"- viewBox={`0 0 ${count * 3} 32`}- preserveAspectRatio="none"- >- {Array.from({ length: count }, (_, index) => {- const peak = bars ? (bars[index] ?? 0) : 0;- const height = Math.max(2, peak * 30);- const played = fraction > 0 && (index + 0.5) / count <= fraction;- return (- <rect- // biome-ignore lint/suspicious/noArrayIndexKey: bars are positional and never reorder.- key={index}- x={index * 3 + 0.5}- y={(32 - height) / 2}- width={2}- height={height}- rx={1}- className={cn(- "fill-current",- played ? "text-foreground" : "text-muted-foreground",- bars ? "opacity-100" : "opacity-40",- )}+ <WaveformBarGlyphs+ peaks={bars}+ isPlayed={(at) => fraction > 0 && at <= fraction}+ />+ </div>+ );+}++/** Holds the width of "duration / duration", so starting playback never narrows the bars beside it. */+export function PlaybackTime({+ position,+ duration,+}: {+ position: number;+ duration: number;+}) {+ return (+ <span className="grid shrink-0 justify-items-end font-mono text-ui-11 tabular-nums text-muted-foreground">+ <span aria-hidden="true" className="invisible col-start-1 row-start-1">+ {formatSeconds(duration)}+ <span className="px-0.5">/</span>+ {formatSeconds(duration)}+ </span>+ <span className="col-start-1 row-start-1">+ {position > 0 ? (+ <>+ {formatSeconds(position)}+ <span className="px-0.5">/</span>+ </>+ ) : null}+ {formatSeconds(duration)}+ </span>+ </span>+ );+}++/** HTML pills, not SVG: preserveAspectRatio="none" squashes rx; whole-pixel bars so none renders thinner. */+export function WaveformBarGlyphs({+ peaks,+ isPlayed,+}: {+ peaks: readonly number[] | null;+ /** `at` is the bar's centre as a 0..1 fraction of the track. */+ isPlayed: (at: number) => boolean;+}) {+ const boxRef = useRef<HTMLDivElement | null>(null);+ const [width, setWidth] = useState(0);+ useLayoutEffect(() => {+ const box = boxRef.current;+ if (!box) return;+ setWidth(box.clientWidth);+ const observer = new ResizeObserver(() => setWidth(box.clientWidth));+ observer.observe(box);+ return () => observer.disconnect();+ }, []);+ const count =+ width > 0+ ? Math.max(1, Math.floor((width + BAR_GAP_PX) / BAR_PITCH_PX))+ : 0;+ const levels = peaks ? resamplePeaks(peaks, count) : null;+ return (+ <div+ ref={boxRef}+ aria-hidden="true"+ className="flex size-full justify-center gap-[2px]"+ >+ {Array.from({ length: count }, (_, index) => {+ const peak = levels ? (levels[index] ?? 0) : 0;+ const height = 10 + peak ** 0.8 * 90;+ return (+ <span+ // biome-ignore lint/suspicious/noArrayIndexKey: bars are positional and never reorder.+ key={index}+ className={cn(+ "relative h-full w-[2px] shrink-0",+ isPlayed((index + 0.5) / count)+ ? "text-foreground"+ : cn(+ "text-muted-foreground",+ peaks ? "opacity-50" : "opacity-25",+ ),+ )}+ >+ <span+ className="absolute inset-x-0 rounded-full bg-current"+ style={{+ top: `${BASELINE * (100 - height)}%`,+ height: `max(2px, ${height}%)`,+ }}/>- );- })}- </svg>+ </span>+ );+ })}</div>);}diff --git a/studio/frontend/src/features/audio/pages/clone-page.tsx b/studio/frontend/src/features/audio/pages/clone-page.tsxindex c29fbf83b76..d6508dd0f55 100644--- a/studio/frontend/src/features/audio/pages/clone-page.tsx+++ b/studio/frontend/src/features/audio/pages/clone-page.tsx@@ -109,7 +109,7 @@ function CloneInputs({aria-busy={transcriber.transcribing}onChange={(event) => setReferenceText(event.target.value)}placeholder="Type the words in the clip exactly, or press Transcribe."- className="min-h-16"+ className="min-h-16 rounded-lg"/>{transcriber.error ? (<p@@ -152,7 +152,7 @@ function CloneInputs({value={clone.text}onChange={(event) => setText(event.target.value)}placeholder="Type what the voice should say…"- className="min-h-28"+ className="min-h-28 rounded-lg"/>{clone.text.trim() ? null : (<divdiff --git a/studio/frontend/src/features/audio/pages/convert-page.tsx b/studio/frontend/src/features/audio/pages/convert-page.tsxindex 505afb8d5a1..1ae054586ef 100644--- a/studio/frontend/src/features/audio/pages/convert-page.tsx+++ b/studio/frontend/src/features/audio/pages/convert-page.tsx@@ -236,7 +236,7 @@ function SourceTextField({aria-busy={transcriber.transcribing}onChange={(event) => store.setSourceText(event.target.value)}placeholder="Type the words in the recording, or press Transcribe."- className="min-h-16"+ className="min-h-16 rounded-lg"/>{transcriber.error ? (<p role="alert" className="text-ui-11p5 leading-snug text-destructive">diff --git a/studio/frontend/src/features/audio/pages/edit-page.tsx b/studio/frontend/src/features/audio/pages/edit-page.tsxindex 416fd8191a2..d70e701c47a 100644--- a/studio/frontend/src/features/audio/pages/edit-page.tsx+++ b/studio/frontend/src/features/audio/pages/edit-page.tsx@@ -123,7 +123,7 @@ function EditInputs({? "Listening to the recording…": "What the recording says. It fills in once you add one."}- className="min-h-16"+ className="min-h-16 rounded-lg"/>{transcriber.error ? (<pdiff --git a/studio/frontend/src/features/audio/pages/music-page.tsx b/studio/frontend/src/features/audio/pages/music-page.tsxindex bf9a6f370cc..8efb7cf3608 100644--- a/studio/frontend/src/features/audio/pages/music-page.tsx+++ b/studio/frontend/src/features/audio/pages/music-page.tsx@@ -190,7 +190,7 @@ function SongInputs({? "Genre, mood, instruments and tempo…": "Genre, mood, instruments, voice and tempo…"}- className="min-h-16"+ className="min-h-16 rounded-lg"/></Field><ExamplesOrHint@@ -316,7 +316,7 @@ function SfxInputs({disabled={disabled}onChange={(event) => patch("sfx", { prompt: event.target.value })}placeholder="What you want to hear, and where…"- className="min-h-16"+ className="min-h-16 rounded-lg"/></Field><ExamplesOrHintdiff --git a/studio/frontend/src/features/audio/pages/tts-workspace.tsx b/studio/frontend/src/features/audio/pages/tts-workspace.tsxindex 53d87a520e2..05aa7dee4d6 100644--- a/studio/frontend/src/features/audio/pages/tts-workspace.tsx+++ b/studio/frontend/src/features/audio/pages/tts-workspace.tsx@@ -216,7 +216,7 @@ export function TtsRailFields({? "[verse]\nMorning light through the pines…\n\n[chorus]\n…": "Type the sentence to speak…"}- className="min-h-28"+ className="min-h-28 rounded-lg"/></Field>)}diff --git a/studio/frontend/src/features/audio/tools/clone-panels.tsx b/studio/frontend/src/features/audio/tools/clone-panels.tsxindex 86a3adf38e5..d08c3e2e7fa 100644--- a/studio/frontend/src/features/audio/tools/clone-panels.tsx+++ b/studio/frontend/src/features/audio/tools/clone-panels.tsx@@ -118,7 +118,7 @@ const indexTts2EmotionPanel: AudioToolPanel<EmotionValue> = {onChange={(event) =>onChange({ ...value, text: event.target.value })}- className="min-h-16"+ className="min-h-16 rounded-lg"/></Field>) : value.mode === "audio" ? (@@ -243,7 +243,7 @@ const cosyVoiceModePanel: AudioToolPanel<CosyVoiceModeValue> = {onChange={(event) =>onChange({ ...value, instruction: event.target.value })}- className="min-h-16"+ className="min-h-16 rounded-lg"/></Field>) : null}diff --git a/studio/frontend/src/features/audio/tools/music-panels.tsx b/studio/frontend/src/features/audio/tools/music-panels.tsxindex 3a3b03c350d..c84e4e58dcb 100644--- a/studio/frontend/src/features/audio/tools/music-panels.tsx+++ b/studio/frontend/src/features/audio/tools/music-panels.tsx@@ -135,7 +135,7 @@ export const aceStepMusicalPanel: AudioToolPanel<AceStepMusicalValue> = {onChange={(event) =>onChange({ ...value, avoid: event.target.value })}- className="min-h-12"+ className="min-h-12 rounded-lg"/></Field><Field label="Sampler" htmlFor="music-ace-sampler">diff --git a/studio/frontend/src/features/images/images-page.tsx b/studio/frontend/src/features/images/images-page.tsxindex 2a4a211e84b..d5f7ab7643d 100644--- a/studio/frontend/src/features/images/images-page.tsx+++ b/studio/frontend/src/features/images/images-page.tsx@@ -115,6 +115,7 @@ import { MediaRailResizeHandle } from "@/components/media-rail-resize-handle";import { MEDIA_RAIL_ROOT_ATTR, useMediaRailWidth } from "@/hooks/use-media-rail-width";import { StripDropLine } from "@/components/gallery-strip-reorder";import { useStripReorder } from "@/hooks/use-strip-reorder";+import { MediaApiButton } from "@/components/media-api-button";import { LibraryPageLink } from "@/components/media-page-link";import { translate, useT } from "@/i18n";import {@@ -6055,6 +6056,10 @@ export function ImagesPage({</div><div className="pointer-events-none col-start-3 flex min-w-0 items-start justify-end pr-2 pt-[var(--studio-chat-header-padding-top,11px)]"><div className="pointer-events-auto flex min-w-0 items-center gap-2">+ <MediaApiButton+ kind="images"+ model={status?.loaded ? (status.repo_id ?? null) : null}+ /><LibraryPageLinktab="images"labelClassName="hidden @[50rem]:inline"diff --git a/studio/frontend/src/features/settings/components/audio-api-examples.tsx b/studio/frontend/src/features/settings/components/audio-api-examples.tsxindex e209e75f76b..59980664952 100644--- a/studio/frontend/src/features/settings/components/audio-api-examples.tsx+++ b/studio/frontend/src/features/settings/components/audio-api-examples.tsx@@ -72,7 +72,7 @@ const RUN_LABEL: Record<AudioRunWorkflow, TranslationKey> = {edit: "settings.apiKeys.audioApi.edit",};-function Pill({+export function Pill({active,pillGroup,onClick,diff --git a/studio/frontend/src/features/settings/components/engine-versions-section.tsx b/studio/frontend/src/features/settings/components/engine-versions-section.tsxnew file mode 100644index 00000000000..7c2497de900--- /dev/null+++ b/studio/frontend/src/features/settings/components/engine-versions-section.tsx@@ -0,0 +1,177 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0++import { Button } from "@/components/ui/button";+import { Progress } from "@/components/ui/progress";+import { useIsAccountOwner } from "@/features/auth";+import { resyncInferenceStatusAfterServerModelChange } from "@/features/chat";+import { useHardwareInfo } from "@/hooks/use-hardware-info";+import {+ type ComponentOffer,+ llamaUpdateOffered,+ useLlamaUpdateCheck,+} from "@/hooks/use-llama-update-check";+import { type TranslationKey, useT } from "@/i18n";+import { toast } from "@/lib/toast";+import { useState } from "react";+import { SettingsRow } from "./settings-row";+import { SettingsSection } from "./settings-section";++type EngineRow = {+ key: "llama" | "whisper" | "audio";+ labelKey: TranslationKey;+ installed: string | null;+ offer: ComponentOffer | null;+};++export function EngineVersionsSection() {+ const t = useT();+ const hw = useHardwareInfo();+ const isOwner = useIsAccountOwner();+ const { status, applying, apply, refresh } = useLlamaUpdateCheck({+ onReloadRequired: resyncInferenceStatusAfterServerModelChange,+ });+ const [checking, setChecking] = useState(false);+ const [checkFailed, setCheckFailed] = useState(false);++ // The binary's own build string names the variant the release tag leaves out.+ const rows: EngineRow[] = [+ {+ key: "llama",+ labelKey: "settings.about.llamaCppVersion",+ installed: hw.llamaCpp ?? status?.llama.installed_tag ?? null,+ offer: status?.llama ?? null,+ },+ {+ key: "whisper",+ labelKey: "settings.about.whisperCppVersion",+ installed: status?.whisper?.installed_tag ?? null,+ offer: status?.whisper ?? null,+ },+ {+ key: "audio",+ labelKey: "settings.about.audioCppVersion",+ installed: hw.audioCpp ?? status?.audio?.installed_tag ?? null,+ offer: status?.audio ?? null,+ },+ ];+ // whisper.cpp only reports once the backend knows about it; an empty row would read as missing.+ const visibleRows = rows.filter(+ (row) => row.key !== "whisper" || row.offer != null,+ );+ const job = status?.job;+ const offered = status != null && llamaUpdateOffered(status);+ // `supported` is llama.cpp's alone: an audio.cpp update still installs beside a self-managed llama.cpp.+ const unmanaged = status?.supported === false && !offered;++ async function handleCheck() {+ setChecking(true);+ const next = await refresh();+ setChecking(false);+ setCheckFailed(next == null);+ }++ async function handleUpdate() {+ const result = await apply();+ if (result.ok) {+ toast.success(t("settings.about.engines.updated"));+ } else {+ toast.error(+ t("settings.about.engines.updateFailed", {+ error: result.error ?? "",+ }),+ );+ }+ }++ const summary = applying+ ? job?.message || t("settings.about.engines.updating")+ : checking+ ? t("settings.about.engines.checking")+ : checkFailed+ ? t("settings.about.engines.checkFailed")+ : unmanaged+ ? t("settings.about.engines.unsupported")+ : offered+ ? t("settings.about.engines.updatesAvailable")+ : status+ ? t("settings.about.engines.upToDate")+ : t("settings.about.engines.checking");++ return (+ <SettingsSection+ title={t("settings.about.engines.title")}+ description={t("settings.about.engines.description")}+ >+ {visibleRows.map((row) => {+ const latest =+ row.offer?.update_available && row.offer.latest_tag+ ? row.offer.latest_tag+ : null;+ return (+ <SettingsRow+ key={row.key}+ label={t(row.labelKey)}+ below={+ latest ? (+ <span+ className="text-xs font-medium text-primary"+ data-testid={`engine-${row.key}-available`}+ >+ {t("settings.about.engines.available", { version: latest })}+ </span>+ ) : null+ }+ >+ <code+ className="font-mono text-xs text-muted-foreground"+ data-testid={`engine-${row.key}-version`}+ >+ {row.installed ?? t("settings.about.engines.notInstalled")}+ </code>+ </SettingsRow>+ );+ })}++ <SettingsRow+ label={t("settings.about.engines.updatesLabel")}+ description={summary}+ >+ <div className="flex items-center gap-2">+ <Button+ variant="outline"+ size="sm"+ disabled={checking || applying}+ onClick={() => void handleCheck()}+ data-testid="engine-check-updates"+ >+ {t("settings.about.engines.checkForUpdates")}+ </Button>+ {/* POST /api/llama/update is owner-only; a managed account can read versions, not install. */}+ {isOwner ? (+ <Button+ size="sm"+ disabled={!offered || applying || checking}+ onClick={() => void handleUpdate()}+ data-testid="engine-update"+ >+ {applying+ ? t("settings.about.engines.updating")+ : t("settings.about.engines.update")}+ </Button>+ ) : null}+ </div>+ </SettingsRow>++ {applying ? (+ <div className="pb-3" data-testid="engine-update-progress">+ <Progress+ value={Math.round((job?.progress ?? 0) * 100)}+ aria-label={t("settings.about.engines.updating")}+ className="h-1.5 w-full rounded-full bg-muted"+ />+ </div>+ ) : null}+ </SettingsSection>+ );+}diff --git a/studio/frontend/src/features/settings/components/media-api-examples.tsx b/studio/frontend/src/features/settings/components/media-api-examples.tsxnew file mode 100644index 00000000000..0fb8a1a96b3--- /dev/null+++ b/studio/frontend/src/features/settings/components/media-api-examples.tsx@@ -0,0 +1,262 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0++import { usePlatformStore } from "@/config/env";+import { useT } from "@/i18n";+import { copyToClipboard } from "@/lib/copy-to-clipboard";+import { Tick02Icon } from "@/lib/tick-icon";+import { cn } from "@/lib/utils";+import { Copy01Icon } from "@hugeicons/core-free-icons";+import { HugeiconsIcon } from "@hugeicons/react";+import { useEffect, useId, useMemo, useRef, useState } from "react";+import type {+ KeylessApiAccessExposure,+ KeylessApiAccessScope,+} from "../api/keyless-api-access";+import {+ loadOpenAIAutoSwitchSettings,+ subscribeOpenAIAutoSwitchSettings,+} from "../api/openai-auto-switch";+import { useSettingsDialogStore } from "../stores/settings-dialog-store";+import { useSettingsPanelPrefsStore } from "../stores/settings-panel-prefs-store";+import { Pill } from "./audio-api-examples";+import {+ type AudioApiLang,+ type AudioApiOs,+ audioApiKey,+ audioLangToStore,+ langFromStored,+} from "./audio-api-snippets";+import {+ MEDIA_API_KINDS,+ MEDIA_API_PLACEHOLDER_MODELS,+ type MediaApiKind,+ buildMediaApiSnippet,+} from "./media-api-snippets";+import { HighlightedCode } from "./usage-examples";++const LANGS: { id: AudioApiLang; label: string }[] = [+ { id: "curl", label: "curl" },+ { id: "python", label: "Python" },+ { id: "javascript", label: "JavaScript" },+];++export function MediaApiExamples({+ apiKey,+ useTunnel,+ keylessScope = "off",+ keylessExposure = null,+}: {+ apiKey?: string | null;+ useTunnel: boolean;+ keylessScope?: KeylessApiAccessScope;+ keylessExposure?: KeylessApiAccessExposure | null;+}) {+ const t = useT();+ const pillId = useId();+ const deviceType = usePlatformStore((s) => s.deviceType);+ const cloudflareUrl = usePlatformStore((s) => s.cloudflareUrl);+ const serverUrl = usePlatformStore((s) => s.serverUrl);+ const setStoredLang = useSettingsPanelPrefsStore((s) => s.setApiExampleLang);+ const setStoredOs = useSettingsPanelPrefsStore((s) => s.setApiExampleOs);+ const [storedPrefs] = useState(() => useSettingsPanelPrefsStore.getState());+ const [kind, setKind] = useState<MediaApiKind>("images");+ const [lang, setLang] = useState<AudioApiLang>(+ langFromStored(storedPrefs.apiExampleLang),+ );+ const [os, setOs] = useState<AudioApiOs>(+ storedPrefs.apiExampleOs ?? (deviceType === "windows" ? "windows" : "unix"),+ );+ const [pageModels, setPageModels] = useState<+ Partial<Record<MediaApiKind, string>>+ >({});+ const [autoSwitch, setAutoSwitch] = useState<boolean | null>(null);+ const [copied, setCopied] = useState(false);+ const sectionRef = useRef<HTMLElement | null>(null);+ const mediaApiRequested = useSettingsDialogStore((s) => s.mediaApiRequested);+ const scrollTarget = useSettingsDialogStore((s) => s.scrollTarget);++ useEffect(() => {+ if (!mediaApiRequested) return;+ const { kind: requestedKind, model } = mediaApiRequested;+ setKind(requestedKind);+ if (model) {+ setPageModels((current) => ({ ...current, [requestedKind]: model }));+ }+ useSettingsDialogStore.getState().consumeMediaApiRequest();+ }, [mediaApiRequested]);++ useEffect(() => {+ if (scrollTarget !== "api-keys-media-api") return;+ const section = sectionRef.current;+ if (!section) return;+ const pin = () => section.scrollIntoView({ block: "start" });+ const observer = new ResizeObserver(pin);+ observer.observe(section.parentElement ?? section);+ const release = () => {+ observer.disconnect();+ useSettingsDialogStore+ .getState()+ .consumeScrollTarget("api-keys-media-api");+ };+ const timer = window.setTimeout(release, 1500);+ const events = ["wheel", "touchmove", "keydown"] as const;+ for (const name of events) {+ window.addEventListener(name, release, { passive: true });+ }+ return () => {+ observer.disconnect();+ window.clearTimeout(timer);+ for (const name of events) window.removeEventListener(name, release);+ };+ }, [scrollTarget]);++ useEffect(() => {+ let cancelled = false;+ loadOpenAIAutoSwitchSettings().then(+ (settings) => !cancelled && setAutoSwitch(settings.mediaAutoSwitchModel),+ () => undefined,+ );+ const unsubscribe = subscribeOpenAIAutoSwitchSettings((settings) =>+ setAutoSwitch(settings.mediaAutoSwitchModel),+ );+ return () => {+ cancelled = true;+ unsubscribe();+ };+ }, []);++ const origin = typeof window !== "undefined" ? window.location.origin : "";+ const base =+ useTunnel && cloudflareUrl ? cloudflareUrl : (serverUrl ?? origin);+ const key = audioApiKey(apiKey, {+ base,+ tunnel: useTunnel && !!cloudflareUrl,+ scope: keylessScope,+ exposure: keylessExposure,+ });+ const pageModel = pageModels[kind] ?? null;+ const model = pageModel ?? MEDIA_API_PLACEHOLDER_MODELS[kind];+ const snippet = useMemo(+ () => buildMediaApiSnippet(kind, { base, apiKey: key, model, lang, os }),+ [base, key, kind, lang, model, os],+ );+ const shikiLang =+ lang === "curl" ? (os === "windows" ? "powershell" : "bash") : lang;++ const handleCopy = async () => {+ if (await copyToClipboard(snippet)) {+ setCopied(true);+ setTimeout(() => setCopied(false), 1800);+ }+ };++ return (+ <section+ ref={sectionRef}+ data-settings-label={t("settings.apiKeys.mediaApi.title")}+ className="flex min-w-0 max-w-full scroll-mt-6 flex-col"+ >+ <h2 className="settings-heading mb-1 text-sm font-semibold">+ {t("settings.apiKeys.mediaApi.title")}+ </h2>+ <p className="mb-2 text-xs leading-relaxed text-muted-foreground">+ {t("settings.apiKeys.mediaApi.description")}+ </p>+ <div className="min-w-0 max-w-full overflow-hidden rounded-lg border border-border bg-muted/20">+ <div className="flex min-w-0 flex-wrap items-center justify-between gap-x-2 gap-y-1 border-b border-border px-2 py-1.5">+ <div className="isolate flex min-w-0 flex-wrap items-center gap-0.5">+ {MEDIA_API_KINDS.map((id) => (+ <Pill+ key={id}+ active={kind === id}+ pillGroup={`${pillId}-kind`}+ onClick={() => setKind(id)}+ >+ {t(+ id === "images"+ ? "settings.apiKeys.mediaApi.images"+ : "settings.apiKeys.mediaApi.video",+ )}+ </Pill>+ ))}+ </div>+ <div className="isolate flex min-w-0 flex-wrap items-center gap-0.5">+ {LANGS.map((item) => (+ <Pill+ key={item.id}+ active={lang === item.id}+ pillGroup={`${pillId}-lang`}+ onClick={() => {+ setLang(item.id);+ const stored = audioLangToStore(+ useSettingsPanelPrefsStore.getState().apiExampleLang,+ item.id,+ );+ if (stored) setStoredLang(stored);+ }}+ >+ {item.label}+ </Pill>+ ))}+ </div>+ </div>+ {lang === "curl" ? (+ <div className="isolate flex min-w-0 items-center gap-0.5 border-b border-border px-2 py-1.5">+ <Pill+ active={os === "unix"}+ pillGroup={`${pillId}-os`}+ onClick={() => {+ setOs("unix");+ setStoredOs("unix");+ }}+ >+ {t("settings.apiKeys.osUnix")}+ </Pill>+ <Pill+ active={os === "windows"}+ pillGroup={`${pillId}-os`}+ onClick={() => {+ setOs("windows");+ setStoredOs("windows");+ }}+ >+ {t("settings.apiKeys.osWindows")}+ </Pill>+ </div>+ ) : null}+ <div className="relative min-w-0">+ <button+ type="button"+ onClick={handleCopy}+ className="absolute right-2 top-2 z-10 flex items-center gap-1 rounded border border-border bg-background/80 px-1.5 py-1 text-ui-11 text-muted-foreground backdrop-blur transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"+ aria-label={t("settings.apiKeys.copySnippet")}+ >+ <HugeiconsIcon+ icon={copied ? Tick02Icon : Copy01Icon}+ className={cn("size-3.5", copied && "text-emerald-600")}+ />+ {copied ? t("settings.apiKeys.copied") : t("settings.apiKeys.copy")}+ </button>+ <HighlightedCode+ key={snippet}+ code={snippet}+ language={shikiLang}+ label={t("settings.apiKeys.mediaApi.title")}+ redactFromReload={Boolean(apiKey)}+ />+ </div>+ {pageModel == null || autoSwitch === false ? (+ <div className="flex min-w-0 flex-col gap-1 border-t border-border px-3 py-2.5 text-ui-11 leading-snug text-muted-foreground">+ {pageModel == null ? (+ <span>{t("settings.apiKeys.mediaApi.placeholderModel")}</span>+ ) : null}+ {autoSwitch === false ? (+ <span>{t("settings.apiKeys.mediaApi.autoSwitchOff")}</span>+ ) : null}+ </div>+ ) : null}+ </div>+ </section>+ );+}diff --git a/studio/frontend/src/features/settings/components/media-api-snippets.ts b/studio/frontend/src/features/settings/components/media-api-snippets.tsnew file mode 100644index 00000000000..5a568d76f6d--- /dev/null+++ b/studio/frontend/src/features/settings/components/media-api-snippets.ts@@ -0,0 +1,198 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0++import { psSingle, shSingle } from "./agent-command.ts";+import type { AudioApiLang, AudioApiOs } from "./audio-api-snippets";++export type MediaApiKind = "images" | "video";++export const MEDIA_API_KINDS: readonly MediaApiKind[] = ["images", "video"];++export const MEDIA_API_PLACEHOLDER_MODELS: Record<MediaApiKind, string> = {+ images: "unsloth/FLUX.2-klein-4B-GGUF",+ video: "unsloth/Wan2.2-TI2V-5B-GGUF",+};++export interface MediaApiSnippetInput {+ base: string;+ apiKey: string;+ model: string;+ lang: AudioApiLang;+ os: AudioApiOs;+}++const IMAGE_PROMPT = "A cozy wooden cabin on a snowy mountain at dusk";+const VIDEO_PROMPT = "A paper boat drifting down a rain-soaked street";+const j = (value: string) => JSON.stringify(value);++function jsonBody(body: Record<string, string>, indent: string): string {+ const lines = Object.entries(body).map(+ ([key, value]) => `${indent} ${j(key)}: ${j(value)}`,+ );+ return `{\n${lines.join(",\n")}\n${indent}}`;+}++function imagesSnippet({+ base,+ apiKey,+ model,+ lang,+ os,+}: MediaApiSnippetInput) {+ const body = {+ model,+ prompt: IMAGE_PROMPT,+ size: "1024x1024",+ response_format: "b64_json",+ };+ if (lang === "python") {+ return `import base64++from openai import OpenAI++client = OpenAI(base_url=${j(`${base}/v1`)}, api_key=${j(apiKey)})++result = client.images.generate(+ model=${j(model)},+ prompt=${j(IMAGE_PROMPT)},+ size="1024x1024",+ response_format="b64_json",+)+with open("image.png", "wb") as image:+ image.write(base64.b64decode(result.data[0].b64_json))`;+ }+ if (lang === "javascript") {+ return `import fs from "node:fs";+import OpenAI from "openai";++const client = new OpenAI({ baseURL: ${j(`${base}/v1`)}, apiKey: ${j(apiKey)} });++const result = await client.images.generate({+ model: ${j(model)},+ prompt: ${j(IMAGE_PROMPT)},+ size: "1024x1024",+ response_format: "b64_json",+});+fs.writeFileSync("image.png", Buffer.from(result.data[0].b64_json, "base64"));`;+ }+ if (os === "windows") {+ return `$base = '${psSingle(base)}'+$key = '${psSingle(apiKey)}'+$body = @'+${jsonBody(body, "")}+'@+Set-Content -Path body.json -Value $body -Encoding ascii+$result = curl.exe -sSf "$base/v1/images/generations" \`+ -H "Authorization: Bearer $key" \`+ -H "Content-Type: application/json" \`+ -d "@body.json" | ConvertFrom-Json+[IO.File]::WriteAllBytes("$PWD\\image.png", [Convert]::FromBase64String($result.data[0].b64_json))`;+ }+ return `BASE='${shSingle(base)}'+KEY='${shSingle(apiKey)}'+curl -sSf "$BASE/v1/images/generations" \\+ -H "Authorization: Bearer $KEY" \\+ -H "Content-Type: application/json" \\+ -d '${shSingle(jsonBody(body, " "))}' \\+ | jq -r '.data[0].b64_json' | base64 --decode > image.png`;+}++function videoSnippet({ base, apiKey, model, lang, os }: MediaApiSnippetInput) {+ const body = { model, prompt: VIDEO_PROMPT };+ if (lang === "python") {+ return `import time++import httpx++studio = httpx.Client(+ base_url=${j(base)}, headers={"Authorization": "Bearer " + ${j(apiKey)}}, timeout=None+)+++def call(method, path, **kwargs):+ response = studio.request(method, path, **kwargs)+ response.raise_for_status()+ return response+++job = call("POST", "/v1/videos", json={"model": ${j(model)}, "prompt": ${j(VIDEO_PROMPT)}}).json()+while job["status"] in ("queued", "in_progress"):+ time.sleep(5)+ job = call("GET", f"/v1/videos/{job['id']}").json()+if job["status"] != "completed":+ raise RuntimeError(job.get("error"))+with open("video.mp4", "wb") as video:+ video.write(call("GET", f"/v1/videos/{job['id']}/content").content)`;+ }+ if (lang === "javascript") {+ return `import fs from "node:fs";++const BASE = ${j(base)};+const KEY = ${j(apiKey)};++async function call(path, init = {}) {+ const response = await fetch(BASE + path, {+ ...init,+ headers: { Authorization: "Bearer " + KEY, ...init.headers },+ });+ if (!response.ok) throw new Error(await response.text());+ return response;+}++let job = await (+ await call("/v1/videos", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ model: ${j(model)}, prompt: ${j(VIDEO_PROMPT)} }),+ })+).json();+while (job.status === "queued" || job.status === "in_progress") {+ await new Promise((resolve) => setTimeout(resolve, 5000));+ job = await (await call(\`/v1/videos/\${job.id}\`)).json();+}+if (job.status !== "completed") throw new Error(JSON.stringify(job.error));+const video = await call(\`/v1/videos/\${job.id}/content\`);+fs.writeFileSync("video.mp4", Buffer.from(await video.arrayBuffer()));`;+ }+ if (os === "windows") {+ return `$base = '${psSingle(base)}'+$key = '${psSingle(apiKey)}'+$body = @'+${jsonBody(body, "")}+'@+Set-Content -Path body.json -Value $body -Encoding ascii+$job = curl.exe -sSf "$base/v1/videos" \`+ -H "Authorization: Bearer $key" \`+ -H "Content-Type: application/json" \`+ -d "@body.json" | ConvertFrom-Json+while ($job.status -in "queued", "in_progress") {+ Start-Sleep -Seconds 5+ $job = curl.exe -sSf "$base/v1/videos/$($job.id)" -H "Authorization: Bearer $key" | ConvertFrom-Json+}+if ($job.status -eq "completed") {+ curl.exe -sSf "$base/v1/videos/$($job.id)/content" -H "Authorization: Bearer $key" -o video.mp4+} else {+ $job.error+}`;+ }+ return `BASE='${shSingle(base)}'+KEY='${shSingle(apiKey)}'+ID=$(curl -sSf "$BASE/v1/videos" \\+ -H "Authorization: Bearer $KEY" \\+ -H "Content-Type: application/json" \\+ -d '${shSingle(jsonBody(body, " "))}' | jq -r .id)+STATUS=queued+while [ "$STATUS" = queued ] || [ "$STATUS" = in_progress ]; do+ sleep 5+ STATUS=$(curl -sSf "$BASE/v1/videos/$ID" -H "Authorization: Bearer $KEY" | jq -r .status)+done+[ "$STATUS" = completed ] && curl -sSf "$BASE/v1/videos/$ID/content" \\+ -H "Authorization: Bearer $KEY" -o video.mp4`;+}++export function buildMediaApiSnippet(+ kind: MediaApiKind,+ input: MediaApiSnippetInput,+): string {+ return kind === "images" ? imagesSnippet(input) : videoSnippet(input);+}diff --git a/studio/frontend/src/features/settings/components/notification-frequency-select.tsx b/studio/frontend/src/features/settings/components/notification-frequency-select.tsxindex 7e2b76bad04..2e777ac6ca6 100644--- a/studio/frontend/src/features/settings/components/notification-frequency-select.tsx+++ b/studio/frontend/src/features/settings/components/notification-frequency-select.tsx@@ -42,7 +42,7 @@ export function NotificationFrequencySelect({setNotificationFrequency(channel, value as NotificationFrequency)}>- <SelectTrigger aria-label={label} className="w-40" size="sm">+ <SelectTrigger aria-label={label} className="w-48" size="sm"><SelectValue /></SelectTrigger><SelectContent>diff --git a/studio/frontend/src/features/settings/components/studio-version-section.tsx b/studio/frontend/src/features/settings/components/studio-version-section.tsxindex 396955cfc3a..50462eb1905 100644--- a/studio/frontend/src/features/settings/components/studio-version-section.tsx+++ b/studio/frontend/src/features/settings/components/studio-version-section.tsx@@ -64,19 +64,11 @@ async function fetchStudioVersions(): Promise<StudioVersions> {}}-// Shared "Unsloth" version block, shown in both General and About. The About-// tab passes llamaCppVersion and audioCppVersion to surface the installed-// llama.cpp and audio.cpp builds alongside the version rows; General omits them,-// so those rows only show on About. Children are appended below the version-// rows, for controls that act on them.+// Shared "Unsloth" version block (General and About); engine builds live in EngineVersionsSection.export function StudioVersionSection({- llamaCppVersion,- audioCppVersion,desktopAppVersion,children,}: {- llamaCppVersion?: string | null;- audioCppVersion?: string | null;desktopAppVersion?: string | null;children?: ReactNode;} = {}) {@@ -116,20 +108,6 @@ export function StudioVersionSection({</code></SettingsRow>) : null}- {llamaCppVersion ? (- <SettingsRow label={t("settings.about.llamaCppVersion")}>- <code className="font-mono text-xs text-muted-foreground">- {llamaCppVersion}- </code>- </SettingsRow>- ) : null}- {audioCppVersion ? (- <SettingsRow label={t("settings.about.audioCppVersion")}>- <code className="font-mono text-xs text-muted-foreground">- {audioCppVersion}- </code>- </SettingsRow>- ) : null}{children}</SettingsSection>);diff --git a/studio/frontend/src/features/settings/components/update-studio-instructions.tsx b/studio/frontend/src/features/settings/components/update-studio-instructions.tsxindex 7ac024d5dae..435b22dc793 100644--- a/studio/frontend/src/features/settings/components/update-studio-instructions.tsx+++ b/studio/frontend/src/features/settings/components/update-studio-instructions.tsx@@ -28,6 +28,9 @@ const DOCS_UPDATING_URL =const DOCS_MAC_URL = "https://unsloth.ai/docs/get-started/install/mac";const DOCS_WINDOWS_URL ="https://unsloth.ai/docs/get-started/install/windows-installation";+const DOCS_LINUX_URL = "https://unsloth.ai/docs/get-started/install/linux";+const DOCS_DOCKER_URL = "https://unsloth.ai/docs/get-started/install/docker";+const DOCS_AMD_URL = "https://unsloth.ai/docs/get-started/install/amd";export type UpdateShell = "windows" | "unix";export type UpdateInstallSource =@@ -169,6 +172,18 @@ function UpdateDocsLinks(): ReactElement {href={DOCS_WINDOWS_URL}label={t("settings.about.update.docsWindows")}/>+ <DocsLink+ href={DOCS_LINUX_URL}+ label={t("settings.about.update.docsLinux")}+ />+ <DocsLink+ href={DOCS_DOCKER_URL}+ label={t("settings.about.update.docsDocker")}+ />+ <DocsLink+ href={DOCS_AMD_URL}+ label={t("settings.about.update.docsAmd")}+ /></p>);}diff --git a/studio/frontend/src/features/settings/settings-search.ts b/studio/frontend/src/features/settings/settings-search.tsindex 1d06b2a4cdc..3f11c883fa1 100644--- a/studio/frontend/src/features/settings/settings-search.ts+++ b/studio/frontend/src/features/settings/settings-search.ts@@ -24,10 +24,10 @@ export const SETTINGS_SEARCH_INDEX: Record<SettingsTab, TranslationKey[]> = {"settings.appearance.language.title","settings.appearance.language.label","settings.appearance.language.spellCheck",+ "settings.about.engines.title","settings.general.notifications.sectionTitle",- "settings.general.notifications.showUnslothUpdates",- "settings.general.notifications.showLlamaUpdates",- "settings.general.notifications.showAudioCppUpdates",+ "settings.general.notifications.showLoadedModels",+ "settings.general.notifications.updateReminders","settings.general.previewSharing.sectionTitle","settings.general.previewSharing.enableLabel","settings.general.previewSharing.revokeLabel",diff --git a/studio/frontend/src/features/settings/stores/settings-dialog-store.ts b/studio/frontend/src/features/settings/stores/settings-dialog-store.tsindex 93961dc13e3..cf0c50e6639 100644--- a/studio/frontend/src/features/settings/stores/settings-dialog-store.ts+++ b/studio/frontend/src/features/settings/stores/settings-dialog-store.ts@@ -33,6 +33,7 @@ export type SettingsTab = (typeof SETTINGS_TABS)[number];export type SettingsScrollTarget =| "about-updates"| "api-keys-audio-api"+ | "api-keys-media-api"| "api-keys-decision-api"| "appearance-sidebar-nav"| "chat-composer"@@ -59,6 +60,11 @@ export interface AudioApiRequest {model: string | null;}+export interface MediaApiRequest {+ kind: "images" | "video";+ model: string | null;+}+/** Which archive the Data tab should open straight into. */export type ArchivedShelf = "chats" | "images" | "videos" | "audio";@@ -91,6 +97,7 @@ interface SettingsDialogState {// The Audio API card applies it, then clears it. Same lifetime as archivedRequested.audioApiRequested: AudioApiRequest | null;decisionTryRequested: string | null;+ mediaApiRequested: MediaApiRequest | null;openDialog: (tab?: SettingsTab, options?: OpenDialogOptions) => void;openArchivedChats: () => void;openArchivedMedia: (shelf: Exclude<ArchivedShelf, "chats">) => void;@@ -104,6 +111,8 @@ interface SettingsDialogState {consumeConnectionRequest: () => void;openDecisionTry: (model: string) => void;consumeDecisionTryRequest: () => void;+ openMediaApi: (request: MediaApiRequest) => void;+ consumeMediaApiRequest: () => void;consumeScrollTarget: (target: SettingsScrollTarget) => void;closeDialog: () => void;setActiveTab: (tab: SettingsTab) => void;@@ -162,6 +171,7 @@ const SCROLL_TARGET_TAB: Record<SettingsScrollTarget, SettingsTab> = {"chat-composer": "chat","about-updates": "about","api-keys-audio-api": "api-keys",+ "api-keys-media-api": "api-keys","api-keys-decision-api": "api-keys","appearance-sidebar-nav": "appearance","browser-html-network": "browser",@@ -237,6 +247,7 @@ export const useSettingsDialogStore = create<SettingsDialogState>((set) => ({connectionRequested: null,audioApiRequested: null,decisionTryRequested: null,+ mediaApiRequested: null,openDialog: (requestedTab, options) =>set((state) => {const { tab, target } = resolveScrollRequest(requestedTab, options?.scrollTarget);@@ -334,6 +345,20 @@ export const useSettingsDialogStore = create<SettingsDialogState>((set) => ({...focusForOpen(state),})),consumeDecisionTryRequest: () => set({ decisionTryRequested: null }),+ openMediaApi: (request) =>+ set((state) => ({+ open: true,+ activeTab: "api-keys",+ scrollTarget: "api-keys-media-api",+ archivedRequested: null,+ logFamilyRequested: null,+ logSourcePathRequested: null,+ connectionRequested: null,+ audioApiRequested: null,+ mediaApiRequested: request,+ ...focusForOpen(state),+ })),+ consumeMediaApiRequest: () => set({ mediaApiRequested: null }),consumeScrollTarget: (target) =>set((state) => ({scrollTarget: state.scrollTarget === target ? null : state.scrollTarget,@@ -351,6 +376,7 @@ export const useSettingsDialogStore = create<SettingsDialogState>((set) => ({connectionRequested: null,audioApiRequested: null,decisionTryRequested: null,+ mediaApiRequested: null,}),setActiveTab: (tab) => {try {diff --git a/studio/frontend/src/features/settings/tabs/about-tab.tsx b/studio/frontend/src/features/settings/tabs/about-tab.tsxindex 5c52d9a341a..958b2cef03e 100644--- a/studio/frontend/src/features/settings/tabs/about-tab.tsx+++ b/studio/frontend/src/features/settings/tabs/about-tab.tsx@@ -19,6 +19,7 @@ import {} from "@hugeicons/core-free-icons";import { HugeiconsIcon } from "@hugeicons/react";import { useEffect, useRef, useState } from "react";+import { EngineVersionsSection } from "../components/engine-versions-section";import { SettingsRow } from "../components/settings-row";import { SettingsSection } from "../components/settings-section";import { StudioVersionSection } from "../components/studio-version-section";@@ -170,13 +171,9 @@ export function AboutTab() {</p></header>- {/* llama.cpp and audio.cpp rows live in the shared version section so they sit with- the Unsloth/Package rows; the props keep them About-only (General passes none). */}- <StudioVersionSection- llamaCppVersion={hw.llamaCpp}- audioCppVersion={hw.audioCpp}- desktopAppVersion={desktopAppVersion}- />+ <StudioVersionSection desktopAppVersion={desktopAppVersion} />++ <EngineVersionsSection /><div ref={updateSectionRef} className="scroll-mt-5"><SettingsSection title={t("settings.about.updates")}>diff --git a/studio/frontend/src/features/settings/tabs/api-keys-tab.tsx b/studio/frontend/src/features/settings/tabs/api-keys-tab.tsxindex 8be21a337dc..b568f92c4d7 100644--- a/studio/frontend/src/features/settings/tabs/api-keys-tab.tsx+++ b/studio/frontend/src/features/settings/tabs/api-keys-tab.tsx@@ -21,6 +21,7 @@ import type {} from "../api/keyless-api-access";import { ApiKeyRow } from "../components/api-key-row";import { AudioApiExamples } from "../components/audio-api-examples";+import { MediaApiExamples } from "../components/media-api-examples";import { CreateKeyForm } from "../components/create-key-form";import { DecisionApiSection } from "../components/decision-api-section";import { KeyRevealCard } from "../components/key-reveal-card";@@ -219,6 +220,13 @@ export function ApiKeysTab() {keylessExposure={keyless.exposure}/>+ <MediaApiExamples+ apiKey={revealed}+ useTunnel={useTunnel}+ keylessScope={keyless.scope}+ keylessExposure={keyless.exposure}+ />+{isOwner ? <DecisionApiSection /> : null}{isOwner ? <McpAccessSection apiKey={revealed} /> : null}diff --git a/studio/frontend/src/features/settings/tabs/general-tab.tsx b/studio/frontend/src/features/settings/tabs/general-tab.tsxindex 429ea9e5e9a..dfb62c1d102 100644--- a/studio/frontend/src/features/settings/tabs/general-tab.tsx+++ b/studio/frontend/src/features/settings/tabs/general-tab.tsx@@ -29,9 +29,12 @@ import {TRAINING_UI_PREFERENCE_KEYS,} from "@/features/training";import { FLOATING_PANEL_POSITION_KEYS } from "@/hooks/floating-panel-position";-import { NOTIFICATION_PREF_KEYS } from "@/hooks/use-notification-frequency";+import {+ NOTIFICATION_PREF_KEYS,+ type NotificationChannel,+} from "@/hooks/use-notification-frequency";import { useHfTokenValidation } from "@/hooks";-import { LOCALE_STORAGE_KEY, useT } from "@/i18n";+import { LOCALE_STORAGE_KEY, type TranslationKey, useT } from "@/i18n";import { isTauri } from "@/lib/api-base";import {SPELLCHECK_STORAGE_KEY,@@ -82,6 +85,7 @@ import {TRANSPORT_MODE_STORAGE_KEY,} from "@/features/hub";import { DownloadTransportRow } from "../components/download-transport-row";+import { EngineVersionsSection } from "../components/engine-versions-section";import { HubSettingsSection } from "../components/hub-settings-section";import { NotificationFrequencySelect } from "../components/notification-frequency-select";import { SettingsRow } from "../components/settings-row";@@ -93,6 +97,25 @@ import { INTERFACE_SCALE_STORAGE_KEY } from "../stores/interface-scale-store";import { SETTINGS_PANEL_PREFS_STORAGE_KEY } from "../stores/settings-panel-prefs-store";import { CHAT_PROJECT_ATTACHMENT_TARGET_KEY } from "@/features/chat/utils/project-attachment-target";+// whisper.cpp rides along with llama.cpp's card, so it has no line of its own.+const UPDATE_REMINDER_CHANNELS: {+ channel: NotificationChannel;+ name: string;+ hintKey?: TranslationKey;+}[] = [+ { channel: "unsloth", name: "Unsloth" },+ {+ channel: "llama",+ name: "llama.cpp",+ hintKey: "settings.general.notifications.llamaHint",+ },+ {+ channel: "audio",+ name: "audio.cpp",+ hintKey: "settings.general.notifications.audioHint",+ },+];+// Keys cleared by "Reset all local preferences". NEVER include auth/session keys here -- that// would log the user out (unsloth_auth_token, unsloth_auth_refresh_token, and// unsloth_auth_must_change_password are excluded).@@ -690,6 +713,11 @@ export function GeneralTab() {</SettingsSection>) : null}+ {/* Owner-only like the installation-wide block below: its routes are. */}+ {isOwner ? <DocumentsRagSection /> : null}++ <EngineVersionsSection />+<SettingsSection title={t("settings.general.notifications.sectionTitle")}><SettingsRowlabel={t("settings.general.notifications.showLoadedModels")}@@ -703,38 +731,34 @@ export function GeneralTab() {/></SettingsRow><SettingsRow- label={t("settings.general.notifications.showUnslothUpdates")}- description={t(- "settings.general.notifications.showUnslothUpdatesDescription",- )}- >- <NotificationFrequencySelect- channel="unsloth"- label={t("settings.general.notifications.showUnslothUpdates")}- />- </SettingsRow>- <SettingsRow- label={t("settings.general.notifications.showLlamaUpdates")}+ label={t("settings.general.notifications.updateReminders")}description={t(- "settings.general.notifications.showLlamaUpdatesDescription",+ "settings.general.notifications.updateRemindersDescription",)}- >- <NotificationFrequencySelect- channel="llama"- label={t("settings.general.notifications.showLlamaUpdates")}- />- </SettingsRow>- <SettingsRow- label={t("settings.general.notifications.showAudioCppUpdates")}- description={t(- "settings.general.notifications.showAudioCppUpdatesDescription",- )}- >- <NotificationFrequencySelect- channel="audio"- label={t("settings.general.notifications.showAudioCppUpdates")}- />- </SettingsRow>+ className="pb-1"+ />+ <div className="flex flex-col pb-3">+ {UPDATE_REMINDER_CHANNELS.map(({ channel, name, hintKey }) => (+ <div+ key={channel}+ data-settings-label={name}+ className="flex items-center justify-between gap-4 py-1.5"+ >+ <div className="flex min-w-0 items-baseline gap-2">+ <span className="text-sm text-foreground">{name}</span>+ {hintKey ? (+ <span className="truncate text-xs text-muted-foreground">+ {t(hintKey)}+ </span>+ ) : null}+ </div>+ <NotificationFrequencySelect+ channel={channel}+ label={`${t("settings.general.notifications.updateReminders")}: ${name}`}+ />+ </div>+ ))}+ </div></SettingsSection>{/* Installation-wide settings: owner-only routes, so a managed account gets no dead controls. */}@@ -776,8 +800,6 @@ export function GeneralTab() {</SettingsRow></SettingsSection>- <DocumentsRagSection />-<HubSettingsSection /><SettingsSection title={t("settings.general.downloads.sectionTitle")}>diff --git a/studio/frontend/src/features/video/video-page.tsx b/studio/frontend/src/features/video/video-page.tsxindex 27ac4b8f578..cc9370d7100 100644--- a/studio/frontend/src/features/video/video-page.tsx+++ b/studio/frontend/src/features/video/video-page.tsx@@ -28,6 +28,7 @@ import { MEDIA_RAIL_ROOT_ATTR, useMediaRailWidth } from "@/hooks/use-media-rail-import { StripDropLine } from "@/components/gallery-strip-reorder";import { useStripReorder } from "@/hooks/use-strip-reorder";import { ImageDropzone } from "@/components/image-dropzone";+import { MediaApiButton } from "@/components/media-api-button";import { LibraryPageLink } from "@/components/media-page-link";import { translate, useT } from "@/i18n";import {@@ -4016,6 +4017,10 @@ function VideoGenerator({)}<div className="pointer-events-none col-start-2 flex min-w-0 items-start justify-end pr-2 pt-[var(--studio-chat-header-padding-top,11px)]"><div className="pointer-events-auto flex min-w-0 items-center gap-2">+ <MediaApiButton+ kind="video"+ model={status?.loaded ? (status.repo_id ?? null) : null}+ /><LibraryPageLinktab="videos"labelClassName="hidden @[50rem]:inline"diff --git a/studio/frontend/src/hooks/use-llama-update-check.ts b/studio/frontend/src/hooks/use-llama-update-check.tsindex 10ef2bfdee3..311cbffa07a 100644--- a/studio/frontend/src/hooks/use-llama-update-check.ts+++ b/studio/frontend/src/hooks/use-llama-update-check.ts@@ -208,9 +208,17 @@ function parseStatus(value: unknown): LlamaUpdateStatus | null {// resynced -- would otherwise replay the same completed job forever. Persist the handled marker// outside React state so it survives both, and is shared across tabs in this browser.const HANDLED_RELOAD_STORAGE_KEY = "unsloth_llama_update_reload_handled_at";+// sessionStorage, not localStorage: a skip kept for good stranded the install on that release.const OFFER_SUPPRESSION_STORAGE_KEY = "unsloth_llama_update_offer_suppression";const OFFER_SUPPRESSION_EVENT = "unsloth:llama-update-offer-suppression";+// Retires the permanent record older builds wrote.+try {+ localStorage.removeItem(OFFER_SUPPRESSION_STORAGE_KEY);+} catch {+ // Storage can be unavailable in restricted browser contexts.+}+type OfferSuppression =| { kind: "dismissed"; offerKey: string }| { kind: "snoozed"; offerKey: string; until: number };@@ -293,7 +301,7 @@ function getOfferSuppression(): OfferSuppression | null {if (!retainedSuppression.persisted) return retainedSuppression.value;try {const value = parseOfferSuppression(- localStorage.getItem(OFFER_SUPPRESSION_STORAGE_KEY),+ sessionStorage.getItem(OFFER_SUPPRESSION_STORAGE_KEY),);retainedSuppression = { value, persisted: true };return value;@@ -306,12 +314,12 @@ function publishOfferSuppression(suppression: OfferSuppression | null): void {retainedSuppression = { value: suppression, persisted: false };try {if (suppression) {- localStorage.setItem(+ sessionStorage.setItem(OFFER_SUPPRESSION_STORAGE_KEY,JSON.stringify({ version: 1, ...suppression }),);} else {- localStorage.removeItem(OFFER_SUPPRESSION_STORAGE_KEY);+ sessionStorage.removeItem(OFFER_SUPPRESSION_STORAGE_KEY);}retainedSuppression.persisted = true;} catch {@@ -781,11 +789,18 @@ export function useLlamaUpdateCheck({);}, [applying, startJobPoll, notifyReloadIfNeeded, clearSuppression]);+ const refresh = useCallback(async (): Promise<LlamaUpdateStatus | null> => {+ const next = await readStatus(true);+ if (activeRef.current) surfaceIfAvailable(next);+ return next;+ }, [readStatus, surfaceIfAvailable]);+return {status: enabled ? status : null,visible: enabled && visible,applying: enabled && applying,apply,+ refresh,dismiss,undoDismiss,snooze,diff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.tsindex 027aa62cbf9..aed1c42580e 100644--- a/studio/frontend/src/i18n/locales/ar.ts+++ b/studio/frontend/src/i18n/locales/ar.ts@@ -1816,20 +1816,14 @@ export const ar = {},notifications: {sectionTitle: "الإشعارات",- showLlamaUpdates: "إشعارات تحديث llama.cpp",- showLlamaUpdatesDescription:- "التنبيه عند توفر إصدار أحدث من llama.cpp لتشغيل نماذج جديدة. أوقف التشغيل إذا كنت تُدرّب فقط.",- showLoadedModels: "مؤشر النماذج المحمّلة",- showLoadedModelsDescription:- "إظهار بطاقة صغيرة في الزاوية السفلية اليمنى تعرض كل نموذج موجود حاليًا في الذاكرة (الدردشة، الكلام، الصور، الفيديو)، مع زر لإخراج كل منها.",- showAudioCppUpdates: "إشعارات تحديث audio.cpp",- showAudioCppUpdatesDescription:- "التنبيه عندما تحتاج بيئة تشغيل audio.cpp إلى تحديث لتشغيل صفحات الصوت. أوقف التشغيل إذا كنت لا تستخدم الصوت أبدًا.",- showUnslothUpdates: "إشعارات تحديث Unsloth",- showUnslothUpdatesDescription:- "الإشعار عند توفر إصدار أحدث من Unsloth للتثبيت.",+ showLoadedModels: "بطاقة النماذج المحمّلة",+ showLoadedModelsDescription: "بطاقة في الزاوية بكل نموذج محمّل، لإخراجه بنقرة.",+ updateReminders: "تذكيرات التحديث",+ updateRemindersDescription: "عدد مرات عرض إصدار جديد عندما يكون جاهزًا.",+ llamaHint: "نماذج المحادثة وGGUF",+ audioHint: "الكلام والموسيقى والنسخ",frequency: {- always: "دائمًا",+ always: "عند توفره",daily: "مرة يوميًا",weekly: "مرة أسبوعيًا",biweekly: "كل أسبوعين",@@ -3149,6 +3143,14 @@ export const ar = {"يُحمَّل النموذج باسمه فقط عند تفعيل التبديل التلقائي للنموذج. فعّله، أو حمّل النموذج من صفحة الصوت الخاصة به أولًا.",useViaApi: "الاستخدام عبر API",},+ mediaApi: {+ title: "واجهة API للصور والفيديو",+ description: "أنشئ الصور ومقاطع الفيديو من شيفرتك عبر نقاط النهاية المتوافقة مع OpenAI.",+ images: "الصور",+ video: "الفيديو",+ placeholderModel: "النموذج المعروض مثال. حمّل نموذجًا في صفحة الصور أو الفيديو وافتح هذا من زر API فيها لملئه.",+ autoSwitchOff: "التبديل التلقائي للوسائط متوقف، لذا تعمل الطلبات على النموذج المحمّل في الصفحة أيًّا كان الاسم المرسل.",+ },decisionApi: {title: "واجهة القرارات البرمجية",docs: "التوثيق",@@ -3228,6 +3230,24 @@ export const ar = {desktopAppVersionUnavailable: "غير متاح",llamaCppVersion: "إصدار llama.cpp",audioCppVersion: "إصدار audio.cpp",+ whisperCppVersion: "إصدار whisper.cpp",+ engines: {+ title: "المحركات",+ description: "بيئات التشغيل التي يستخدمها Unsloth لتشغيل النماذج. تُثبَّت التحديثات في الخلفية دون إعادة تشغيل.",+ updatesLabel: "تحديثات المحركات",+ notInstalled: "غير مثبّت",+ available: "{version} متاح",+ upToDate: "محدّث",+ updatesAvailable: "توجد تحديثات",+ checking: "جارٍ البحث عن تحديثات...",+ checkFailed: "تعذّر البحث عن تحديثات. حاول مرة أخرى لاحقًا.",+ unsupported: "تُدار محركات هذا التثبيت خارج Unsloth.",+ checkForUpdates: "البحث عن تحديثات",+ update: "تحديث",+ updating: "جارٍ التحديث...",+ updated: "تم تحديث المحركات.",+ updateFailed: "فشل التحديث: {error}",+ },hardware: "الأجهزة",gpu: "GPU",gpuIntegrated: "مدمجة",@@ -3311,6 +3331,9 @@ export const ar = {docsUpdating: "التحديث",docsMac: "Mac",docsWindows: "Windows",+ docsLinux: "Linux",+ docsDocker: "Docker",+ docsAmd: "AMD",},},},diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.tsindex 860cd811e40..81ee391371c 100644--- a/studio/frontend/src/i18n/locales/de.ts+++ b/studio/frontend/src/i18n/locales/de.ts@@ -1837,20 +1837,14 @@ export const de = {},notifications: {sectionTitle: "Benachrichtigungen",- showLlamaUpdates: "llama.cpp-Update-Benachrichtigungen",- showLlamaUpdatesDescription:- "Benachrichtigt, wenn ein neuerer llama.cpp-Build verfügbar ist, um neue Modelle auszuführen. Deaktivieren Sie dies, wenn Sie nur trainieren.",- showLoadedModels: "Anzeige geladener Modelle",- showLoadedModelsDescription:- "Zeigt unten rechts eine kleine Karte mit allen derzeit im Speicher befindlichen Modellen (Chat, Sprache, Bild, Video) und einer Schaltfläche, um jedes einzeln zu entladen.",- showAudioCppUpdates: "audio.cpp-Update-Benachrichtigungen",- showAudioCppUpdatesDescription:- "Benachrichtigt, wenn die audio.cpp-Laufzeit ein Update für die Audio-Seiten braucht. Deaktivieren Sie dies, wenn Sie Audio nie verwenden.",- showUnslothUpdates: "Unsloth-Update-Benachrichtigungen",- showUnslothUpdatesDescription:- "Benachrichtigen, wenn eine neuere Unsloth-Version zur Installation bereitsteht.",+ showLoadedModels: "Karte geladener Modelle",+ showLoadedModelsDescription: "Eine Eckkarte mit allen geladenen Modellen, mit einem Klick entladbar.",+ updateReminders: "Update-Erinnerungen",+ updateRemindersDescription: "Wie oft eine neue Version angeboten wird, sobald sie bereit ist.",+ llamaHint: "Chat- und GGUF-Modelle",+ audioHint: "Sprache, Musik und Transkription",frequency: {- always: "Immer",+ always: "Sobald verfügbar",daily: "Einmal täglich",weekly: "Einmal pro Woche",biweekly: "Alle zwei Wochen",@@ -3196,6 +3190,14 @@ export const de = {"Das Modell wird nur per Name geladen, wenn der automatische Modellwechsel an ist. Schalte ihn ein oder lade das Modell zuerst auf seiner Audio-Seite.",useViaApi: "Per API nutzen",},+ mediaApi: {+ title: "Bild- und Video-API",+ description: "Erzeuge Bilder und Videos aus deinem eigenen Code über die OpenAI-kompatiblen Endpunkte.",+ images: "Bilder",+ video: "Video",+ placeholderModel: "Das gezeigte Modell ist ein Beispiel. Lade ein Modell auf der Bilder- oder Video-Seite und öffne dies über deren API-Schaltfläche, um es einzusetzen.",+ autoSwitchOff: "Der automatische Medienwechsel ist aus, daher laufen Anfragen auf dem Modell, das die Seite geladen hat, egal welches sie nennen.",+ },decisionApi: {title: "Entscheidungs-API",docs: "Dokumentation",@@ -3275,6 +3277,24 @@ export const de = {desktopAppVersionUnavailable: "Nicht verfügbar",llamaCppVersion: "llama.cpp-Version",audioCppVersion: "audio.cpp-Version",+ whisperCppVersion: "whisper.cpp-Version",+ engines: {+ title: "Engines",+ description: "Die Laufzeiten, mit denen Unsloth Modelle ausführt. Updates werden im Hintergrund installiert, ohne Neustart.",+ updatesLabel: "Engine-Updates",+ notInstalled: "Nicht installiert",+ available: "{version} verfügbar",+ upToDate: "Auf dem neuesten Stand",+ updatesAvailable: "Updates verfügbar",+ checking: "Suche nach Updates...",+ checkFailed: "Updates konnten nicht geprüft werden. Versuche es später erneut.",+ unsupported: "Die Engines dieser Installation werden außerhalb von Unsloth verwaltet.",+ checkForUpdates: "Nach Updates suchen",+ update: "Aktualisieren",+ updating: "Wird aktualisiert...",+ updated: "Engines aktualisiert.",+ updateFailed: "Update fehlgeschlagen: {error}",+ },hardware: "Hardware",gpu: "GPU",gpuIntegrated: "integriert",@@ -3361,6 +3381,9 @@ export const de = {docsUpdating: "Aktualisierung",docsMac: "Mac",docsWindows: "Windows",+ docsLinux: "Linux",+ docsDocker: "Docker",+ docsAmd: "AMD",},},},diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.tsindex 9911a84031e..5f7c06c5794 100644--- a/studio/frontend/src/i18n/locales/en.ts+++ b/studio/frontend/src/i18n/locales/en.ts@@ -1896,20 +1896,14 @@ export const en = {},notifications: {sectionTitle: "Notifications",- showLlamaUpdates: "llama.cpp update notifications",- showLlamaUpdatesDescription:- "Notify when a newer llama.cpp build is available to run new models. Turn off if you only train.",- showLoadedModels: "Loaded models indicator",- showLoadedModelsDescription:- "Show a small card in the bottom-right corner listing every model currently in memory (chat, speech, image, video), with a button to eject each one.",- showAudioCppUpdates: "audio.cpp update notifications",- showAudioCppUpdatesDescription:- "Notify when the audio.cpp runtime needs an update to run the Audio pages. Turn off if you never use Audio.",- showUnslothUpdates: "Unsloth update notifications",- showUnslothUpdatesDescription:- "Notify when a newer version of Unsloth is available to install.",+ showLoadedModels: "Loaded models card",+ showLoadedModelsDescription: "A corner card with every loaded model, to unload one in a click.",+ updateReminders: "Update reminders",+ updateRemindersDescription: "How often to offer a new version when one is ready.",+ llamaHint: "Chat and GGUF models",+ audioHint: "Speech, music and transcription",frequency: {- always: "Always",+ always: "Whenever available",daily: "Once a day",weekly: "Once a week",biweekly: "Every two weeks",@@ -3208,6 +3202,14 @@ export const en = {"The model loads by name only while Model auto-switch is on. Turn it on, or load the model on its Audio page first.",useViaApi: "Use via API",},+ mediaApi: {+ title: "Image and video API",+ description: "Generate images and videos from your own code with the OpenAI-compatible endpoints.",+ images: "Images",+ video: "Video",+ placeholderModel: "The model shown is an example. Load a model on the Images or Video page and open this from its API button to fill it in.",+ autoSwitchOff: "Media auto-switch is off, so requests run on the model the page has loaded, whatever they name.",+ },decisionApi: {title: "Decision API",docs: "Docs",@@ -3285,6 +3287,24 @@ export const en = {desktopAppVersionUnavailable: "Unavailable",llamaCppVersion: "llama.cpp Version",audioCppVersion: "audio.cpp Version",+ whisperCppVersion: "whisper.cpp Version",+ engines: {+ title: "Engines",+ description: "The runtimes Unsloth uses to run models. Updates install in the background, with no restart.",+ updatesLabel: "Engine updates",+ notInstalled: "Not installed",+ available: "{version} available",+ upToDate: "Up to date",+ updatesAvailable: "Updates available",+ checking: "Checking for updates...",+ checkFailed: "Couldn't check for updates. Try again later.",+ unsupported: "This install's engines are managed outside Unsloth.",+ checkForUpdates: "Check for updates",+ update: "Update",+ updating: "Updating...",+ updated: "Engines updated.",+ updateFailed: "Update failed: {error}",+ },hardware: "Hardware",gpu: "GPU",gpuIntegrated: "integrated",@@ -3369,6 +3389,9 @@ export const en = {docsUpdating: "Updating",docsMac: "Mac",docsWindows: "Windows",+ docsLinux: "Linux",+ docsDocker: "Docker",+ docsAmd: "AMD",},},},diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.tsindex 02d1546a9f8..4b164dbc750 100644--- a/studio/frontend/src/i18n/locales/es.ts+++ b/studio/frontend/src/i18n/locales/es.ts@@ -1833,20 +1833,14 @@ export const es = {},notifications: {sectionTitle: "Notificaciones",- showLlamaUpdates: "Notificaciones de actualización de llama.cpp",- showLlamaUpdatesDescription:- "Avisa cuando haya una compilación más reciente de llama.cpp para ejecutar nuevos modelos. Desactívalo si solo entrenas.",- showLoadedModels: "Indicador de modelos cargados",- showLoadedModelsDescription:- "Muestra una pequeña tarjeta en la esquina inferior derecha con todos los modelos actualmente en memoria (chat, voz, imagen, vídeo), con un botón para expulsar cada uno.",- showAudioCppUpdates: "Notificaciones de actualización de audio.cpp",- showAudioCppUpdatesDescription:- "Avisa cuando el entorno de ejecución de audio.cpp necesite una actualización para las páginas de Audio. Desactívalo si nunca usas Audio.",- showUnslothUpdates: "Notificaciones de actualización de Unsloth",- showUnslothUpdatesDescription:- "Avisar cuando haya una versión más reciente de Unsloth para instalar.",+ showLoadedModels: "Tarjeta de modelos cargados",+ showLoadedModelsDescription: "Una tarjeta en la esquina con cada modelo cargado, para descargarlo con un clic.",+ updateReminders: "Recordatorios de actualización",+ updateRemindersDescription: "Con qué frecuencia ofrecer una versión nueva cuando esté lista.",+ llamaHint: "Modelos de chat y GGUF",+ audioHint: "Voz, música y transcripción",frequency: {- always: "Siempre",+ always: "Cuando haya una",daily: "Una vez al día",weekly: "Una vez a la semana",biweekly: "Cada dos semanas",@@ -3189,6 +3183,14 @@ export const es = {"El modelo solo se carga por su nombre con el cambio automático de modelo activado. Actívalo o carga antes el modelo en su página de Audio.",useViaApi: "Usar por API",},+ mediaApi: {+ title: "API de imagen y video",+ description: "Genera imágenes y videos desde tu propio código con los endpoints compatibles con OpenAI.",+ images: "Imágenes",+ video: "Video",+ placeholderModel: "El modelo mostrado es un ejemplo. Carga un modelo en la página de Imágenes o Video y abre esto desde su botón de API para completarlo.",+ autoSwitchOff: "El cambio automático de medios está desactivado, así que las solicitudes usan el modelo cargado en la página, sin importar cuál nombren.",+ },decisionApi: {title: "API de decisiones",docs: "Documentación",@@ -3269,6 +3271,24 @@ export const es = {desktopAppVersionUnavailable: "No disponible",llamaCppVersion: "Versión de llama.cpp",audioCppVersion: "Versión de audio.cpp",+ whisperCppVersion: "Versión de whisper.cpp",+ engines: {+ title: "Motores",+ description: "Los entornos que usa Unsloth para ejecutar modelos. Las actualizaciones se instalan en segundo plano, sin reiniciar.",+ updatesLabel: "Actualizaciones de motores",+ notInstalled: "No instalado",+ available: "{version} disponible",+ upToDate: "Actualizado",+ updatesAvailable: "Hay actualizaciones",+ checking: "Buscando actualizaciones...",+ checkFailed: "No se pudieron buscar actualizaciones. Inténtalo más tarde.",+ unsupported: "Los motores de esta instalación se gestionan fuera de Unsloth.",+ checkForUpdates: "Buscar actualizaciones",+ update: "Actualizar",+ updating: "Actualizando...",+ updated: "Motores actualizados.",+ updateFailed: "Error al actualizar: {error}",+ },hardware: "Hardware",gpu: "GPU",gpuIntegrated: "integrada",@@ -3355,6 +3375,9 @@ export const es = {docsUpdating: "Actualización",docsMac: "Mac",docsWindows: "Windows",+ docsLinux: "Linux",+ docsDocker: "Docker",+ docsAmd: "AMD",},},},diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.tsindex bd5ba36558e..7d6e01ff150 100644--- a/studio/frontend/src/i18n/locales/fr.ts+++ b/studio/frontend/src/i18n/locales/fr.ts@@ -1835,20 +1835,14 @@ export const fr = {},notifications: {sectionTitle: "Notifications",- showLlamaUpdates: "Notifications de mise à jour de llama.cpp",- showLlamaUpdatesDescription:- "Notifier lorsqu'une nouvelle version de llama.cpp est disponible pour exécuter de nouveaux modèles. Désactivez si vous ne faites que de l'entraînement.",- showLoadedModels: "Indicateur des modèles chargés",- showLoadedModelsDescription:- "Affiche une petite carte en bas à droite listant tous les modèles actuellement en mémoire (chat, voix, image, vidéo), avec un bouton pour éjecter chacun d'eux.",- showAudioCppUpdates: "Notifications de mise à jour d'audio.cpp",- showAudioCppUpdatesDescription:- "Notifier lorsque le moteur audio.cpp doit être mis à jour pour les pages Audio. Désactivez si vous n'utilisez jamais Audio.",- showUnslothUpdates: "Notifications de mise à jour d'Unsloth",- showUnslothUpdatesDescription:- "Prévenir lorsqu'une version plus récente d'Unsloth est disponible à l'installation.",+ showLoadedModels: "Carte des modèles chargés",+ showLoadedModelsDescription: "Une carte dans le coin avec chaque modèle chargé, à décharger en un clic.",+ updateReminders: "Rappels de mise à jour",+ updateRemindersDescription: "À quelle fréquence proposer une nouvelle version quand elle est prête.",+ llamaHint: "Modèles de chat et GGUF",+ audioHint: "Voix, musique et transcription",frequency: {- always: "Toujours",+ always: "Dès que disponible",daily: "Une fois par jour",weekly: "Une fois par semaine",biweekly: "Toutes les deux semaines",@@ -3197,6 +3191,14 @@ export const fr = {"Le modèle ne se charge par son nom que si le changement automatique de modèle est activé. Activez-le, ou chargez d'abord le modèle sur sa page Audio.",useViaApi: "Utiliser via l'API",},+ mediaApi: {+ title: "API image et vidéo",+ description: "Générez des images et des vidéos depuis votre propre code avec les points de terminaison compatibles OpenAI.",+ images: "Images",+ video: "Vidéo",+ placeholderModel: "Le modèle affiché est un exemple. Chargez un modèle sur la page Images ou Vidéo et ouvrez ceci depuis son bouton API pour le renseigner.",+ autoSwitchOff: "Le changement automatique de média est désactivé : les requêtes utilisent le modèle chargé par la page, quel que soit celui qu'elles nomment.",+ },decisionApi: {title: "API de décision",docs: "Documentation",@@ -3277,6 +3279,24 @@ export const fr = {desktopAppVersionUnavailable: "Indisponible",llamaCppVersion: "Version de llama.cpp",audioCppVersion: "Version d'audio.cpp",+ whisperCppVersion: "Version de whisper.cpp",+ engines: {+ title: "Moteurs",+ description: "Les environnements d'exécution qu'Unsloth utilise pour faire tourner les modèles. Les mises à jour s'installent en arrière-plan, sans redémarrage.",+ updatesLabel: "Mises à jour des moteurs",+ notInstalled: "Non installé",+ available: "{version} disponible",+ upToDate: "À jour",+ updatesAvailable: "Mises à jour disponibles",+ checking: "Recherche de mises à jour...",+ checkFailed: "Impossible de rechercher les mises à jour. Réessayez plus tard.",+ unsupported: "Les moteurs de cette installation sont gérés en dehors d'Unsloth.",+ checkForUpdates: "Rechercher des mises à jour",+ update: "Mettre à jour",+ updating: "Mise à jour...",+ updated: "Moteurs mis à jour.",+ updateFailed: "Échec de la mise à jour : {error}",+ },hardware: "Matériel",gpu: "GPU",gpuIntegrated: "intégrée",@@ -3364,6 +3384,9 @@ export const fr = {docsUpdating: "Mise à jour",docsMac: "Mac",docsWindows: "Windows",+ docsLinux: "Linux",+ docsDocker: "Docker",+ docsAmd: "AMD",},},},diff --git a/studio/frontend/src/i18n/locales/he.ts b/studio/frontend/src/i18n/locales/he.tsindex a7c475c3dea..1843e836363 100644--- a/studio/frontend/src/i18n/locales/he.ts+++ b/studio/frontend/src/i18n/locales/he.ts@@ -1927,20 +1927,14 @@ export const he = {},notifications: {sectionTitle: "התראות",- showLlamaUpdates: "התראות עדכון llama.cpp",- showLlamaUpdatesDescription:- "הודע כאשר גרסה חדשה יותר של llama.cpp זמינה להרצת מודלים חדשים. כבה אם אתה רק מאמן מודלים.",- showLoadedModels: "חיווי מודלים טעונים",- showLoadedModelsDescription:- "הצג כרטיס קטן בפינה הימנית התחתונה המפרט כל מודל שנמצא כרגע בזיכרון (צ'אט, דיבור, תמונה, וידאו), עם כפתור לפריקת כל אחד מהם.",- showAudioCppUpdates: "התראות עדכון של audio.cpp",- showAudioCppUpdatesDescription:- "הודע כאשר סביבת הריצה של audio.cpp צריכה עדכון עבור דפי האודיו. כבה אם אינך משתמש באודיו אף פעם.",- showUnslothUpdates: "התראות עדכון של Unsloth",- showUnslothUpdatesDescription:- "הודעה כשגרסה חדשה יותר של Unsloth זמינה להתקנה.",+ showLoadedModels: "כרטיס מודלים טעונים",+ showLoadedModelsDescription: "כרטיס בפינה עם כל מודל טעון, לפריקה בלחיצה.",+ updateReminders: "תזכורות עדכון",+ updateRemindersDescription: "באיזו תדירות להציע גרסה חדשה כשהיא מוכנה.",+ llamaHint: "מודלי צ'אט ו-GGUF",+ audioHint: "דיבור, מוזיקה ותמלול",frequency: {- always: "תמיד",+ always: "כשזמין",daily: "פעם ביום",weekly: "פעם בשבוע",biweekly: "כל שבועיים",@@ -3270,6 +3264,14 @@ export const he = {"המודל נטען לפי שם רק כשהחלפת מודל אוטומטית פועלת. הפעל אותה, או טען קודם את המודל בדף השמע שלו.",useViaApi: "שימוש דרך API",},+ mediaApi: {+ title: "API לתמונות ולווידאו",+ description: "צרו תמונות וסרטונים מהקוד שלכם דרך נקודות הקצה התואמות ל-OpenAI.",+ images: "תמונות",+ video: "וידאו",+ placeholderModel: "המודל המוצג הוא דוגמה. טענו מודל בדף התמונות או הווידאו ופתחו את זה מכפתור ה-API שלו כדי למלא אותו.",+ autoSwitchOff: "המעבר האוטומטי למדיה כבוי, ולכן הבקשות רצות על המודל שהדף טען, לא משנה איזה שם הן נותנות.",+ },decisionApi: {title: "ממשק API להחלטות",docs: "תיעוד",@@ -3351,6 +3353,24 @@ export const he = {desktopAppVersionUnavailable: "לא זמין",llamaCppVersion: "גרסת llama.cpp",audioCppVersion: "גרסת audio.cpp",+ whisperCppVersion: "גרסת whisper.cpp",+ engines: {+ title: "מנועים",+ description: "סביבות ההרצה ש-Unsloth משתמש בהן כדי להריץ מודלים. העדכונים מותקנים ברקע, ללא הפעלה מחדש.",+ updatesLabel: "עדכוני מנועים",+ notInstalled: "לא מותקן",+ available: "{version} זמין",+ upToDate: "מעודכן",+ updatesAvailable: "יש עדכונים",+ checking: "מחפש עדכונים...",+ checkFailed: "לא ניתן היה לחפש עדכונים. נסה שוב מאוחר יותר.",+ unsupported: "המנועים של התקנה זו מנוהלים מחוץ ל-Unsloth.",+ checkForUpdates: "חיפוש עדכונים",+ update: "עדכון",+ updating: "מעדכן...",+ updated: "המנועים עודכנו.",+ updateFailed: "העדכון נכשל: {error}",+ },hardware: "חומרה",gpu: "GPU",gpuIntegrated: "משולב",@@ -3433,6 +3453,9 @@ export const he = {docsUpdating: "עדכון",docsMac: "Mac",docsWindows: "Windows",+ docsLinux: "Linux",+ docsDocker: "Docker",+ docsAmd: "AMD",},},},diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.tsindex aa22cc9e19d..bdd342f8913 100644--- a/studio/frontend/src/i18n/locales/hi.ts+++ b/studio/frontend/src/i18n/locales/hi.ts@@ -1820,20 +1820,14 @@ export const hi = {},notifications: {sectionTitle: "सूचनाएं",- showLlamaUpdates: "llama.cpp अपडेट सूचनाएं",- showLlamaUpdatesDescription:- "नए मॉडल चलाने के लिए जब कोई नया llama.cpp बिल्ड उपलब्ध हो तो सूचित करें। यदि आप केवल ट्रेन करते हैं तो बंद कर दें।",- showLoadedModels: "लोड किए गए मॉडल का संकेतक",- showLoadedModelsDescription:- "नीचे दाएं कोने में एक छोटा कार्ड दिखाएं जिसमें वर्तमान में मेमोरी में मौजूद हर मॉडल (चैट, स्पीच, इमेज, वीडियो) सूचीबद्ध हो, और हर एक को हटाने के लिए एक बटन हो।",- showAudioCppUpdates: "audio.cpp अपडेट सूचनाएं",- showAudioCppUpdatesDescription:- "जब ऑडियो पेजों के लिए audio.cpp रनटाइम को अपडेट की ज़रूरत हो तो सूचित करें। यदि आप कभी ऑडियो का उपयोग नहीं करते हैं तो बंद कर दें।",- showUnslothUpdates: "Unsloth अपडेट सूचनाएँ",- showUnslothUpdatesDescription:- "जब Unsloth का नया संस्करण इंस्टॉल करने के लिए उपलब्ध हो, तब सूचित करें।",+ showLoadedModels: "लोड किए गए मॉडल कार्ड",+ showLoadedModelsDescription: "कोने में हर लोड किए गए मॉडल का कार्ड, एक क्लिक में अनलोड करने के लिए।",+ updateReminders: "अपडेट रिमाइंडर",+ updateRemindersDescription: "नया संस्करण तैयार होने पर उसे कितनी बार पेश करना है।",+ llamaHint: "चैट और GGUF मॉडल",+ audioHint: "स्पीच, संगीत और ट्रांसक्रिप्शन",frequency: {- always: "हमेशा",+ always: "उपलब्ध होते ही",daily: "दिन में एक बार",weekly: "सप्ताह में एक बार",biweekly: "हर दो सप्ताह में",@@ -3158,6 +3152,14 @@ export const hi = {"मॉडल नाम से तभी लोड होता है जब मॉडल ऑटो-स्विच चालू हो। इसे चालू करें, या पहले मॉडल को उसके ऑडियो पेज पर लोड करें।",useViaApi: "API से इस्तेमाल करें",},+ mediaApi: {+ title: "इमेज और वीडियो API",+ description: "OpenAI-संगत एंडपॉइंट से अपने कोड से इमेज और वीडियो बनाएं।",+ images: "इमेज",+ video: "वीडियो",+ placeholderModel: "दिखाया गया मॉडल एक उदाहरण है। इमेज या वीडियो पेज पर मॉडल लोड करें और उसे भरने के लिए उसके API बटन से इसे खोलें।",+ autoSwitchOff: "मीडिया ऑटो-स्विच बंद है, इसलिए अनुरोध उसी मॉडल पर चलते हैं जो पेज ने लोड किया है, चाहे वे कोई भी नाम दें।",+ },decisionApi: {title: "निर्णय API",docs: "दस्तावेज़",@@ -3237,6 +3239,24 @@ export const hi = {desktopAppVersionUnavailable: "उपलब्ध नहीं",llamaCppVersion: "llama.cpp संस्करण",audioCppVersion: "audio.cpp संस्करण",+ whisperCppVersion: "whisper.cpp संस्करण",+ engines: {+ title: "इंजन",+ description: "वे रनटाइम जिनसे Unsloth मॉडल चलाता है। अपडेट बैकग्राउंड में इंस्टॉल होते हैं, रीस्टार्ट की ज़रूरत नहीं।",+ updatesLabel: "इंजन अपडेट",+ notInstalled: "इंस्टॉल नहीं है",+ available: "{version} उपलब्ध",+ upToDate: "अप टू डेट",+ updatesAvailable: "अपडेट उपलब्ध हैं",+ checking: "अपडेट खोजे जा रहे हैं...",+ checkFailed: "अपडेट नहीं खोजे जा सके। बाद में फिर से कोशिश करें।",+ unsupported: "इस इंस्टॉल के इंजन Unsloth के बाहर प्रबंधित होते हैं।",+ checkForUpdates: "अपडेट खोजें",+ update: "अपडेट करें",+ updating: "अपडेट हो रहा है...",+ updated: "इंजन अपडेट हो गए।",+ updateFailed: "अपडेट विफल: {error}",+ },hardware: "हार्डवेयर",gpu: "GPU",gpuIntegrated: "इंटीग्रेटेड",@@ -3322,6 +3342,9 @@ export const hi = {docsUpdating: "अपडेट करना",docsMac: "Mac",docsWindows: "Windows",+ docsLinux: "Linux",+ docsDocker: "Docker",+ docsAmd: "AMD",},},},diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.tsindex 87c0f580341..df136e159fc 100644--- a/studio/frontend/src/i18n/locales/it.ts+++ b/studio/frontend/src/i18n/locales/it.ts@@ -1761,20 +1761,14 @@ export const it = {},notifications: {sectionTitle: "Notifiche",- showLlamaUpdates: "Notifiche di aggiornamento di llama.cpp",- showLlamaUpdatesDescription:- "Avvisa quando è disponibile una build più recente di llama.cpp per eseguire nuovi modelli. Disattiva le notifiche se usi Unsloth solo per l'addestramento.",- showLoadedModels: "Indicatore dei modelli caricati",- showLoadedModelsDescription:- "Mostra una piccola scheda in basso a destra con tutti i modelli attualmente in memoria (chat, voce, immagini, video), con un pulsante per rimuovere ciascuno.",- showAudioCppUpdates: "Notifiche di aggiornamento di audio.cpp",- showAudioCppUpdatesDescription:- "Avvisa quando il runtime di audio.cpp deve essere aggiornato per le pagine Audio. Disattiva le notifiche se non usi mai Audio.",- showUnslothUpdates: "Notifiche di aggiornamento di Unsloth",- showUnslothUpdatesDescription:- "Avvisa quando è disponibile una versione più recente di Unsloth da installare.",+ showLoadedModels: "Scheda dei modelli caricati",+ showLoadedModelsDescription: "Una scheda nell'angolo con ogni modello caricato, da scaricare con un clic.",+ updateReminders: "Promemoria di aggiornamento",+ updateRemindersDescription: "Ogni quanto proporre una nuova versione quando è pronta.",+ llamaHint: "Modelli di chat e GGUF",+ audioHint: "Voce, musica e trascrizione",frequency: {- always: "Sempre",+ always: "Appena disponibile",daily: "Una volta al giorno",weekly: "Una volta a settimana",biweekly: "Ogni due settimane",@@ -3102,6 +3096,14 @@ export const it = {"Il modello si carica per nome solo con il cambio automatico del modello attivo. Attivalo, oppure carica prima il modello dalla sua pagina Audio.",useViaApi: "Usa via API",},+ mediaApi: {+ title: "API per immagini e video",+ description: "Genera immagini e video dal tuo codice con gli endpoint compatibili con OpenAI.",+ images: "Immagini",+ video: "Video",+ placeholderModel: "Il modello mostrato è un esempio. Carica un modello nella pagina Immagini o Video e apri questa sezione dal suo pulsante API per compilarlo.",+ autoSwitchOff: "Il cambio automatico dei media è disattivato, quindi le richieste usano il modello caricato nella pagina, qualunque nome indichino.",+ },decisionApi: {title: "API decisionale",docs: "Documentazione",@@ -3180,6 +3182,24 @@ export const it = {packageVersion: "Versione del pacchetto",llamaCppVersion: "Versione di llama.cpp",audioCppVersion: "Versione di audio.cpp",+ whisperCppVersion: "Versione di whisper.cpp",+ engines: {+ title: "Motori",+ description: "I runtime che Unsloth usa per eseguire i modelli. Gli aggiornamenti si installano in background, senza riavvio.",+ updatesLabel: "Aggiornamenti dei motori",+ notInstalled: "Non installato",+ available: "{version} disponibile",+ upToDate: "Aggiornato",+ updatesAvailable: "Aggiornamenti disponibili",+ checking: "Ricerca aggiornamenti...",+ checkFailed: "Impossibile cercare aggiornamenti. Riprova più tardi.",+ unsupported: "I motori di questa installazione sono gestiti fuori da Unsloth.",+ checkForUpdates: "Cerca aggiornamenti",+ update: "Aggiorna",+ updating: "Aggiornamento...",+ updated: "Motori aggiornati.",+ updateFailed: "Aggiornamento non riuscito: {error}",+ },hardware: "Hardware",gpu: "GPU",gpuIntegrated: "integrata",@@ -3268,6 +3288,9 @@ export const it = {docsUpdating: "Aggiornamento",docsMac: "Mac",docsWindows: "Windows",+ docsLinux: "Linux",+ docsDocker: "Docker",+ docsAmd: "AMD",},},},diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.tsindex 7b1ad78ba8c..ab6a16a2037 100644--- a/studio/frontend/src/i18n/locales/ja.ts+++ b/studio/frontend/src/i18n/locales/ja.ts@@ -1807,18 +1807,14 @@ export const ja = {},notifications: {sectionTitle: "通知",- showLlamaUpdates: "llama.cpp のアップデート通知",- showLlamaUpdatesDescription: "新しいモデルを実行するための新しい llama.cpp ビルドが利用可能になったときに通知します。トレーニングのみを行う場合はオフにしてください。",- showLoadedModels: "読み込み済みモデルのインジケーター",- showLoadedModelsDescription: "現在メモリ上にあるすべてのモデル(チャット、音声、画像、動画)を一覧表示する小さなカードを右下に表示します。各モデルを解放するボタンが付いています。",- showAudioCppUpdates: "audio.cpp のアップデート通知",- showAudioCppUpdatesDescription:- "音声ページに必要な audio.cpp ランタイムの更新があるときに通知します。音声機能を使わない場合はオフにしてください。",- showUnslothUpdates: "Unsloth のアップデート通知",- showUnslothUpdatesDescription:- "新しいバージョンの Unsloth をインストールできるようになったときに通知します。",+ showLoadedModels: "読み込み済みモデルのカード",+ showLoadedModelsDescription: "読み込み中のモデルを並べた隅のカード。ワンクリックで取り出せます。",+ updateReminders: "更新のお知らせ",+ updateRemindersDescription: "新しいバージョンの準備ができたときに案内する頻度です。",+ llamaHint: "チャットと GGUF モデル",+ audioHint: "音声、音楽、文字起こし",frequency: {- always: "常に",+ always: "出るたびに",daily: "1日1回",weekly: "週に1回",biweekly: "2週間に1回",@@ -3119,6 +3115,14 @@ export const ja = {"モデルの自動切り替えがオンのときだけ、名前でモデルが読み込まれます。オンにするか、先にそのモデルをオーディオページで読み込んでください。",useViaApi: "API で使う",},+ mediaApi: {+ title: "画像と動画の API",+ description: "OpenAI 互換のエンドポイントで、自分のコードから画像と動画を生成できます。",+ images: "画像",+ video: "動画",+ placeholderModel: "表示中のモデルは例です。画像または動画ページでモデルを読み込み、そのページの API ボタンからここを開くと入力されます。",+ autoSwitchOff: "メディアの自動切り替えがオフのため、リクエストは指定した名前にかかわらず、ページで読み込まれているモデルで実行されます。",+ },decisionApi: {title: "判定 API",docs: "ドキュメント",@@ -3198,6 +3202,24 @@ export const ja = {desktopAppVersionUnavailable: "利用できません",llamaCppVersion: "llama.cpp バージョン",audioCppVersion: "audio.cpp バージョン",+ whisperCppVersion: "whisper.cpp バージョン",+ engines: {+ title: "エンジン",+ description: "Unsloth がモデルの実行に使うランタイムです。更新はバックグラウンドでインストールされ、再起動は不要です。",+ updatesLabel: "エンジンの更新",+ notInstalled: "未インストール",+ available: "{version} を利用可能",+ upToDate: "最新です",+ updatesAvailable: "更新があります",+ checking: "更新を確認しています...",+ checkFailed: "更新を確認できませんでした。後でもう一度お試しください。",+ unsupported: "このインストールのエンジンは Unsloth の外部で管理されています。",+ checkForUpdates: "更新を確認",+ update: "更新",+ updating: "更新しています...",+ updated: "エンジンを更新しました。",+ updateFailed: "更新に失敗しました: {error}",+ },hardware: "ハードウェア",gpu: "GPU",gpuIntegrated: "内蔵",@@ -3278,6 +3300,9 @@ export const ja = {docsUpdating: "アップデート方法",docsMac: "Mac",docsWindows: "Windows",+ docsLinux: "Linux",+ docsDocker: "Docker",+ docsAmd: "AMD",},},},diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.tsindex 357d17efcf8..611ded645ab 100644--- a/studio/frontend/src/i18n/locales/ko.ts+++ b/studio/frontend/src/i18n/locales/ko.ts@@ -1813,20 +1813,14 @@ export const ko = {},notifications: {sectionTitle: "알림",- showLlamaUpdates: "llama.cpp 업데이트 알림",- showLlamaUpdatesDescription:- "새 모델 실행을 위한 최신 llama.cpp 업데이트가 있으면 알려드립니다. 학습 기능만 사용하는 경우 꺼두세요.",- showLoadedModels: "로드된 모델 표시기",- showLoadedModelsDescription:- "현재 메모리에 있는 모든 모델(채팅, 음성, 이미지, 비디오)을 오른쪽 아래 작은 카드에 표시하고, 각각을 해제하는 버튼을 제공합니다.",- showAudioCppUpdates: "audio.cpp 업데이트 알림",- showAudioCppUpdatesDescription:- "오디오 페이지에 필요한 audio.cpp 런타임 업데이트가 있으면 알립니다. 오디오를 사용하지 않는다면 끄세요.",- showUnslothUpdates: "Unsloth 업데이트 알림",- showUnslothUpdatesDescription:- "설치할 수 있는 새 Unsloth 버전이 있으면 알립니다.",+ showLoadedModels: "로드된 모델 카드",+ showLoadedModelsDescription: "로드된 모든 모델을 보여 주는 모서리 카드로, 클릭 한 번에 내릴 수 있습니다.",+ updateReminders: "업데이트 알림",+ updateRemindersDescription: "새 버전이 준비되면 얼마나 자주 안내할지 정합니다.",+ llamaHint: "채팅 및 GGUF 모델",+ audioHint: "음성, 음악, 받아쓰기",frequency: {- always: "항상",+ always: "나올 때마다",daily: "하루에 한 번",weekly: "일주일에 한 번",biweekly: "2주에 한 번",@@ -3137,6 +3131,14 @@ export const ko = {"모델 자동 전환이 켜져 있을 때만 이름으로 모델을 불러옵니다. 자동 전환을 켜거나 먼저 오디오 페이지에서 모델을 불러오세요.",useViaApi: "API로 사용",},+ mediaApi: {+ title: "이미지 및 동영상 API",+ description: "OpenAI 호환 엔드포인트로 직접 작성한 코드에서 이미지와 동영상을 생성하세요.",+ images: "이미지",+ video: "동영상",+ placeholderModel: "표시된 모델은 예시입니다. 이미지 또는 동영상 페이지에서 모델을 로드한 뒤 그 페이지의 API 버튼으로 여기를 열면 채워집니다.",+ autoSwitchOff: "미디어 자동 전환이 꺼져 있어 요청은 이름과 관계없이 페이지에 로드된 모델에서 실행됩니다.",+ },decisionApi: {title: "판단 API",docs: "문서",@@ -3216,6 +3218,24 @@ export const ko = {desktopAppVersionUnavailable: "확인할 수 없음",llamaCppVersion: "llama.cpp 버전",audioCppVersion: "audio.cpp 버전",+ whisperCppVersion: "whisper.cpp 버전",+ engines: {+ title: "엔진",+ description: "Unsloth가 모델을 실행하는 데 사용하는 런타임입니다. 업데이트는 재시작 없이 백그라운드에서 설치됩니다.",+ updatesLabel: "엔진 업데이트",+ notInstalled: "설치되지 않음",+ available: "{version} 사용 가능",+ upToDate: "최신 상태",+ updatesAvailable: "업데이트 있음",+ checking: "업데이트 확인 중...",+ checkFailed: "업데이트를 확인할 수 없습니다. 나중에 다시 시도하세요.",+ unsupported: "이 설치의 엔진은 Unsloth 외부에서 관리됩니다.",+ checkForUpdates: "업데이트 확인",+ update: "업데이트",+ updating: "업데이트 중...",+ updated: "엔진이 업데이트되었습니다.",+ updateFailed: "업데이트 실패: {error}",+ },hardware: "하드웨어",gpu: "GPU",gpuIntegrated: "내장",@@ -3300,6 +3320,9 @@ export const ko = {docsUpdating: "업데이트",docsMac: "Mac",docsWindows: "Windows",+ docsLinux: "Linux",+ docsDocker: "Docker",+ docsAmd: "AMD",},},},diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.tsindex f8332782bfd..40cf3cdff96 100644--- a/studio/frontend/src/i18n/locales/pt-br.ts+++ b/studio/frontend/src/i18n/locales/pt-br.ts@@ -1824,20 +1824,14 @@ export const ptBR = {},notifications: {sectionTitle: "Notificações",- showLlamaUpdates: "Notificações de atualização do llama.cpp",- showLlamaUpdatesDescription:- "Notifica quando uma versão mais recente do llama.cpp está disponível para executar novos modelos. Desative se você só treina modelos.",- showLoadedModels: "Indicador de modelos carregados",- showLoadedModelsDescription:- "Mostra um pequeno cartão no canto inferior direito listando todos os modelos atualmente na memória (chat, fala, imagem, vídeo), com um botão para liberar cada um.",- showAudioCppUpdates: "Notificações de atualização do audio.cpp",- showAudioCppUpdatesDescription:- "Notifica quando o runtime do audio.cpp precisa de uma atualização para as páginas de Áudio. Desative se você nunca usa Áudio.",- showUnslothUpdates: "Notificações de atualização do Unsloth",- showUnslothUpdatesDescription:- "Avisar quando houver uma versão mais recente do Unsloth para instalar.",+ showLoadedModels: "Cartão de modelos carregados",+ showLoadedModelsDescription: "Um cartão no canto com cada modelo carregado, para descarregá-lo com um clique.",+ updateReminders: "Lembretes de atualização",+ updateRemindersDescription: "Com que frequência oferecer uma versão nova quando estiver pronta.",+ llamaHint: "Modelos de chat e GGUF",+ audioHint: "Voz, música e transcrição",frequency: {- always: "Sempre",+ always: "Assim que houver",daily: "Uma vez por dia",weekly: "Uma vez por semana",biweekly: "A cada duas semanas",@@ -3168,6 +3162,14 @@ export const ptBR = {"O modelo só é carregado pelo nome com a troca automática de modelo ativada. Ative-a ou carregue antes o modelo na página de Áudio dele.",useViaApi: "Usar via API",},+ mediaApi: {+ title: "API de imagem e vídeo",+ description: "Gere imagens e vídeos no seu próprio código com os endpoints compatíveis com a OpenAI.",+ images: "Imagens",+ video: "Vídeo",+ placeholderModel: "O modelo mostrado é um exemplo. Carregue um modelo na página Imagens ou Vídeo e abra isto pelo botão de API dela para preenchê-lo.",+ autoSwitchOff: "A troca automática de mídia está desligada, então as solicitações usam o modelo carregado na página, seja qual for o nome enviado.",+ },decisionApi: {title: "API de decisões",docs: "Documentação",@@ -3248,6 +3250,24 @@ export const ptBR = {desktopAppVersionUnavailable: "Indisponível",llamaCppVersion: "Versão do llama.cpp",audioCppVersion: "Versão do audio.cpp",+ whisperCppVersion: "Versão do whisper.cpp",+ engines: {+ title: "Motores",+ description: "Os runtimes que o Unsloth usa para executar modelos. As atualizações são instaladas em segundo plano, sem reiniciar.",+ updatesLabel: "Atualizações dos motores",+ notInstalled: "Não instalado",+ available: "{version} disponível",+ upToDate: "Atualizado",+ updatesAvailable: "Atualizações disponíveis",+ checking: "Procurando atualizações...",+ checkFailed: "Não foi possível procurar atualizações. Tente novamente mais tarde.",+ unsupported: "Os motores desta instalação são gerenciados fora do Unsloth.",+ checkForUpdates: "Procurar atualizações",+ update: "Atualizar",+ updating: "Atualizando...",+ updated: "Motores atualizados.",+ updateFailed: "Falha na atualização: {error}",+ },hardware: "Hardware",gpu: "GPU",gpuIntegrated: "integrada",@@ -3335,6 +3355,9 @@ export const ptBR = {docsUpdating: "Atualização",docsMac: "Mac",docsWindows: "Windows",+ docsLinux: "Linux",+ docsDocker: "Docker",+ docsAmd: "AMD",},},},diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.tsindex ad869eba794..47b78d9547e 100644--- a/studio/frontend/src/i18n/locales/ru.ts+++ b/studio/frontend/src/i18n/locales/ru.ts@@ -1822,20 +1822,14 @@ export const ru = {},notifications: {sectionTitle: "Уведомления",- showLlamaUpdates: "Уведомления об обновлениях llama.cpp",- showLlamaUpdatesDescription:- "Уведомлять о доступности новой сборки llama.cpp для запуска новых моделей. Отключите, если вы только обучаете модели.",- showLoadedModels: "Индикатор загруженных моделей",- showLoadedModelsDescription:- "Показывает в правом нижнем углу небольшую карточку со всеми моделями, находящимися сейчас в памяти (чат, речь, изображения, видео), и кнопку для выгрузки каждой из них.",- showAudioCppUpdates: "Уведомления об обновлениях audio.cpp",- showAudioCppUpdatesDescription:- "Уведомлять, когда среде выполнения audio.cpp нужно обновление для страниц «Аудио». Отключите, если вы не пользуетесь аудио.",- showUnslothUpdates: "Уведомления об обновлениях Unsloth",- showUnslothUpdatesDescription:- "Сообщать, когда доступна новая версия Unsloth для установки.",+ showLoadedModels: "Карточка загруженных моделей",+ showLoadedModelsDescription: "Карточка в углу со всеми загруженными моделями, выгрузка одним щелчком.",+ updateReminders: "Напоминания об обновлениях",+ updateRemindersDescription: "Как часто предлагать новую версию, когда она готова.",+ llamaHint: "Чат-модели и GGUF",+ audioHint: "Речь, музыка и расшифровка",frequency: {- always: "Всегда",+ always: "Как только выйдет",daily: "Раз в день",weekly: "Раз в неделю",biweekly: "Раз в две недели",@@ -3165,6 +3159,14 @@ export const ru = {"Модель загружается по имени, только когда включено автопереключение моделей. Включите его или сначала загрузите модель на её странице «Аудио».",useViaApi: "Через API",},+ mediaApi: {+ title: "API для изображений и видео",+ description: "Создавайте изображения и видео из своего кода через OpenAI-совместимые эндпоинты.",+ images: "Изображения",+ video: "Видео",+ placeholderModel: "Показанная модель приведена для примера. Загрузите модель на странице «Изображения» или «Видео» и откройте этот раздел её кнопкой API, чтобы подставить её.",+ autoSwitchOff: "Автопереключение медиамоделей выключено, поэтому запросы выполняются на модели, загруженной на странице, какое бы имя в них ни было.",+ },decisionApi: {title: "API решений",docs: "Документация",@@ -3245,6 +3247,24 @@ export const ru = {desktopAppVersionUnavailable: "Недоступно",llamaCppVersion: "Версия llama.cpp",audioCppVersion: "Версия audio.cpp",+ whisperCppVersion: "Версия whisper.cpp",+ engines: {+ title: "Движки",+ description: "Среды выполнения, с помощью которых Unsloth запускает модели. Обновления устанавливаются в фоне, без перезапуска.",+ updatesLabel: "Обновления движков",+ notInstalled: "Не установлено",+ available: "Доступна {version}",+ upToDate: "Актуальная версия",+ updatesAvailable: "Доступны обновления",+ checking: "Проверка обновлений...",+ checkFailed: "Не удалось проверить обновления. Повторите попытку позже.",+ unsupported: "Движки этой установки управляются вне Unsloth.",+ checkForUpdates: "Проверить обновления",+ update: "Обновить",+ updating: "Обновление...",+ updated: "Движки обновлены.",+ updateFailed: "Не удалось обновить: {error}",+ },hardware: "Оборудование",gpu: "GPU",gpuIntegrated: "встроенная",@@ -3333,6 +3353,9 @@ export const ru = {docsUpdating: "Обновление",docsMac: "Mac",docsWindows: "Windows",+ docsLinux: "Linux",+ docsDocker: "Docker",+ docsAmd: "AMD",},},},diff --git a/studio/frontend/src/i18n/locales/sv.ts b/studio/frontend/src/i18n/locales/sv.tsindex b17cbf54a10..c4ef8a4d178 100644--- a/studio/frontend/src/i18n/locales/sv.ts+++ b/studio/frontend/src/i18n/locales/sv.ts@@ -1989,20 +1989,14 @@ export const sv = {},notifications: {sectionTitle: "Aviseringar",- showLlamaUpdates: "Uppdateringsaviseringar för llama.cpp",- showLlamaUpdatesDescription:- "Avisera när en nyare llama.cpp-version finns för att köra nya modeller. Stäng av om du endast tränar.",- showLoadedModels: "Indikator för inlästa modeller",- showLoadedModelsDescription:- "Visa ett litet kort i nedre högra hörnet med alla modeller som för närvarande finns i minnet (chatt, tal, bild, video), med en knapp för att mata ut var och en.",- showAudioCppUpdates: "Aviseringar om audio.cpp-uppdateringar",- showAudioCppUpdatesDescription:- "Avisera när audio.cpp-körmiljön behöver uppdateras för ljudsidorna. Stäng av om du aldrig använder ljud.",- showUnslothUpdates: "Uppdateringsaviseringar för Unsloth",- showUnslothUpdatesDescription:- "Meddela när en nyare version av Unsloth finns att installera.",+ showLoadedModels: "Kort för inlästa modeller",+ showLoadedModelsDescription: "Ett hörnkort med varje inläst modell, mata ut med ett klick.",+ updateReminders: "Uppdateringspåminnelser",+ updateRemindersDescription: "Hur ofta en ny version erbjuds när den är klar.",+ llamaHint: "Chatt- och GGUF-modeller",+ audioHint: "Tal, musik och transkribering",frequency: {- always: "Alltid",+ always: "Så fort den finns",daily: "En gång om dagen",weekly: "En gång i veckan",biweekly: "Varannan vecka",@@ -3371,6 +3365,14 @@ export const sv = {"Modellen läses in via namn bara när automatiskt modellbyte är på. Slå på det, eller läs in modellen på dess ljudsida först.",useViaApi: "Använd via API",},+ mediaApi: {+ title: "API för bild och video",+ description: "Skapa bilder och videor från din egen kod med de OpenAI-kompatibla slutpunkterna.",+ images: "Bilder",+ video: "Video",+ placeholderModel: "Modellen som visas är ett exempel. Läs in en modell på sidan Bilder eller Video och öppna det här från dess API-knapp för att fylla i den.",+ autoSwitchOff: "Automatiskt mediabyte är av, så förfrågningar körs på modellen som sidan har läst in, oavsett vilken de anger.",+ },decisionApi: {title: "Decision API",docs: "Dokumentation",@@ -3455,6 +3457,24 @@ export const sv = {desktopAppVersionUnavailable: "Inte tillgänglig",llamaCppVersion: "llama.cpp-version",audioCppVersion: "audio.cpp-version",+ whisperCppVersion: "whisper.cpp-version",+ engines: {+ title: "Motorer",+ description: "Körmiljöerna som Unsloth använder för att köra modeller. Uppdateringar installeras i bakgrunden, utan omstart.",+ updatesLabel: "Motoruppdateringar",+ notInstalled: "Inte installerad",+ available: "{version} tillgänglig",+ upToDate: "Uppdaterad",+ updatesAvailable: "Uppdateringar tillgängliga",+ checking: "Söker efter uppdateringar...",+ checkFailed: "Det gick inte att söka efter uppdateringar. Försök igen senare.",+ unsupported: "Den här installationens motorer hanteras utanför Unsloth.",+ checkForUpdates: "Sök efter uppdateringar",+ update: "Uppdatera",+ updating: "Uppdaterar...",+ updated: "Motorerna har uppdaterats.",+ updateFailed: "Uppdateringen misslyckades: {error}",+ },hardware: "Maskinvara",gpu: "GPU",gpuIntegrated: "integrerad",@@ -3540,6 +3560,9 @@ export const sv = {docsUpdating: "Uppdatering",docsMac: "Mac",docsWindows: "Windows",+ docsLinux: "Linux",+ docsDocker: "Docker",+ docsAmd: "AMD",},},},diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.tsindex a1d2964e637..c223069fe43 100644--- a/studio/frontend/src/i18n/locales/zh-CN.ts+++ b/studio/frontend/src/i18n/locales/zh-CN.ts@@ -1797,20 +1797,14 @@ export const zhCN = {},notifications: {sectionTitle: "通知",- showLlamaUpdates: "llama.cpp 更新通知",- showLlamaUpdatesDescription:- "当有可用于运行新模型的新版 llama.cpp 构建时通知你。如果只进行训练,可以关闭此项。",- showLoadedModels: "已加载模型指示器",- showLoadedModelsDescription:- "在右下角显示一张小卡片,列出当前位于内存中的所有模型(聊天、语音、图像、视频),并为每个模型提供卸载按钮。",- showAudioCppUpdates: "audio.cpp 更新通知",- showAudioCppUpdatesDescription:- "当音频页面所需的 audio.cpp 运行时需要更新时通知你。如果从不使用音频功能,可以关闭此项。",- showUnslothUpdates: "Unsloth 更新通知",- showUnslothUpdatesDescription:- "有新版本的 Unsloth 可供安装时通知。",+ showLoadedModels: "已加载模型卡片",+ showLoadedModelsDescription: "角落卡片列出每个已加载的模型,一键卸载。",+ updateReminders: "更新提醒",+ updateRemindersDescription: "新版本就绪时多久提醒一次。",+ llamaHint: "聊天和 GGUF 模型",+ audioHint: "语音、音乐和转录",frequency: {- always: "总是",+ always: "一有就提醒",daily: "每天一次",weekly: "每周一次",biweekly: "每两周一次",@@ -3095,6 +3089,14 @@ export const zhCN = {"只有开启模型自动切换时,才会按名称加载模型。请开启它,或先在该模型的音频页面加载模型。",useViaApi: "通过 API 使用",},+ mediaApi: {+ title: "图像和视频 API",+ description: "通过兼容 OpenAI 的端点,在你自己的代码中生成图像和视频。",+ images: "图像",+ video: "视频",+ placeholderModel: "显示的模型只是示例。在图像或视频页面加载模型,再从该页面的 API 按钮打开此处即可填入。",+ autoSwitchOff: "媒体自动切换已关闭,因此请求无论指定哪个模型,都会在页面已加载的模型上运行。",+ },decisionApi: {title: "决策 API",docs: "文档",@@ -3174,6 +3176,24 @@ export const zhCN = {desktopAppVersionUnavailable: "不可用",llamaCppVersion: "llama.cpp 版本",audioCppVersion: "audio.cpp 版本",+ whisperCppVersion: "whisper.cpp 版本",+ engines: {+ title: "引擎",+ description: "Unsloth 用来运行模型的运行时。更新在后台安装,无需重启。",+ updatesLabel: "引擎更新",+ notInstalled: "未安装",+ available: "{version} 可用",+ upToDate: "已是最新",+ updatesAvailable: "有可用更新",+ checking: "正在检查更新...",+ checkFailed: "无法检查更新,请稍后重试。",+ unsupported: "此安装的引擎由 Unsloth 之外管理。",+ checkForUpdates: "检查更新",+ update: "更新",+ updating: "正在更新...",+ updated: "引擎已更新。",+ updateFailed: "更新失败:{error}",+ },hardware: "硬件",gpu: "GPU",gpuIntegrated: "集成",@@ -3252,6 +3272,9 @@ export const zhCN = {docsUpdating: "更新",docsMac: "Mac",docsWindows: "Windows",+ docsLinux: "Linux",+ docsDocker: "Docker",+ docsAmd: "AMD",},},},diff --git a/studio/frontend/tests/about-audio-cpp-version.test.ts b/studio/frontend/tests/about-audio-cpp-version.test.tsindex 205c4731b2a..6685db45ae5 100644--- a/studio/frontend/tests/about-audio-cpp-version.test.ts+++ b/studio/frontend/tests/about-audio-cpp-version.test.ts@@ -1,7 +1,7 @@// SPDX-License-Identifier: AGPL-3.0-only// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0-// Settings > About lists the installed audio.cpp release beside the llama.cpp build.+// Settings > About lists the installed llama.cpp, whisper.cpp and audio.cpp releases in its Engines section.import assert from "node:assert/strict";import { readdirSync, readFileSync } from "node:fs";@@ -17,15 +17,50 @@ test("the hardware details carry the audio.cpp version to the About tab", () =>);assert.match(read("features/settings/tabs/about-tab.tsx"),- /llamaCppVersion=\{hw\.llamaCpp\}\s*audioCppVersion=\{hw\.audioCpp\}/,+ /<EngineVersionsSection \/>/,);});-test("the audio.cpp row shows only when a version is known", () => {+test("the Engines section lists llama.cpp, whisper.cpp and audio.cpp", () => {+ const section = read(+ "features/settings/components/engine-versions-section.tsx",+ );+ assert.match(+ section,+ /installed: hw\.llamaCpp \?\? status\?\.llama\.installed_tag \?\? null,/,+ );+ assert.match(+ section,+ /installed: status\?\.whisper\?\.installed_tag \?\? null,/,+ );+ assert.match(+ section,+ /installed: hw\.audioCpp \?\? status\?\.audio\?\.installed_tag \?\? null,/,+ );+ assert.match(+ section,+ /row\.installed \?\? t\("settings\.about\.engines\.notInstalled"\)/,+ );+});++test("only the owner gets the engine Update button, which the update route requires", () => {+ const section = read(+ "features/settings/components/engine-versions-section.tsx",+ );+ assert.match(section, /const isOwner = useIsAccountOwner\(\);/);+ assert.match(section, /\{isOwner \? \(\s*<Button[^]*?data-testid="engine-update"/);+});++test("a self-managed llama.cpp still lets Update install an offered audio.cpp release", () => {+ const section = read(+ "features/settings/components/engine-versions-section.tsx",+ );assert.match(- read("features/settings/components/studio-version-section.tsx"),- /\{audioCppVersion \? \(\s*<SettingsRow label=\{t\("settings\.about\.audioCppVersion"\)\}>\s*<code className="font-mono text-xs text-muted-foreground">\s*\{audioCppVersion\}/,+ section,+ /const unmanaged = status\?\.supported === false && !offered;/,);+ assert.match(section, /disabled=\{!offered \|\| applying \|\| checking\}/);+ assert.doesNotMatch(section, /!supported/);});test("every locale labels the audio.cpp row", () => {diff --git a/studio/frontend/tests/audio-source-input.test.ts b/studio/frontend/tests/audio-source-input.test.tsindex d48c33d0433..fe700856800 100644--- a/studio/frontend/tests/audio-source-input.test.ts+++ b/studio/frontend/tests/audio-source-input.test.ts@@ -227,7 +227,7 @@ test("the whole card is the drop target, with every way in", () => {}assert.match(card,- /corner-squircle grid gap-3 rounded-4xl bg-card p-4 ring-1/,+ /corner-squircle grid gap-3 rounded-lg bg-card p-4 ring-1/,);assert.doesNotMatch(card, /shadow-/);assert.ok(diff --git a/studio/frontend/tests/audio-waveform-peaks.test.ts b/studio/frontend/tests/audio-waveform-peaks.test.tsindex 7cb1b61bac8..7412f383afb 100644--- a/studio/frontend/tests/audio-waveform-peaks.test.ts+++ b/studio/frontend/tests/audio-waveform-peaks.test.ts@@ -56,3 +56,12 @@ test("the waveform is neutral, keyboard-playable and static", () => {// No animation, so reduced motion needs nothing extra.assert.doesNotMatch(source, /animate-|transition-/);});++test("resamplePeaks max-pools down and repeats up", async () => {+ const { resamplePeaks } = await import(+ "../src/features/audio/components/waveform-peaks.ts"+ );+ assert.deepEqual(resamplePeaks([0.1, 0.9, 0.2, 0.3], 2), [0.9, 0.3]);+ assert.deepEqual(resamplePeaks([0.4, 0.8], 4), [0.4, 0.4, 0.8, 0.8]);+ assert.deepEqual(resamplePeaks([], 3), []);+});diff --git a/studio/frontend/tests/general-settings-token-sync.test.ts b/studio/frontend/tests/general-settings-token-sync.test.tsindex c8cf788f68c..706b89c2757 100644--- a/studio/frontend/tests/general-settings-token-sync.test.ts+++ b/studio/frontend/tests/general-settings-token-sync.test.ts@@ -195,6 +195,7 @@ function generalTab(initialToken: string) {"../components/language-select": componentStub,"../components/download-transport-row": componentStub,"../components/developer-mode-section": componentStub,+ "../components/engine-versions-section": componentStub,"../components/hub-settings-section": componentStub,"../components/notification-frequency-select": componentStub,"../components/settings-row": componentStub,diff --git a/studio/frontend/tests/media-api-snippets.test.ts b/studio/frontend/tests/media-api-snippets.test.tsnew file mode 100644index 00000000000..2156b3588fa--- /dev/null+++ b/studio/frontend/tests/media-api-snippets.test.ts@@ -0,0 +1,37 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0++// The Image and video API card's copyable examples must not run anything a model name carries.++import assert from "node:assert/strict";+import test from "node:test";+import { buildMediaApiSnippet } from "../src/features/settings/components/media-api-snippets.ts";++const HOSTILE = "$(calc)";++for (const kind of ["images", "video"] as const) {+ test(`${kind}: the PowerShell body is a literal here-string, so $(...) in a model id stays text`, () => {+ const snippet = buildMediaApiSnippet(kind, {+ base: "http://127.0.0.1:8888",+ apiKey: "sk-unsloth-YOUR_KEY",+ model: HOSTILE,+ lang: "curl",+ os: "windows",+ });+ assert.match(snippet, /\$body = @'\n/);+ assert.match(snippet, /\n'@\n/);+ assert.doesNotMatch(snippet, /@"/);+ assert.ok(snippet.includes(`"model": "${HOSTILE}"`));+ });++ test(`${kind}: the bash body stays inside single quotes`, () => {+ const snippet = buildMediaApiSnippet(kind, {+ base: "http://127.0.0.1:8888",+ apiKey: "sk-unsloth-YOUR_KEY",+ model: "it's",+ lang: "curl",+ os: "unix",+ });+ assert.ok(snippet.includes(`"model": "it'\\''s"`));+ });+}