ソースを参照

Double check error of adding llm. (#5237)

### What problem does this PR solve?

#5227

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.17.0
Kevin Hu 8ヶ月前
コミット
ef8847eda7
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      api/apps/llm_app.py

+ 1
- 1
api/apps/llm_app.py ファイルの表示

@@ -230,7 +230,7 @@ def add_llm():
try:
m, tc = mdl.chat(None, [{"role": "user", "content": "Hello! How are you doing!"}], {
"temperature": 0.9})
if not tc:
if not tc and m.find("**ERROR**:") >= 0:
raise Exception(m)
except Exception as e:
msg += f"\nFail to access model({mdl_nm})." + str(

読み込み中…
キャンセル
保存