ソースを参照

Fix: empty api-key causes problems. (#6022)

### What problem does this PR solve?
#5926

### Type of change

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

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

@@ -135,7 +135,7 @@ def set_api_key():
def add_llm():
req = request.json
factory = req["llm_factory"]
api_key = req.get("api_key", "")
api_key = req.get("api_key", "x")
llm_name = req["llm_name"]

def apikey_json(keys):

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