mirror of
https://github.com/ollama/ollama.git
synced 2025-05-31 05:19:21 +02:00
no blob response
This commit is contained in:
parent
71d71d0988
commit
bc22d5a38b
@ -105,10 +105,6 @@ type CreateRequest struct {
|
|||||||
Stream *bool `json:"stream,omitempty"`
|
Stream *bool `json:"stream,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateBlobResponse struct {
|
|
||||||
Path string `json:"path"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type DeleteRequest struct {
|
type DeleteRequest struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
}
|
}
|
||||||
|
@ -662,7 +662,7 @@ func HeadBlobHandler(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
c.JSON(http.StatusOK, api.CreateBlobResponse{Path: path})
|
c.Status(http.StatusOK)
|
||||||
}
|
}
|
||||||
|
|
||||||
func CreateBlobHandler(c *gin.Context) {
|
func CreateBlobHandler(c *gin.Context) {
|
||||||
@ -701,7 +701,7 @@ func CreateBlobHandler(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
c.JSON(http.StatusOK, api.CreateBlobResponse{Path: targetPath})
|
c.Status(http.StatusCreated)
|
||||||
}
|
}
|
||||||
|
|
||||||
var defaultAllowOrigins = []string{
|
var defaultAllowOrigins = []string{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user