diff --git a/_locales/en/messages.json b/_locales/en/messages.json index e77a3da6..dfd37c48 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -718,5 +718,29 @@ "prompt_reply_advanced_full_text": { "message": "Reply to the following email \"{%selected_text%}\", considering this is the full thread of emails \"{%mail_html_body%}\". Reply with only the needed text and with no extra comments or other text.", "description": "" + }, + "prompt_rewrite_full_text": { + "message": "Rewrite the following text to be more polite. Reply with only the re-written text and with no extra comments or other text.", + "description": "" + }, + "prompt_rewrite_formal_full_text": { + "message": "Rewrite the following text to be more formal. Reply with only the re-written text and with no extra comments or other text.", + "description": "" + }, + "prompt_classify_full_text": { + "message": "Classify the following text in terms of Politeness, Warmth, Formality, Assertiveness, Offensiveness giving a percentage for each category. Reply with only the category and score with no extra comments or other text.", + "description": "" + }, + "prompt_summarize_this_full_text": { + "message": "Summarize the following email into a bullet point list.", + "description": "" + }, + "prompt_translate_this_full_text": { + "message": "Translate the following email in", + "description": "" + }, + "prompt_this_full_text": { + "message": "Reply with only the needed text and with no extra comments or other text.", + "description": "" } } \ No newline at end of file diff --git a/js/mzta-menus.js b/js/mzta-menus.js index b0795795..aaf099cc 100644 --- a/js/mzta-menus.js +++ b/js/mzta-menus.js @@ -167,7 +167,7 @@ export class mzta_Menus { if(chatgpt_lang2 === ''){ chatgpt_lang2 = getLanguageDisplayName(browser.i18n.getUILanguage()); } - fullPrompt = curr_prompt.text + chatgpt_lang2 + ". \"" + body_text + "\" "; + fullPrompt = curr_prompt.text + " " + chatgpt_lang2 + ". \"" + body_text + "\" "; break; case 'prompt_reply': fullPrompt += browser.i18n.getMessage("prompt_reply_additional_text"); diff --git a/js/mzta-prompts.js b/js/mzta-prompts.js index 793ce9b1..a01b0e76 100644 --- a/js/mzta-prompts.js +++ b/js/mzta-prompts.js @@ -89,7 +89,7 @@ const defaultPrompts = [ { id: 'prompt_rewrite_polite', name: "__MSG_prompt_rewrite_polite__", - text: "Rewrite the following text to be more polite. Reply with only the re-written text and with no extra comments or other text.", + text: "prompt_rewrite_full_text", type: "2", action: "2", need_selected: "1", @@ -101,7 +101,7 @@ const defaultPrompts = [ { id: 'prompt_rewrite_formal', name: "__MSG_prompt_rewrite_formal__", - text: "Rewrite the following text to be more formal. Reply with only the re-written text and with no extra comments or other text.", + text: "prompt_rewrite_formal_full_text", type: "2", action: "2", need_selected: "1", @@ -113,7 +113,7 @@ const defaultPrompts = [ { id: 'prompt_classify', name: "__MSG_prompt_classify__", - text: "Classify the following text in terms of Politeness, Warmth, Formality, Assertiveness, Offensiveness giving a percentage for each category. Reply with only the category and score with no extra comments or other text.", + text: "prompt_classify_full_text", type: "0", action: "0", need_selected: "0", @@ -125,7 +125,7 @@ const defaultPrompts = [ { id: 'prompt_summarize_this', name: "__MSG_prompt_summarize_this__", - text: "Summarize the following email into a bullet point list.", + text: "prompt_summarize_this_full_text", type: "0", action: "0", need_selected: "0", @@ -137,7 +137,7 @@ const defaultPrompts = [ { id: 'prompt_translate_this', name: "__MSG_prompt_translate_this__", - text: "Translate the following email in ", + text: "prompt_translate_this_full_text", type: "0", action: "0", need_selected: "0", @@ -149,7 +149,7 @@ const defaultPrompts = [ { id: 'prompt_this', name: "__MSG_prompt_this__", - text: "Reply with only the needed text and with no extra comments or other text.", + text: "prompt_this_full_text", type: "2", action: "2", need_selected: "1",