Added a new default prompt to reply with a custom command asked when exectutin the prompt. See #444

This commit is contained in:
mic 2025-07-25 23:15:30 +02:00
parent 3a2845a23c
commit 51068dd95c
2 changed files with 25 additions and 0 deletions

View file

@ -19,6 +19,10 @@
"message": "Reply to this thread",
"description": ""
},
"prompt_reply_custom_command": {
"message": "Reply with command",
"description": ""
},
"prompt_rewrite_polite": {
"message": "Rewrite polite",
"description": ""
@ -735,6 +739,10 @@
"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_reply_custom_command_full_text": {
"message": "Reply to the following email \"{%mail_text_body%}\". {%additional_text%}. 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": ""

View file

@ -109,6 +109,23 @@ const defaultPrompts = [
is_default: "1",
is_special: "0",
},
{
id: 'prompt_reply_custom_command',
name: "__MSG_prompt_reply_custom_command__",
text: "prompt_reply_custom_command_full_text",
type: "1",
action: "1",
need_selected: "0",
need_signature: "1",
need_custom_text: "1",
define_response_lang: "1",
use_diff_viewer: "0",
chatgpt_web_model: '',
chatgpt_web_project: '',
chatgpt_web_custom_gpt: '',
is_default: "1",
is_special: "0",
},
{
id: 'prompt_rewrite_polite',
name: "__MSG_prompt_rewrite_polite__",