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): file list sizes in the card's unit, the first CivitAI version is the default, not the newest
purple0cf38e47eb19
diff --git a/src/api/discover.ts b/src/api/discover.tsindex 93212678..aaf8ad35 100644--- a/src/api/discover.ts+++ b/src/api/discover.ts@@ -2342,7 +2342,7 @@ export interface CivitAIModelResult {/** C18: the whole description as text, paragraphs kept, for the Details* dialog. `description` above stays the one short line of the hit row. */fullDescription?: string- /** C21: every version of the hit with its model files, newest first, so the+ /** C21: every version of the hit with its model files, in CivitAI's order (the first is the one Download takes), so the* user can fetch another version or another precision than the default. */versions?: CivitaiVersionChoice[]/** The id of the version the default download takes (the newest). */diff --git a/src/components/models/CivitaiHitDetails.tsx b/src/components/models/CivitaiHitDetails.tsxindex 77d01c37..234a4124 100644--- a/src/components/models/CivitaiHitDetails.tsx+++ b/src/components/models/CivitaiHitDetails.tsx@@ -84,7 +84,7 @@ function Body({ hit, onClose, onDownload }: { hit: CivitAIModelResult; onClose:>{versions.map((v, i) => (<option key={v.id} value={v.id}>- {v.name}{v.baseModel ? ` · ${v.baseModel}` : ''}{v.published ? ` · ${v.published}` : ''}{i === 0 ? ' (newest)' : ''}+ {v.name}{v.baseModel ? ` · ${v.baseModel}` : ''}{v.published ? ` · ${v.published}` : ''}{i === 0 ? ' (default)' : ''}</option>))}</select>diff --git a/src/components/models/DiscoverModels.tsx b/src/components/models/DiscoverModels.tsxindex 96c9c97b..69003260 100644--- a/src/components/models/DiscoverModels.tsx+++ b/src/components/models/DiscoverModels.tsx@@ -1586,8 +1586,12 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0, o</p><div className="max-h-56 overflow-y-auto scrollbar-thin space-y-1 pr-1">{fileChoices.list.map((c) => {- const gb = c.totalBytes / 1_073_741_824- const fit = chatFitGb && gb > 0 ? computeFit(gb, chatFitGb) : null+ // The fit compares in GiB like the rest of the page; the+ // size reads in decimal GB, the unit the catalog's cards+ // print, so one file never shows two sizes.+ const gib = c.totalBytes / 1_073_741_824+ const gb = c.totalBytes / 1e9+ const fit = chatFitGb && gib > 0 ? computeFit(gib, chatFitGb) : nullconst current = !!infoModel.filename && infoModel.filename === c.filenamereturn (<div key={c.path} className="flex items-center gap-2 px-2.5 py-1.5 rounded-lg border border-gray-200 dark:border-white/10" data-testid="gguf-choice">