Skip to content

Commit

Permalink
add model to ModelResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
mxyng committed Jan 18, 2024
1 parent a38d88d commit 745b593
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ type ListResponse struct {

type ModelResponse struct {
Name string `json:"name"`
Model string `json:"model"`
ModifiedAt time.Time `json:"modified_at"`
Size int64 `json:"size"`
Digest string `json:"digest"`
Expand Down
1 change: 1 addition & 0 deletions server/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ func ListModelsHandler(c *gin.Context) {
}

return api.ModelResponse{
Model: model.ShortName,
Name: model.ShortName,
Size: model.Size,
Digest: model.Digest,
Expand Down

0 comments on commit 745b593

Please sign in to comment.