mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix bugs (#4241)
### What problem does this PR solve? 1. Refactor error message 2. Fix knowledges are created on ES and can't be found in Infinity. The document chunk fetch error. ### Type of change - [x] Fix bug - [x] Refactoring --------- Signed-off-by: jinhai <haijin.chn@gmail.com>
This commit is contained in:
@ -405,7 +405,7 @@ def chatbot_completions(dialog_id):
|
||||
token = token[1]
|
||||
objs = APIToken.query(beta=token)
|
||||
if not objs:
|
||||
return get_error_data_result(message='Token is not valid!"')
|
||||
return get_error_data_result(message='Authentication error: API key is invalid!"')
|
||||
|
||||
if "quote" not in req:
|
||||
req["quote"] = False
|
||||
@ -432,7 +432,7 @@ def agent_bot_completions(agent_id):
|
||||
token = token[1]
|
||||
objs = APIToken.query(beta=token)
|
||||
if not objs:
|
||||
return get_error_data_result(message='Token is not valid!"')
|
||||
return get_error_data_result(message='Authentication error: API key is invalid!"')
|
||||
|
||||
if "quote" not in req:
|
||||
req["quote"] = False
|
||||
|
||||
Reference in New Issue
Block a user