connecting message added to i18n en
This commit is contained in:
parent
2aa2f1459f
commit
8f89b3beaf
2 changed files with 5 additions and 1 deletions
|
|
@ -434,5 +434,9 @@
|
||||||
"chagtp_api_send_button": {
|
"chagtp_api_send_button": {
|
||||||
"message": "Using model",
|
"message": "Using model",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"chagtp_api_connecting": {
|
||||||
|
"message": "Will attempt to connect to OpenAI ChatGPT using the API key provided...",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -59,7 +59,7 @@ let prefs_api = await browser.storage.sync.get({api_key_chatgpt: '', model_chatg
|
||||||
// const openaiApiKey = params.get('openapi-key');
|
// const openaiApiKey = params.get('openapi-key');
|
||||||
//console.log(">>>>>>>>>>> api_key_chatgpt: " + prefs_api_key.api_key_chatgpt);
|
//console.log(">>>>>>>>>>> api_key_chatgpt: " + prefs_api_key.api_key_chatgpt);
|
||||||
worker.postMessage({ type: 'init', api_key_chatgpt: prefs_api.api_key_chatgpt, model_chatgpt: prefs_api.model_chatgpt});
|
worker.postMessage({ type: 'init', api_key_chatgpt: prefs_api.api_key_chatgpt, model_chatgpt: prefs_api.model_chatgpt});
|
||||||
messagesArea.appendUserMessage("Will attempt to connect to OpenAI using the API key provided.", "info");
|
messagesArea.appendUserMessage(browser.i18n.getMessage("chagtp_api_connecting"), "info");
|
||||||
|
|
||||||
// Event listeners for worker messages
|
// Event listeners for worker messages
|
||||||
// TODO I'm sure there's a better way to do this
|
// TODO I'm sure there's a better way to do this
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue