renamed the action from chatgpt_send to api_send when using an API. see #79
This commit is contained in:
parent
00250bcfeb
commit
d7262a2520
1 changed files with 2 additions and 2 deletions
|
|
@ -87,8 +87,8 @@ worker.onmessage = function(event) {
|
|||
browser.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
||||
//console.log(">>>>>>>>>>>>> controller.js onMessage: " + JSON.stringify(message));
|
||||
switch (message.command) {
|
||||
case "chatgpt_send":
|
||||
//send the received prompt to the chatgpt api
|
||||
case "api_send":
|
||||
//send the received prompt to the llm api
|
||||
if(message.do_custom_text=="1") {
|
||||
let userInput = prompt(browser.i18n.getMessage("chatgpt_win_custom_text"));
|
||||
if(userInput !== null) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue