Roy Han 10 months ago
parent
commit
c9fd7a730a
2 changed files with 1 additions and 2 deletions
  1. 1 1
      api/types.go
  2. 0 1
      docs/api.md

+ 1 - 1
api/types.go

@@ -326,7 +326,7 @@ type ProcessResponse struct {
 
 // ListModelResponse is a single model description in [ListResponse].
 type ListModelResponse struct {
-	Model      string       `json:"model"`
+	Name       string       `json:"name"`
 	ModifiedAt time.Time    `json:"modified_at"`
 	Size       int64        `json:"size"`
 	Digest     string       `json:"digest"`

+ 0 - 1
docs/api.md

@@ -1086,7 +1086,6 @@ A single JSON object will be returned.
 {
   "models": [
     {
-      "name": "mistral:latest",
       "model": "mistral:latest",
       "size": 5137025024,
       "digest": "2ae6f6dd7a3dd734790bbbf58b8909a606e0e7e97e94b7604e0aa7ae4490e6d8",