the model select element is no more red when a correct model is selected. fixes #100

This commit is contained in:
mic 2024-08-14 21:57:21 +02:00
parent 2593111ed7
commit e481ea151d

View file

@ -166,6 +166,7 @@ document.addEventListener('DOMContentLoaded', async () => {
option.value = prefs.chatgpt_model;
option.text = prefs.chatgpt_model;
select_chatgpt_model.appendChild(option);
select_chatgpt_model.addEventListener("change", warnAPIKeyEmpty);
document.getElementById('btnUpdateChatGPTModels').addEventListener('click', async () => {
document.getElementById('model_fetch_loading').style.display = 'inline';