Fixed the prompt substitution if there are no attendees

This commit is contained in:
Mic 2025-03-28 01:10:00 +01:00
parent 05bc76c5da
commit ecfde64577
2 changed files with 8 additions and 0 deletions

View file

@ -204,6 +204,7 @@ export class mzta_Menus {
* "attendees": [attendee1@example.com,attendee2@example.com,attendee3@example.com]"
* }
*/
fullPrompt = taPromptUtils.finalizePrompt_get_calendar_event(fullPrompt);
this.logger.log("fullPrompt: " + fullPrompt);
let cmd_GetCalendarEvent = new mzta_specialCommand(fullPrompt,prefs_at.connection_type,true);
await cmd_GetCalendarEvent.initWorker();

View file

@ -57,6 +57,13 @@ export const taPromptUtils = {
return fullPrompt;
},
finalizePrompt_get_calendar_event(fullPrompt){
fullPrompt = fullPrompt.replace("{%cc_list%}", "");
fullPrompt = fullPrompt.replace("{%recipients%}", "");
return fullPrompt;
},
async getDefaultLang(curr_prompt){
let chatgpt_lang = '';
if(String(curr_prompt.define_response_lang) == "1"){