Skip to content

Commit cc3d234

Browse files
committed
update comment
1 parent e20a42e commit cc3d234

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

common/common.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,9 +1028,8 @@ struct common_init_result common_init_from_params(common_params & params) {
10281028
}
10291029

10301030
std::string get_model_endpoint() {
1031-
//For other communities with the same model backend protocols
10321031
const char * model_endpoint_env = getenv("MODEL_ENDPOINT");
1033-
//For HF or HF mirror endpoints
1032+
// We still respect the use of environment-variable "HF_ENDPOINT" for backward-compatibility.
10341033
const char * hf_endpoint_env = getenv("HF_ENDPOINT");
10351034
const char * endpoint_env = model_endpoint_env ? model_endpoint_env : hf_endpoint_env;
10361035
std::string model_endpoint = "https://huggingface.co/";

0 commit comments

Comments
 (0)