From 0f418976f54943a8295f4ad48073efc834ca66ab Mon Sep 17 00:00:00 2001 From: mudler Date: Sun, 13 Aug 2023 18:44:48 +0200 Subject: [PATCH] fix: extend, not append here --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 6b3b542..f1b2f9a 100644 --- a/main.py +++ b/main.py @@ -762,7 +762,7 @@ def evaluate(user_input, conversation_history = [],re_evaluate=False, agent_acti response = converse(conversation_history) # add the response to the conversation history by extending the list - conversation_history.append(response) + conversation_history.extend(response) # logger.info the latest response from the conversation history logger.info(conversation_history[-1]["content"]) tts(conversation_history[-1]["content"])