From 11578cfa02d7918f21cfa229c9328cd145e62ed3 Mon Sep 17 00:00:00 2001
From: Hollow Man <songlin.jiang@csc.fi>
Date: Tue, 12 Mar 2024 20:17:11 +0200
Subject: [PATCH] Fix stream chat param error in CondenseQuestionChatEngine
 (#11856)

---
 .../llama_index/core/chat_engine/condense_question.py          | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/llama-index-core/llama_index/core/chat_engine/condense_question.py b/llama-index-core/llama_index/core/chat_engine/condense_question.py
index 31b7d6d9b0..c90e288a8e 100644
--- a/llama-index-core/llama_index/core/chat_engine/condense_question.py
+++ b/llama-index-core/llama_index/core/chat_engine/condense_question.py
@@ -259,7 +259,8 @@ class CondenseQuestionChatEngine(BaseChatEngine):
                 sources=[tool_output],
             )
             thread = Thread(
-                target=response.write_response_to_history, args=(self._memory, True)
+                target=response.write_response_to_history,
+                args=(self._memory,),
             )
             thread.start()
         else:
-- 
GitLab