diff --git a/js/mzta-chatgpt.js b/js/mzta-chatgpt.js index dfb711e8..9e2f1d59 100644 --- a/js/mzta-chatgpt.js +++ b/js/mzta-chatgpt.js @@ -396,7 +396,7 @@ async function doProceed(message, customText = ''){ // console.log(">>>>>>>>>>>> doProceed customText: " + customText); // console.log(">>>>>>>>>>>> doProceed final_prompt: " + final_prompt); // console.log(">>>>>>>>>>>> doProceed mztaPhDefVal: " + JSON.stringify(mztaPhDefVal)); - //check if there is che additional_text placeholder + //check if there is the additional_text placeholder if(final_prompt.includes('{%additional_text%}')){ // console.log(">>>>>>>>>>>> found ph customText: " + customText); final_prompt = final_prompt.replace('{%additional_text%}', customText || (mztaPhDefVal == '1'?'':'{%additional_text%}'));