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: local variable referenced before assignment (#6909)
Yongteng Leia008b38cf5b9
diff --git a/rag/llm/chat_model.py b/rag/llm/chat_model.pyindex 1cc94ab1eb..783faf59ac 100644--- a/rag/llm/chat_model.py+++ b/rag/llm/chat_model.py@@ -211,7 +211,7 @@ class Base(ABC):# For non-rate limit errors or the last attempt, return an error messageif attempt == self.max_retries - 1:error_code = ERROR_MAX_RETRIES- return f"{ERROR_PREFIX}: {error_code} - {str(e)}. response: {response}", 0+ return f"{ERROR_PREFIX}: {error_code} - {str(e)}", 0def _wrap_toolcall_message(self, stream):final_tool_calls = {}