using info type

This commit is contained in:
mic 2024-07-27 14:59:21 +02:00
parent 08d38e90b0
commit 1c098faeef

View file

@ -43,7 +43,7 @@ let prefs_api_key = '' // only for testing
// const openaiApiKey = params.get('openapi-key');
//console.log(">>>>>>>>>>> api_key_chatgpt: " + prefs_api_key.api_key_chatgpt);
worker.postMessage({ type: 'init', api_key_chatgpt: prefs_api_key.api_key_chatgpt });
messagesArea.appendUserMessage("Will attempt to connect to OpenAI using the API key provided.", "");
messagesArea.appendUserMessage("Will attempt to connect to OpenAI using the API key provided.", "info");
// Event listeners for worker messages
// TODO I'm sure there's a better way to do this