Update common/common.cpp
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
parent
8751bd0c82
commit
f53bfd56af
1 changed files with 1 additions and 1 deletions
|
@ -1735,7 +1735,7 @@ struct llama_model *llama_load_model_from_url(const char *model_url, const char
|
||||||
// If only the ETag or the Last-Modified header are different, trigger a new download
|
// If only the ETag or the Last-Modified header are different, trigger a new download
|
||||||
if (strcmp(etag, headers.etag) != 0 || strcmp(last_modified, headers.last_modified) != 0) {
|
if (strcmp(etag, headers.etag) != 0 || strcmp(last_modified, headers.last_modified) != 0) {
|
||||||
// Set the output file
|
// Set the output file
|
||||||
auto *outfile = fopen(path_model, "wb");
|
auto * outfile = fopen(path_model, "wb");
|
||||||
if (!outfile) {
|
if (!outfile) {
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
curl_global_cleanup();
|
curl_global_cleanup();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue