Skip to content

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

Fix: chat with tools bug. (#8528)

Kevin Hua10f05f4d7b4
diff --git a/rag/llm/chat_model.py b/rag/llm/chat_model.py
index 55faa6b320..638f021f4b 100644
--- a/rag/llm/chat_model.py
+++ b/rag/llm/chat_model.py
@@ -156,7 +156,7 @@ class Base(ABC):
self.tools.append(tool)
def chat_with_tools(self, system: str, history: list, gen_conf: dict):
- gen_conf = self._clean_conf()
+ gen_conf = self._clean_conf(gen_conf)
if system:
history.insert(0, {"role": "system", "content": system})