Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: broken /api/v1/chats endpoint (#5785)

dekdc4d4342cdbb
diff --git a/api/apps/sdk/chat.py b/api/apps/sdk/chat.py
index da6fcc51df..bfeba2b0f1 100644
--- a/api/apps/sdk/chat.py
+++ b/api/apps/sdk/chat.py
@@ -318,7 +318,7 @@ def list_chat(tenant_id):
for kb_id in res["kb_ids"]:
kb = KnowledgebaseService.query(id=kb_id)
if not kb:
- logging.WARN(f"Don't exist the kb {kb_id}")
+ logging.warning(f"The kb {kb_id} does not exist.")
continue
kb_list.append(kb[0].to_json())
del res["kb_ids"]