From d7262a2520da179114f4b5a8edc83846380f93e9 Mon Sep 17 00:00:00 2001 From: mic Date: Tue, 20 Aug 2024 17:50:58 +0200 Subject: [PATCH] renamed the action from chatgpt_send to api_send when using an API. see #79 --- api_webchat/controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api_webchat/controller.js b/api_webchat/controller.js index 3666c5db..46b2b3c6 100644 --- a/api_webchat/controller.js +++ b/api_webchat/controller.js @@ -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) {