exiting for loop when the model is found. related to #38
This commit is contained in:
parent
23717c0985
commit
0456874185
1 changed files with 1 additions and 0 deletions
|
|
@ -220,6 +220,7 @@ function checkGPT4Model() {
|
||||||
document.getElementById('mzta-model_warn').style.display = 'none';
|
document.getElementById('mzta-model_warn').style.display = 'none';
|
||||||
document.getElementById('mzta-btn_gpt35').style.display = 'none';
|
document.getElementById('mzta-btn_gpt35').style.display = 'none';
|
||||||
resolve("GPT4");
|
resolve("GPT4");
|
||||||
|
break;
|
||||||
} else if (!element) {
|
} else if (!element) {
|
||||||
console.log("Element not found!");
|
console.log("Element not found!");
|
||||||
clearInterval(intervalId);
|
clearInterval(intervalId);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue