The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(models): show the real file format and name what the Local API counts
purpled5a65f319fde
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex d9566299..59fede10 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -62,6 +62,11 @@ cloud catalogue. It also fixes the bugs reported on GitHub and Discord since- **Turbo checkpoints start at a few steps.** SD-Turbo, SDXL-Turbo,Lightning, Hyper-SD and LCM checkpoints start at 4 steps and CFG 1 insteadof the family's 25 steps.+- **Installed models show their real file format.** A .ckpt such as the+ AnimateDiff motion module was labelled "safetensors"; the card now reads the+ file ending.+- **Local API counts say what they count.** "Requests" is now "Model+ requests", since listing the models is not counted.- **No download offer while ComfyUI is starting.** Right after launch theCreate stage could offer the 6.5 GB starter download while ComfyUI was stillcoming up and the models were already on disk. It now waits.diff --git a/src/components/models/ModelCard.tsx b/src/components/models/ModelCard.tsxindex 98f4beee..6dd72b47 100644--- a/src/components/models/ModelCard.tsx+++ b/src/components/models/ModelCard.tsx@@ -8,6 +8,7 @@ import { displayModelName } from '../../api/providers/model-name'import { splitForMiddleEllipsis } from '../../lib/model-label'import { isBuiltinEngineEntry } from '../../lib/lmstudio-match'import type { AIModel } from '../../types/models'+import { fileFormat } from '../../lib/model-file-format'interface Props {model: AIModel@@ -146,8 +147,11 @@ export function ModelCard({ model, isActive, onSelect, onDelete, onInfo, infoTit{model.type === 'text' && 'details' in model && model.details?.quantization_level && (<><span className="opacity-40">·</span><span>{model.details.quantization_level}</span></>)}- {(model.type === 'image' || model.type === 'video') && (- <><span className="opacity-40">·</span><span>{model.format || 'safetensors'}</span></>+ {/* The file's own ending when nothing set a format. The fixed fallback+ labelled an AnimateDiff .ckpt "safetensors" (3.0.4 Gegenprobe,+ 02.10.2026). */}+ {(model.type === 'image' || model.type === 'video') && fileFormat(model) && (+ <><span className="opacity-40">·</span><span>{fileFormat(model)}</span></>)}</span>diff --git a/src/components/settings/__tests__/the-local-api-shows-what-went-through-it.test.tsx b/src/components/settings/__tests__/the-local-api-shows-what-went-through-it.test.tsxindex e38bf1cd..e38a2052 100644--- a/src/components/settings/__tests__/the-local-api-shows-what-went-through-it.test.tsx+++ b/src/components/settings/__tests__/the-local-api-shows-what-went-through-it.test.tsx@@ -37,6 +37,8 @@ describe('the Local API panel', () => {render(<LocalApiSettings />)await screen.findByTestId('local-api-usage')expect(screen.getByText('1,234 (2 failed)')).toBeTruthy()+ // Says what it counts: calls that reach a model, not the model list.+ expect(screen.getByText('Model requests')).toBeTruthy()expect(screen.getByText('48,210')).toBeTruthy()expect(screen.getByText('9,034')).toBeTruthy()expect(screen.getByText('ollama/qwen3:8b, just now')).toBeTruthy()diff --git a/src/lib/__tests__/a-ckpt-file-is-not-called-safetensors.test.ts b/src/lib/__tests__/a-ckpt-file-is-not-called-safetensors.test.tsnew file mode 100644index 00000000..28ea9490--- /dev/null+++ b/src/lib/__tests__/a-ckpt-file-is-not-called-safetensors.test.ts@@ -0,0 +1,24 @@+import { describe, expect, it } from 'vitest'+import { readFileSync } from 'node:fs'+import { fileFormat } from '../model-file-format'++describe('the model card names the real file format', () => {+ it('reads the ending of a .ckpt motion module', () => {+ expect(fileFormat({ name: 'v3_sd15_mm.ckpt' })).toBe('ckpt')+ expect(fileFormat({ name: 'animatediff/v3_sd15_mm.CKPT' })).toBe('ckpt')+ })++ it('keeps a format someone already set', () => {+ expect(fileFormat({ name: 'flux1-dev-Q4_K_S.gguf', format: 'GGUF Q4' })).toBe('GGUF Q4')+ })++ it('shows nothing rather than a guess when the name has no ending', () => {+ expect(fileFormat({ name: 'some-model' })).toBe('')+ })++ it('the card no longer falls back to the word safetensors', () => {+ const card = readFileSync('src/components/models/ModelCard.tsx', 'utf8')+ expect(card).not.toMatch(/\|\|\s*'safetensors'/)+ expect(card).toContain('fileFormat(model)')+ })+})diff --git a/src/lib/local-api.ts b/src/lib/local-api.tsindex 2a9a214e..dc033261 100644--- a/src/lib/local-api.ts+++ b/src/lib/local-api.ts@@ -197,7 +197,11 @@ function vorWieLangem(ms: number, jetzt: number): string {/** Die Zeilen fuer das Panel. Sichtbarer Text ist Englisch. */export function nutzungZeilen(u: LocalApiNutzung, jetzt: number): Array<{ feld: string; wert: string }> {return [- { feld: 'Requests', wert: u.failed > 0 ? `${zahl(u.requests)} (${zahl(u.failed)} failed)` : zahl(u.requests) },+ // Gezaehlt wird, was ein Modell erreicht (chat, completions, embeddings),+ // nicht das Abfragen der Modellliste, das viele Werkzeuge im Sekundentakt+ // tun. Die 3.0.4-Gegenprobe (02.10.2026) rief /v1/models auf und las+ // "Requests 0" als Fehler; der Name sagt jetzt, was gezaehlt wird.+ { feld: 'Model requests', wert: u.failed > 0 ? `${zahl(u.requests)} (${zahl(u.failed)} failed)` : zahl(u.requests) },{ feld: 'Running now', wert: zahl(u.active) },{ feld: 'Tokens in', wert: zahl(u.promptTokens) },{ feld: 'Tokens out', wert: zahl(u.completionTokens) },diff --git a/src/lib/model-file-format.ts b/src/lib/model-file-format.tsnew file mode 100644index 00000000..a4ff5da8--- /dev/null+++ b/src/lib/model-file-format.ts@@ -0,0 +1,10 @@+// 3.0.4 Gegenprobe (02.10.2026): Models, Installed called the AnimateDiff+// motion module v3_sd15_mm.ckpt "safetensors", because the card fell back to+// that word whenever no format was set. The file's own ending says it.++/** The format a model card shows: the set format, else the file ending. */+export function fileFormat(model: { format?: string; name: string }): string {+ if (model.format) return model.format+ const ext = /\.([a-z0-9]{2,12})$/i.exec(model.name)?.[1]+ return ext ? ext.toLowerCase() : ''+}diff --git a/src/lib/release-notes.ts b/src/lib/release-notes.tsindex ef4fc77e..20f46894 100644--- a/src/lib/release-notes.ts+++ b/src/lib/release-notes.ts@@ -156,7 +156,7 @@ export const RELEASE_NOTES: ReleaseNote[] = [},{title: 'Fixes from GitHub and Discord.',- detail: 'A group chat answers with every LU Engine model in it, also when the models sit in your Model Storage folder. Ollama models download without one already installed. A GGUF from the CivitAI search lands where ComfyUI reads it. A fresh ComfyUI install on Windows gets its own Python environment, which fixes "hipdnn_backend.dll Bad Image" on AMD cards. The window no longer disappears on Linux. A character trained on your own machine takes up to 100 photos, and Details on an LM Studio model says where to delete it. A newer image or video model with a missing encoder or VAE names that file and offers the download, instead of ending in "Value not in list". A LoRA deleted from the loras folder leaves the stack, a run only sends LoRAs ComfyUI lists, and Clear turns the stack off. The Code agent runs tool calls a cloud model writes into its answer or sends under the name "function", instead of stopping on them. A downloaded render is always the one you picked, and Download in the gallery strip opens the Save dialog on Windows. Create no longer offers the starter download while ComfyUI is still starting, and Turbo or Lightning checkpoints start at 4 steps. The Code area has an input box even before the first code conversation.',+ detail: 'A group chat answers with every LU Engine model in it, also when the models sit in your Model Storage folder. Ollama models download without one already installed. A GGUF from the CivitAI search lands where ComfyUI reads it. A fresh ComfyUI install on Windows gets its own Python environment, which fixes "hipdnn_backend.dll Bad Image" on AMD cards. The window no longer disappears on Linux. A character trained on your own machine takes up to 100 photos, and Details on an LM Studio model says where to delete it. A newer image or video model with a missing encoder or VAE names that file and offers the download, instead of ending in "Value not in list". A LoRA deleted from the loras folder leaves the stack, a run only sends LoRAs ComfyUI lists, and Clear turns the stack off. The Code agent runs tool calls a cloud model writes into its answer or sends under the name "function", instead of stopping on them. A downloaded render is always the one you picked, and Download in the gallery strip opens the Save dialog on Windows. Create no longer offers the starter download while ComfyUI is still starting, and Turbo or Lightning checkpoints start at 4 steps. The Code area has an input box even before the first code conversation, and an installed .ckpt model no longer shows as safetensors.',},{title: 'Writing a long file no longer ends the run.',