Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

ignore non blobs

Michael Yanga07c935d345b
diff --git a/server/images.go b/server/images.go
index 42def2700..893fc4f2e 100644
--- a/server/images.go
+++ b/server/images.go
@@ -782,7 +782,9 @@ func PruneLayers() error {
if runtime.GOOS == "windows" {
name = strings.ReplaceAll(name, "-", ":")
}
- deleteMap[name] = struct{}{}
+ if strings.HasPrefix(name, "sha256:") {
+ deleteMap[name] = struct{}{}
+ }
}
log.Printf("total blobs: %d", len(deleteMap))