mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 02:39:04 +08:00
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)
This commit is contained in:
parent
3af1063737
commit
471bd92b4c
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user