Skip to content

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

add `-` separator to temp file created on `ollama create`

Jeffrey Morganbab9494176d6
diff --git a/server/routes.go b/server/routes.go
index 6c1386b07..cc53dc603 100644
--- a/server/routes.go
+++ b/server/routes.go
@@ -673,7 +673,7 @@ func CreateBlobHandler(c *gin.Context) {
}
hash := sha256.New()
- temp, err := os.CreateTemp(filepath.Dir(targetPath), c.Param("digest"))
+ temp, err := os.CreateTemp(filepath.Dir(targetPath), c.Param("digest")+"-")
if err != nil {
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
return