From 18a56766c634221c1506f1c3ce7f58e6fb27f3c8 Mon Sep 17 00:00:00 2001 From: Frank Qing Date: Wed, 28 May 2025 14:37:27 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(merlin=5Fworker.zsh):=20update=20p?= =?UTF-8?q?roxy=20configuration=20to=20include=20new=20internal=20and=20ex?= =?UTF-8?q?ternal=20mirrors,=20and=20add=20aliases=20for=20easier=20endpoi?= =?UTF-8?q?nt=20management?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zshrc/merlin_worker.zsh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/zshrc/merlin_worker.zsh b/zshrc/merlin_worker.zsh index efe6a46..ae1ed16 100644 --- a/zshrc/merlin_worker.zsh +++ b/zshrc/merlin_worker.zsh @@ -1,9 +1,16 @@ -# proxy -export HF_ENDPOINT=http://huggingface-proxy-sg.byted.org +# huggingface proxy +export HF_NETWORK_PROXY=http://huggingface-proxy-sg.byted.org +export HF_MIRROR_INTERNAL=http://huggingface-mirror.bytedance.net +export HF_MIRROR_EXTERNAL=https://hf-mirror.com +export HF_ENDPOINT=$HF_NETWORK_PROXY +alias hf_network_proxy='export HF_ENDPOINT=$HF_NETWORK_PROXY' +alias hf_mirror_internal='export HF_ENDPOINT=$HF_MIRROR_INTERNAL' +alias hf_mirror_external='export HF_ENDPOINT=$HF_MIRROR_EXTERNAL' + +# http proxy export http_proxy=http://sys-proxy-rd-relay.byted.org:8118 export https_proxy=http://sys-proxy-rd-relay.byted.org:8118 export no_proxy=byted.org - alias proxy_on='export http_proxy=http://sys-proxy-rd-relay.byted.org:8118; export https_proxy=http://sys-proxy-rd-relay.byted.org:8118; export no_proxy=byted.org' alias proxy_off='unset http_proxy; unset https_proxy; unset no_proxy'