mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
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)
This commit is contained in:
@ -156,7 +156,7 @@ class Base(ABC):
|
|||||||
self.tools.append(tool)
|
self.tools.append(tool)
|
||||||
|
|
||||||
def chat_with_tools(self, system: str, history: list, gen_conf: dict):
|
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:
|
if system:
|
||||||
history.insert(0, {"role": "system", "content": system})
|
history.insert(0, {"role": "system", "content": system})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user