From d3f026671c7f4116c0ec60d79bc96ccf45a3a399 Mon Sep 17 00:00:00 2001 From: mic Date: Fri, 5 Apr 2024 00:31:52 +0200 Subject: [PATCH] Added need_signature properties to prompts --- js/mzta-prompts.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/js/mzta-prompts.js b/js/mzta-prompts.js index 9556a318..a4c50f2a 100644 --- a/js/mzta-prompts.js +++ b/js/mzta-prompts.js @@ -13,13 +13,17 @@ Only if text selected (attribute need_selected): 0: no selection needed (use all the message body) 1: need a selection + + Signature + 0: No signature needed + 1: Signature needed */ export const defaultPrompts = [ - { id: 'prompt_reply', name: "__MSG_prompt_reply__", text: "Reply to the following email.", type: 1, action: 1, need_selected: 0 }, - { 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.", type: 2, action: 2, need_selected: 1 }, - { 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.", type: 2, action: 2, need_selected: 1 }, - { 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.", type: 0, action: 0, need_selected: 0 }, - { id: 'prompt_summarize_this', name: "__MSG_prompt_summarize_this__", text: "Summerize the following email into a bullet point list.", type: 0, action: 0, need_selected: 0 }, - { id: 'prompt_translate_this', name: "__MSG_prompt_translate_this__", text: "Translate the following email in __MSG_prompt_translate_lang__", type: 0, action: 0, need_selected: 0 }, + { id: 'prompt_reply', name: "__MSG_prompt_reply__", text: "Reply to the following email.", type: 1, action: 1, need_selected: 0, need_signature: 1 }, + { 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.", type: 2, action: 2, need_selected: 1, need_signature: 0 }, + { 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.", type: 2, action: 2, need_selected: 1, need_signature: 0 }, + { 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.", type: 0, action: 0, need_selected: 0, need_signature: 0 }, + { id: 'prompt_summarize_this', name: "__MSG_prompt_summarize_this__", text: "Summerize the following email into a bullet point list.", type: 0, action: 0, need_selected: 0, need_signature: 0 }, + { id: 'prompt_translate_this', name: "__MSG_prompt_translate_this__", text: "Translate the following email in ", type: 0, action: 0, need_selected: 0, need_signature: 0 }, ];