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 e20a42e commit cc3d234Copy full SHA for cc3d234
common/common.cpp
@@ -1028,9 +1028,8 @@ struct common_init_result common_init_from_params(common_params & params) {
1028
}
1029
1030
std::string get_model_endpoint() {
1031
- //For other communities with the same model backend protocols
1032
const char * model_endpoint_env = getenv("MODEL_ENDPOINT");
1033
- //For HF or HF mirror endpoints
+ // We still respect the use of environment-variable "HF_ENDPOINT" for backward-compatibility.
1034
const char * hf_endpoint_env = getenv("HF_ENDPOINT");
1035
const char * endpoint_env = model_endpoint_env ? model_endpoint_env : hf_endpoint_env;
1036
std::string model_endpoint = "https://huggingface.co/";
0 commit comments