Merge branch 'main' into v3.1.0
This commit is contained in:
commit
d7ff910ba1
2 changed files with 2 additions and 3 deletions
|
|
@ -247,7 +247,7 @@ export class mzta_Menus {
|
||||||
return {ok:'0'};
|
return {ok:'0'};
|
||||||
}
|
}
|
||||||
this.logger.log("tags_current_email: " + tags_current_email);
|
this.logger.log("tags_current_email: " + tags_current_email);
|
||||||
// console.log(">>>>>>>>>>>> tags_full_list: " + JSON.stringify(tags_full_list));
|
this.logger.log("tags_full_list: " + JSON.stringify(tags_full_list));
|
||||||
browser.tabs.sendMessage(tabs[0].id, {command: "getTags", tags: tags_current_email, messageId: curr_message.id});
|
browser.tabs.sendMessage(tabs[0].id, {command: "getTags", tags: tags_current_email, messageId: curr_message.id});
|
||||||
return {ok:'1'};
|
return {ok:'1'};
|
||||||
break; // Add tags to the email - END
|
break; // Add tags to the email - END
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,6 @@
|
||||||
}
|
}
|
||||||
case "openai_comp_api": {
|
case "openai_comp_api": {
|
||||||
let prefs_api = await browser.storage.sync.get({openai_comp_host: '', openai_comp_model: '', openai_comp_api_key: '', openai_comp_use_v1: true, openai_comp_chat_name: '', do_debug: false});
|
let prefs_api = await browser.storage.sync.get({openai_comp_host: '', openai_comp_model: '', openai_comp_api_key: '', openai_comp_use_v1: true, openai_comp_chat_name: '', do_debug: false});
|
||||||
// console.log(">>>>>>>>>>>> [ThunderAI] prefs_api: " + JSON.stringify(prefs_api));
|
|
||||||
this.worker.postMessage({ type: 'init', openai_comp_host: prefs_api.openai_comp_host, openai_comp_model: prefs_api.openai_comp_model, openai_comp_api_key: prefs_api.openai_comp_api_key, openai_comp_use_v1: prefs_api.openai_comp_use_v1, do_debug: this.do_debug, i18nStrings: ''});
|
this.worker.postMessage({ type: 'init', openai_comp_host: prefs_api.openai_comp_host, openai_comp_model: prefs_api.openai_comp_model, openai_comp_api_key: prefs_api.openai_comp_api_key, openai_comp_use_v1: prefs_api.openai_comp_use_v1, do_debug: this.do_debug, i18nStrings: ''});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -90,7 +89,7 @@
|
||||||
this.full_message += payload.token;
|
this.full_message += payload.token;
|
||||||
break;
|
break;
|
||||||
case 'tokensDone':
|
case 'tokensDone':
|
||||||
// console.log(">>>>>>>>>>>> [ThunderAI] tokensDone: " + this.full_message);
|
this.logger.log("tokensDone: " + this.full_message);
|
||||||
resolve(this.full_message); // Resolve the promise with the full message
|
resolve(this.full_message); // Resolve the promise with the full message
|
||||||
break;
|
break;
|
||||||
case 'error':
|
case 'error':
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue