From c056fb074ca5b34b95610f0737a6f9992fa6010c Mon Sep 17 00:00:00 2001 From: mic Date: Sun, 13 Apr 2025 07:59:34 +0200 Subject: [PATCH] proofread prompt added. fixes #21 --- _locales/en/messages.json | 8 ++++++++ js/mzta-prompts.js | 14 ++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 0bc539b2..6299116a 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -783,6 +783,14 @@ "message": "Analyze the following email text and generate a comma-separated list of tags that summarize its content. Use themes, key topics, and relevant descriptors as tags. Ensure the tags are concise and relevant to the email's content.\nEmail text: {%mail_text_body%}\nConsider the following details for context:\n- Sender: {%author%}\n- Recipients: {%recipients%}\n- CC list: {%cc_list%}\n- Email subject: {%mail_subject%}\nPlease base your tags on the email's text and context, ignoring unnecessary information or trivial details. The output should be only a list of comma separated tags without any additional comment or text.", "description": "" }, + "prompt_proofread_this": { + "message": "Proofread this email", + "description": "" + }, + "prompt_proofread_this_full_text": { + "message": "Proofread the following email and also correct any spelling or grammar mistakes. Reply with only the corrected text and with no extra comments or other text.\n\n\"{%mail_typed_text%}\"", + "description": "" + }, "placeholder_tags_current_email": { "message": "Mail tags", "description": "" diff --git a/js/mzta-prompts.js b/js/mzta-prompts.js index 9f1659d9..f5b2bb77 100644 --- a/js/mzta-prompts.js +++ b/js/mzta-prompts.js @@ -150,6 +150,20 @@ const defaultPrompts = [ is_default: "1", is_special: "0", }, + { + id: 'prompt_proofread_this', + name: "__MSG_prompt_proofread_this__", + text: "prompt_proofread_this_full_text", + type: "2", + action: "2", + need_selected: "0", + need_signature: "0", + need_custom_text: "0", + define_response_lang: "1", + use_diff_viewer: "1", + is_default: "1", + is_special: "0", + }, { id: 'prompt_translate_this', name: "__MSG_prompt_translate_this__",