Commit bab94941 authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

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

parent 85e4441c
...@@ -673,7 +673,7 @@ func CreateBlobHandler(c *gin.Context) { ...@@ -673,7 +673,7 @@ func CreateBlobHandler(c *gin.Context) {
} }
hash := sha256.New() 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 { if err != nil {
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
return return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment