Fixed the prompt substitution if there are no attendees
This commit is contained in:
parent
05bc76c5da
commit
ecfde64577
2 changed files with 8 additions and 0 deletions
|
|
@ -204,6 +204,7 @@ export class mzta_Menus {
|
||||||
* "attendees": [attendee1@example.com,attendee2@example.com,attendee3@example.com]"
|
* "attendees": [attendee1@example.com,attendee2@example.com,attendee3@example.com]"
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
|
fullPrompt = taPromptUtils.finalizePrompt_get_calendar_event(fullPrompt);
|
||||||
this.logger.log("fullPrompt: " + fullPrompt);
|
this.logger.log("fullPrompt: " + fullPrompt);
|
||||||
let cmd_GetCalendarEvent = new mzta_specialCommand(fullPrompt,prefs_at.connection_type,true);
|
let cmd_GetCalendarEvent = new mzta_specialCommand(fullPrompt,prefs_at.connection_type,true);
|
||||||
await cmd_GetCalendarEvent.initWorker();
|
await cmd_GetCalendarEvent.initWorker();
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,13 @@ export const taPromptUtils = {
|
||||||
return fullPrompt;
|
return fullPrompt;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
finalizePrompt_get_calendar_event(fullPrompt){
|
||||||
|
fullPrompt = fullPrompt.replace("{%cc_list%}", "");
|
||||||
|
fullPrompt = fullPrompt.replace("{%recipients%}", "");
|
||||||
|
|
||||||
|
return fullPrompt;
|
||||||
|
},
|
||||||
|
|
||||||
async getDefaultLang(curr_prompt){
|
async getDefaultLang(curr_prompt){
|
||||||
let chatgpt_lang = '';
|
let chatgpt_lang = '';
|
||||||
if(String(curr_prompt.define_response_lang) == "1"){
|
if(String(curr_prompt.define_response_lang) == "1"){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue