if no API key is present, fall back to the web interface. Fixes #94
This commit is contained in:
parent
283e6fda3d
commit
1ed94ba797
1 changed files with 5 additions and 0 deletions
|
|
@ -147,6 +147,11 @@ async function openChatGPT(promptText, action, curr_tabId, prompt_name = '', do_
|
||||||
return;
|
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){
|
switch(prefs.connection_type){
|
||||||
case 'chatgpt_web':
|
case 'chatgpt_web':
|
||||||
// We are using the ChatGPT web interface
|
// We are using the ChatGPT web interface
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue