From d5835666eff6a57d8c519c945979a08fd017122c Mon Sep 17 00:00:00 2001 From: ulleo Date: Thu, 16 Oct 2025 09:58:56 +0800 Subject: [PATCH] feat: improve generate sql template --- backend/apps/chat/task/llm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: