Skip to content

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

create manifests directory

Michael Yanga1ecdd36d5c0
diff --git a/server/modelpath.go b/server/modelpath.go
index 88edad999..77bda2e87 100644
--- a/server/modelpath.go
+++ b/server/modelpath.go
@@ -114,7 +114,12 @@ func GetManifestPath() (string, error) {
return "", err
}
- return filepath.Join(home, ".ollama", "models", "manifests"), nil
+ path := filepath.Join(home, ".ollama", "models", "manifests")
+ if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {
+ return "", err
+ }
+
+ return path, nil
}
func GetBlobsPath(digest string) (string, error) {