Skip to content

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

always cleanup blob download (#747)

Jeffrey Morgan65dcd0ce35a6
diff --git a/server/download.go b/server/download.go
index bb791130f..80914ae39 100644
--- a/server/download.go
+++ b/server/download.go
@@ -314,6 +314,7 @@ func downloadBlob(ctx context.Context, opts downloadOpts) error {
requestURL := opts.mp.BaseURL()
requestURL = requestURL.JoinPath("v2", opts.mp.GetNamespaceRepository(), "blobs", opts.digest)
if err := download.Prepare(ctx, requestURL, opts.regOpts); err != nil {
+ blobDownloadManager.Delete(opts.digest)
return err
}