No subject line in the message reply. Fixes #17

This commit is contained in:
mic 2024-04-05 00:39:03 +02:00
parent 1e8fc2a1e9
commit 8af1cc5809

View file

@ -42,8 +42,15 @@ const addAction = (curr_prompt, promptsContainer) => {
var fullPrompt = fullPrompt = curr_prompt.text + (curr_prompt.need_signature ? " " + await getDefaultSignature():"") + " " + browser.i18n.getMessage("prompt_lang") + chatgpt_lang + ". \"" + msg_text.text + "\" "; var fullPrompt = fullPrompt = curr_prompt.text + (curr_prompt.need_signature ? " " + await getDefaultSignature():"") + " " + browser.i18n.getMessage("prompt_lang") + chatgpt_lang + ". \"" + msg_text.text + "\" ";
if(curr_prompt.id == 'prompt_translate_this'){ switch(curr_prompt.id){
fullPrompt = curr_prompt.text + chatgpt_lang + ". \"" + msg_text.text + "\" "; case 'prompt_translate_this':
fullPrompt = curr_prompt.text + chatgpt_lang + ". \"" + msg_text.text + "\" ";
break;
case 'prompt_reply':
fullPrompt += "Do not add the subject line to the response."
break;
default:
break;
} }
const tabs = await browser.tabs.query({ active: true, currentWindow: true }); const tabs = await browser.tabs.query({ active: true, currentWindow: true });