add model to ModelResponse
This commit is contained in:
parent
a38d88d828
commit
745b5934fa
2 changed files with 2 additions and 0 deletions
|
@ -213,6 +213,7 @@ type ListResponse struct {
|
||||||
|
|
||||||
type ModelResponse struct {
|
type ModelResponse struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
Model string `json:"model"`
|
||||||
ModifiedAt time.Time `json:"modified_at"`
|
ModifiedAt time.Time `json:"modified_at"`
|
||||||
Size int64 `json:"size"`
|
Size int64 `json:"size"`
|
||||||
Digest string `json:"digest"`
|
Digest string `json:"digest"`
|
||||||
|
|
|
@ -735,6 +735,7 @@ func ListModelsHandler(c *gin.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return api.ModelResponse{
|
return api.ModelResponse{
|
||||||
|
Model: model.ShortName,
|
||||||
Name: model.ShortName,
|
Name: model.ShortName,
|
||||||
Size: model.Size,
|
Size: model.Size,
|
||||||
Digest: model.Digest,
|
Digest: model.Digest,
|
||||||
|
|
Loading…
Reference in a new issue