File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,15 @@ def send_request(
191
191
if show_log :
192
192
logger .warning (f"HF proxy { hf_url } failed: { e } " )
193
193
continue
194
- raise ConnectionError (f"All HF proxies failed. Last error: { last_exception } " )
194
+ hf_proxy_links = '\n ' .join ([f"- { url } " for url in HF_PROXY_URLS ])
195
+ raise ConnectionError (
196
+ "Tất cả các HuggingFace proxy đều thất bại.\n "
197
+ "Proxy HuggingFace có thể đang ở trạng thái sleep do không có truy cập thường xuyên.\n "
198
+ "Vui lòng click vào một trong các link dưới đây để mở app proxy trên HuggingFace, đợi 5-10 giây rồi thử lại.\n "
199
+ f"\n Danh sách proxy đã thử:\n { hf_proxy_links } \n "
200
+ f"\n Lỗi cuối cùng: { last_exception } "
201
+ )
202
+
195
203
else :
196
204
# Chọn HF proxy theo mode
197
205
if len (HF_PROXY_URLS ) > 1 :
You can’t perform that action at this time.
0 commit comments