Skip to content

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

fix copying model to itself (#4019)

Jeffrey Morgan586672f4906c
diff --git a/server/images.go b/server/images.go
index 3d0eba19d..7b2199c7e 100644
--- a/server/images.go
+++ b/server/images.go
@@ -710,6 +710,10 @@ func CopyModel(src, dst model.Name) error {
return model.Unqualified(src)
}
+ if src.Filepath() == dst.Filepath() {
+ return nil
+ }
+
manifests, err := GetManifestPath()
if err != nil {
return err