Fix connection error for adding visual llm. (#4028)

### What problem does this PR solve?

#3897

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu 2024-12-13 18:54:51 +08:00 committed by GitHub
parent 9b2ef62aee
commit 9b9039de92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -255,9 +255,7 @@ def add_llm():
)
try:
img_url = (
"https://upload.wikimedia.org/wikipedia/comm"
"ons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/256"
"0px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"
"https://www.8848seo.cn/zb_users/upload/2022/07/20220705101240_99378.jpg"
)
res = requests.get(img_url)
if res.status_code == 200: