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

Function get_domain

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

Source from the content-addressed store, hash-verified

39
40
41def get_domain(cn_site=True):
42 if MODELSCOPE_DOMAIN in os.environ and os.getenv(MODELSCOPE_DOMAIN):
43 return os.getenv(MODELSCOPE_DOMAIN)
44 if cn_site:
45 return DEFAULT_MODELSCOPE_DOMAIN
46 else:
47 return DEFAULT_MODELSCOPE_INTL_DOMAIN
48
49
50def convert_patterns(raw_input: Union[str, List[str]]):

Callers 1

get_endpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…