(fix) avoid stringifying list

This commit is contained in:
ManishMadan2882
2024-12-19 17:58:55 +05:30
parent 9096013e13
commit b19c14787e
5 changed files with 16 additions and 10 deletions

View File

@@ -73,6 +73,7 @@ class BraveRetSearch(BaseRetriever):
if len(self.chat_history) > 1:
for i in self.chat_history:
if "prompt" in i and "response" in i:
messages_combine.append(
{"role": "user", "content": i["prompt"]}
)