MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / common_get_model_endpoint

Function common_get_model_endpoint

common/common.cpp:1386–1399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1384common_init_result::~common_init_result() = default;
1385
1386std::string common_get_model_endpoint() {
1387 const char * model_endpoint_env = getenv("MODEL_ENDPOINT");
1388 // We still respect the use of environment-variable "HF_ENDPOINT" for backward-compatibility.
1389 const char * hf_endpoint_env = getenv("HF_ENDPOINT");
1390 const char * endpoint_env = model_endpoint_env ? model_endpoint_env : hf_endpoint_env;
1391 std::string model_endpoint = "https://huggingface.co/";
1392 if (endpoint_env) {
1393 model_endpoint = endpoint_env;
1394 if (model_endpoint.back() != '/') {
1395 model_endpoint += '/';
1396 }
1397 }
1398 return model_endpoint;
1399}
1400
1401common_context_seq_rm_type common_context_can_seq_rm(llama_context * ctx) {
1402 auto * mem = llama_get_memory(ctx);

Callers 3

get_repo_commitFunction · 0.85
get_repo_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected