exiting for loop when the model is found. related to #38

This commit is contained in:
mic 2024-05-03 23:05:38 +02:00
parent 23717c0985
commit 0456874185

View file

@ -220,6 +220,7 @@ function checkGPT4Model() {
document.getElementById('mzta-model_warn').style.display = 'none';
document.getElementById('mzta-btn_gpt35').style.display = 'none';
resolve("GPT4");
break;
} else if (!element) {
console.log("Element not found!");
clearInterval(intervalId);