mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
update progress responses
This commit is contained in:
parent
4dcf7a59b1
commit
d6ecaa2cbf
2 changed files with 4 additions and 4 deletions
|
@ -285,7 +285,7 @@ func (b *blobDownload) Wait(ctx context.Context, fn func(api.ProgressResponse))
|
|||
}
|
||||
|
||||
fn(api.ProgressResponse{
|
||||
Status: fmt.Sprintf("downloading %s", b.Digest),
|
||||
Status: fmt.Sprintf("downloading %s", b.Digest[7:19]),
|
||||
Digest: b.Digest,
|
||||
Total: b.Total,
|
||||
Completed: b.Completed.Load(),
|
||||
|
@ -322,7 +322,7 @@ func downloadBlob(ctx context.Context, opts downloadOpts) error {
|
|||
return err
|
||||
default:
|
||||
opts.fn(api.ProgressResponse{
|
||||
Status: fmt.Sprintf("downloading %s", opts.digest),
|
||||
Status: fmt.Sprintf("downloading %s", opts.digest[7:19]),
|
||||
Digest: opts.digest,
|
||||
Total: fi.Size(),
|
||||
Completed: fi.Size(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue