Skip to content

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

fix cross repo mounts

Michael Yanga5ccf742c1ab
diff --git a/server/upload.go b/server/upload.go
index 8b4836180..306b6e631 100644
--- a/server/upload.go
+++ b/server/upload.go
@@ -77,6 +77,14 @@ func (b *blobUpload) Prepare(ctx context.Context, requestURL *url.URL, opts *Reg
b.Total = fi.Size()
+ // http.StatusCreated indicates a blob has been mounted
+ // ref: https://distribution.github.io/distribution/spec/api/#cross-repository-blob-mount
+ if resp.StatusCode == http.StatusCreated {
+ b.Completed.Store(b.Total)
+ b.done = true
+ return nil
+ }
+
var size = b.Total / numUploadParts
switch {
case size < minUploadPartSize: