(20250128) AI summarization bug fix.

This commit is contained in:
2025-01-28 18:20:32 +05:30
parent c3bc77c2cb
commit 751fdfc612
3 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -573,8 +573,8 @@ class GmailController(MailController):
message = mail_message,
prompt_template = self.SENT_MAIL_SUMMARIZATION_PROMPT_TEMPLATE if is_sent else self.RECEIVED_MAIL_SUMMARIZATION_PROMPT_TEMPLATE
)
ai_json = ai_snippet.json
mail_message.aiSnippet = ai_snippet.summary
ai_json = ai_snippet.output_json
mail_message.aiSnippet["output"] = ai_json["summary"]
if ai_json["senderType"] is not None: mail_message.tags.append(ai_json["senderType"])
except Exception as exception: