add -
separator to temp file created on ollama create
This commit is contained in:
parent
85e4441c6a
commit
bab9494176
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue