Explorar el Código

fix model manifests (#477)

Michael Yang hace 1 año
padre
commit
83c6be1666
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 	}