Browse Source

fix model manifests (#477)

Michael Yang 1 năm trước cách đây
mục cha
commit
83c6be1666
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      server/modelpath.go

+ 1 - 1
server/modelpath.go

@@ -115,7 +115,7 @@ func GetManifestPath() (string, error) {
 	}
 
 	path := filepath.Join(home, ".ollama", "models", "manifests")
-	if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {
+	if err := os.MkdirAll(path, 0o755); err != nil {
 		return "", err
 	}