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

Method _get_model_id_url

modelscope/hub/repository.py:104–106  ·  view source on GitHub ↗
(self, model_id: str)

Source from the content-addressed store, hash-verified

102 self.git_wrapper.config_git_token(self.model_dir, self.git_token)
103
104 def _get_model_id_url(self, model_id: str) -> str:
105 endpoint = self._endpoint or get_endpoint()
106 return f'{endpoint}/{model_id}.git'
107
108 def pull(self, remote: str = 'origin', branch: str = 'master'):
109 """Pull *remote*/*branch* into the local checkout."""

Callers 1

__init__Method · 0.95

Calls 1

get_endpointFunction · 0.85

Tested by

no test coverage detected