Skip to content

Commit 0f41897

Browse files
committed
fix: extend, not append here
1 parent 71e4a1d commit 0f41897

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ def evaluate(user_input, conversation_history = [],re_evaluate=False, agent_acti
762762
response = converse(conversation_history)
763763

764764
# add the response to the conversation history by extending the list
765-
conversation_history.append(response)
765+
conversation_history.extend(response)
766766
# logger.info the latest response from the conversation history
767767
logger.info(conversation_history[-1]["content"])
768768
tts(conversation_history[-1]["content"])

0 commit comments

Comments
 (0)