From b0956cbb5daba060e972bc3c7389fea00e97c844 Mon Sep 17 00:00:00 2001 From: ulleo Date: Thu, 18 Sep 2025 17:23:02 +0800 Subject: [PATCH] pref: remove redundant init_messages usage in llm.py fix #149 --- backend/apps/chat/task/llm.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/apps/chat/task/llm.py b/backend/apps/chat/task/llm.py index 4d72481dc..6979b23f2 100644 --- a/backend/apps/chat/task/llm.py +++ b/backend/apps/chat/task/llm.py @@ -148,8 +148,6 @@ def __init__(self, current_user: CurrentUser, chat_question: ChatQuestion, else: self.chat_question.error_msg = '' - self.init_messages() - @classmethod async def create(cls, *args, **kwargs): config: LLMConfig = await get_default_config()