mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 00:49:14 +08:00
api http return error (#3941)
api http return error when content is not found - [x] Bug Fix (non-breaking change which fixes an issue) --------- Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
This commit is contained in:
parent
255f4ccffc
commit
60486ecde5
@ -58,7 +58,7 @@ def structure_answer(conv, ans, message_id, session_id):
|
||||
|
||||
chunk_list = [{
|
||||
"id": chunk["chunk_id"],
|
||||
"content": chunk["content"],
|
||||
"content": chunk.get("content") if chunk.get("content") else chunk.get("content_with_content"),
|
||||
"document_id": chunk["doc_id"],
|
||||
"document_name": chunk["docnm_kwd"],
|
||||
"dataset_id": chunk["kb_id"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user