feat: enable full model file deletion on disk including split parts and vision adapters, update prompt text

This commit is contained in:
Hitonabi
2026-06-26 07:23:06 +02:00
parent e88dfb8f98
commit b90cef3968
4 changed files with 63 additions and 16 deletions
+2 -2
View File
@@ -179,7 +179,7 @@ function Cockpit() {
}
async function handleDelete(name: string) {
if (!confirm(`Modell '${name}' aus der Config entfernen? (GGUF-Datei bleibt)`)) return
if (!confirm(`Modell '${name}' und alle zugehörigen GGUF-Dateien unwiderruflich von der Box löschen?`)) return
try {
await api(`/api/models/${encodeURIComponent(name)}`, { method: "DELETE" })
load()
@@ -604,7 +604,7 @@ function Cockpit() {
<button
onClick={() => handleDelete(m.name)}
className="h-7 w-7 rounded-lg flex items-center justify-center border border-border/40 text-muted-foreground hover:text-red-400 hover:bg-red-500/5 transition-all opacity-0 group-hover:opacity-100 shrink-0 cursor-pointer"
title="Modell aus Config entfernen"
title="Modell und GGUF-Dateien löschen"
>
<Trash2 className="h-3.5 w-3.5" />
</button>