MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / download

Method download

smallthinker/tools/run/run.cpp:652–660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650 private:
651#ifdef LLAMA_USE_CURL
652 int download(const std::string & url, const std::string & output_file, const bool progress,
653 const std::vector<std::string> & headers = {}, std::string * response_str = nullptr) {
654 HttpClient http;
655 if (http.init(url, headers, output_file, progress, response_str)) {
656 return 1;
657 }
658
659 return 0;
660 }
661#else
662 int download(const std::string &, const std::string &, const bool, const std::vector<std::string> & = {},
663 std::string * = nullptr) {

Callers 1

download_fileFunction · 0.80

Calls 2

printeFunction · 0.85
initMethod · 0.45

Tested by

no test coverage detected