rmv api type

This commit is contained in:
Josh Yan 2024-08-12 09:45:44 -07:00
parent 07c0f66f5e
commit 9bc42f532b
2 changed files with 1 additions and 2 deletions

View File

@ -370,7 +370,6 @@ type ProgressResponse struct {
Digest string `json:"digest,omitempty"` Digest string `json:"digest,omitempty"`
Total int64 `json:"total,omitempty"` Total int64 `json:"total,omitempty"`
Completed int64 `json:"completed,omitempty"` Completed int64 `json:"completed,omitempty"`
Type string `json:"quantize,omitempty"`
} }
// PushRequest is the request passed to [Client.Push]. // PushRequest is the request passed to [Client.Push].

View File

@ -137,7 +137,7 @@ func CreateHandler(cmd *cobra.Command, args []string) error {
} }
bar.Set(resp.Completed) bar.Set(resp.Completed)
} else if resp.Type == "quantize" { } else if strings.Contains(resp.Status, "quantizing") {
spinner.Stop() spinner.Stop()
if quantizeSpin != nil { if quantizeSpin != nil {