MCPcopy
hub / github.com/buxuku/SmartSub / DownloadEndpointConfig

Interface DownloadEndpointConfig

types/downloadConfig.ts:10–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8 * 本文件必须保持「纯 TS、无 electron/node 副作用」,以便 renderer 也能直接 import
9 */
10export interface DownloadEndpointConfig {
11 /** GitHub 站点 base(含协议、无末尾斜杠),如 https://github.com */
12 githubBase: string;
13 /** GitHub 代理前缀(含协议、无末尾斜杠),拼接时自动补 /,如 https://gh-proxy.com */
14 githubProxyPrefix: string;
15 /** GitCode 站点 base(含协议、无末尾斜杠),如 https://gitcode.com */
16 gitcodeBase: string;
17 /** HuggingFace 国内镜像 base(含协议、无末尾斜杠),如 https://hf-mirror.com */
18 huggingFaceMirror: string;
19 /** HuggingFace 官方 base(含协议、无末尾斜杠),如 https://huggingface.co */
20 huggingFaceOfficial: string;
21 /** ModelScope 站点 base(含协议、无末尾斜杠),如 https://modelscope.cn */
22 modelScopeBase: string;
23}
24
25export const DEFAULT_DOWNLOAD_ENDPOINTS: DownloadEndpointConfig = {
26 githubBase: 'https://github.com',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected