We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74dd6c8 commit 10ba8c7Copy full SHA for 10ba8c7
common/arg.cpp
@@ -656,9 +656,10 @@ static void common_params_handle_model(
656
}
657
658
659
- std::string hf_endpoint{"https://huggingface.co/"};
660
- if(auto const* hf_endpoint_env = getenv("HF_ENDPOINT"); hf_endpoint_env) {
661
- hf_endpoint = std::string{hf_endpoint_env};
+ std::string hf_endpoint = "https://huggingface.co/";
+ const char * hf_endpoint_env = getenv("HF_ENDPOINT");
+ if (hf_endpoint_env) {
662
+ hf_endpoint = hf_endpoint_env;
663
if (hf_endpoint.back() != '/') hf_endpoint += '/';
664
665
0 commit comments