mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-07 11:45:21 +00:00
rmv api type
This commit is contained in:
parent
07c0f66f5e
commit
9bc42f532b
@ -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].
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user