Kaynağa Gözat

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>
tags/v0.9.0
黄腾 1 yıl önce
ebeveyn
işleme
753c13d76f
No account linked to committer's email address
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1
    1
      api/apps/llm_app.py

+ 1
- 1
api/apps/llm_app.py Dosyayı Görüntüle

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

Loading…
İptal
Kaydet