From fcabeae80e87102942b93b0f3b3de62582a30d4b Mon Sep 17 00:00:00 2001 From: mic Date: Fri, 5 Apr 2024 00:51:24 +0200 Subject: [PATCH] "Prompt this" added. Fixes #15 --- _locales/en/messages.json | 5 +++++ _locales/it/messages.json | 5 +++++ js/mzta-prompts.js | 1 + 3 files changed, 11 insertions(+) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index c700b970..d4a400b8 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -44,6 +44,11 @@ "description": "" }, + "prompt_this": { + "message": "Prompt this", + "description": "" + }, + "prompt_selection_needed": { "message": "To proceed, you need to select some text!", "description": "" diff --git a/_locales/it/messages.json b/_locales/it/messages.json index b04912dc..ab2093a1 100644 --- a/_locales/it/messages.json +++ b/_locales/it/messages.json @@ -44,6 +44,11 @@ "description": "" }, + "prompt_this": { + "message": "Chedi a ChatGPT", + "description": "" + }, + "prompt_selection_needed": { "message": "Per procedere รจ necessario che selezioni del testo!", "description": "" diff --git a/js/mzta-prompts.js b/js/mzta-prompts.js index 3eace9aa..5c54d97f 100644 --- a/js/mzta-prompts.js +++ b/js/mzta-prompts.js @@ -26,4 +26,5 @@ export 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.", type: 0, action: 0, need_selected: 0, need_signature: 0 }, { id: 'prompt_summarize_this', name: "__MSG_prompt_summarize_this__", text: "Summarize 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 }, + { id: 'prompt_this', name: "__MSG_prompt_this__", text: "Reply with only the needed text and with no extra comments or other text.", type: 2, action: 2, need_selected: 1, need_signature: 0 }, ];