Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions common/arg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -673,8 +673,12 @@ static struct common_hf_file_res common_get_hf_file(const std::string &, const s
return {};
}

std::pair<long, std::vector<char>> common_remote_get_content(const std::string &, const common_remote_params &) {
throw std::runtime_error("error: built without CURL, cannot download model from the internet");
std::pair<long, std::vector<char>> common_remote_get_content(const std::string & url, const common_remote_params &) {
if (!url.empty()) {
throw std::runtime_error("error: built without CURL, cannot download model from the internet");
}

return {};
}

#endif // LLAMA_USE_CURL
Expand Down
Loading