From a10f05f4d7b4e25f6b447c686153f5d8a498d711 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Fri, 27 Jun 2025 12:10:53 +0800 Subject: [PATCH] Fix: chat with tools bug. (#8528) ### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- rag/llm/chat_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rag/llm/chat_model.py b/rag/llm/chat_model.py index 55faa6b32..638f021f4 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})