(20250128) AI summarization bug fix.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user