diff --git a/backend/apps/chat/task/llm.py b/backend/apps/chat/task/llm.py index 049a0334..dbb9e5b7 100644 --- a/backend/apps/chat/task/llm.py +++ b/backend/apps/chat/task/llm.py @@ -923,8 +923,7 @@ def run_task(self, in_chat: bool = True, stream: bool = True, self.chat_question.custom_prompt = find_custom_prompts(_session, CustomPromptTypeEnum.GENERATE_SQL, oid, ds_id) - - self.init_messages() + self.init_messages() # return id if in_chat: