fix add local vision llm error when cannot download test pic (#1732)

### What problem does this PR solve?

#1726   fix add local vision llm  error when cannot download test pic

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Co-authored-by: Zhedong Cen <cenzhedong2@126.com>
This commit is contained in:
黄腾 2024-07-29 11:52:59 +08:00 committed by GitHub
parent 0cb588f7bf
commit 753c13d76f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -195,7 +195,7 @@ def add_llm():
if not tc:
raise Exception(m)
else:
raise ConnectionError("fail to download the test picture")
pass
except Exception as e:
msg += f"\nFail to access model({llm['llm_name']})." + str(e)
else: