Quellcode durchsuchen

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)
tags/v0.20.0
Kevin Hu vor 4 Monaten
Ursprung
Commit
a10f05f4d7
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      rag/llm/chat_model.py

+ 1
- 1
rag/llm/chat_model.py Datei anzeigen

@@ -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})


Laden…
Abbrechen
Speichern