MCPcopy Create free account
hub / github.com/modelscope/modelscope / get_endpoint

Function get_endpoint

modelscope/hub/utils/utils.py:209–210  ·  view source on GitHub ↗
(cn_site=True)

Source from the content-addressed store, hash-verified

207
208
209def get_endpoint(cn_site=True):
210 return MODELSCOPE_URL_SCHEME + get_domain(cn_site)
211
212
213def resolve_endpoint(cli_endpoint: Optional[str] = None,

Callers 8

load_dataset_with_ctxFunction · 0.90
__init__Method · 0.90
__init__Method · 0.90
preupload_weightsMethod · 0.90
_get_model_id_urlMethod · 0.85
_get_repo_urlMethod · 0.85
get_file_download_urlFunction · 0.85
resolve_endpointFunction · 0.85

Calls 1

get_domainFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…