Update boolean isShard to snake case

This commit is contained in:
Tevin Wang 2024-04-22 13:29:56 -04:00 committed by GitHub
parent 0de4b6d0fb
commit af5af31aa0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1866,7 +1866,7 @@ void llama_batch_add(
#ifdef LLAMA_USE_CURL
static bool llama_download_file(CURL * curl, const char * url, const char * path, boolean_t isShard) {
static bool llama_download_file(CURL * curl, const char * url, const char * path, boolean_t is_shard) {
bool force_download = false;
// Set the URL, allow to follow http redirection
@ -2000,7 +2000,7 @@ static bool llama_download_file(CURL * curl, const char * url, const char * path
curl_easy_setopt(curl, CURLOPT_WRITEDATA, outfile);
// display download progress if not sharded
if (isShard) {
if (is_shard) {
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L);
} else {
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);