if no API key is present, fall back to the web interface. Fixes #94

This commit is contained in:
mic 2024-07-22 23:03:54 +02:00
parent 283e6fda3d
commit 1ed94ba797

View file

@ -147,6 +147,11 @@ async function openChatGPT(promptText, action, curr_tabId, prompt_name = '', do_
return;
}
// check if the API is present, otherwise open the web interface
if (prefs.api_key_chatgpt == '') {
prefs.connection_type = 'chatgpt_web';
}
switch(prefs.connection_type){
case 'chatgpt_web':
// We are using the ChatGPT web interface