diff --git a/app_chatgpt/models/mail_channel.py b/app_chatgpt/models/mail_channel.py index 6edb9190..194016d9 100644 --- a/app_chatgpt/models/mail_channel.py +++ b/app_chatgpt/models/mail_channel.py @@ -173,7 +173,6 @@ class Channel(models.Model): messages.append({"role": "system", "content": channel.description}) try: - messages = [] c_history = self.get_openai_context(channel.id, author_id, answer_id, openapi_context_timeout, chat_count) if c_history: messages += c_history