mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 10:26:53 +02:00
add maximum retries when pushing (#334)
This commit is contained in:
parent
1556162c90
commit
d9cf18e28d
4 changed files with 35 additions and 21 deletions
|
@ -137,7 +137,7 @@ func doDownload(ctx context.Context, mp ModelPath, regOpts *RegistryOptions, f *
|
|||
"Range": fmt.Sprintf("bytes=%d-", size),
|
||||
}
|
||||
|
||||
resp, err := makeRequest("GET", url, headers, nil, regOpts)
|
||||
resp, err := makeRequest(ctx, "GET", url, headers, nil, regOpts)
|
||||
if err != nil {
|
||||
log.Printf("couldn't download blob: %v", err)
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue