RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix : p3 level sdk test error for update chat (#12654)
6ba3i59075a0b5847
diff --git a/sdk/python/ragflow_sdk/modules/chat.py b/sdk/python/ragflow_sdk/modules/chat.pyindex 53fcc1af95..474fa54b87 100644--- a/sdk/python/ragflow_sdk/modules/chat.py+++ b/sdk/python/ragflow_sdk/modules/chat.py@@ -60,6 +60,12 @@ class Chat(Base):super().__init__(rag, res_dict)def update(self, update_message: dict):+ if not isinstance(update_message, dict):+ raise Exception("ValueError('`update_message` must be a dict')")+ if update_message.get("llm") == {}:+ raise Exception("ValueError('`llm` cannot be empty')")+ if update_message.get("prompt") == {}:+ raise Exception("ValueError('`prompt` cannot be empty')")res = self.put(f"/chats/{self.id}", update_message)res = res.json()if res.get("code") != 0: