Add bypass status check for Generic TC API type

7eacdac6658f5a151b31e6684a20a921b714c645

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +2 -2Showing whitespace changes
public/index.html+1 -1
@@ -2616,7 +2616,7 @@
2616 </div>2616 </div>
2617 </div>2617 </div>
2618 <div class="flex-container flexFlowColumn marginTopBot5">2618 <div class="flex-container flexFlowColumn marginTopBot5">
2619 <label data-tg-type="ooba" class="checkbox_label" for="bypass_status_check_textgenerationwebui">2619 <label data-tg-type="ooba, generic" class="checkbox_label" for="bypass_status_check_textgenerationwebui">
2620 <input type="checkbox" id="bypass_status_check_textgenerationwebui" />2620 <input type="checkbox" id="bypass_status_check_textgenerationwebui" />
2621 <span data-i18n="Bypass status check">Bypass status check</span>2621 <span data-i18n="Bypass status check">Bypass status check</span>
2622 </label>2622 </label>
public/script.js+1 -1
@@ -1173,7 +1173,7 @@ async function getStatusTextgen() {
1173 return resultCheckStatus();1173 return resultCheckStatus();
1174 }1174 }
11751175
1176 if (textgen_settings.type == textgen_types.OOBA && textgen_settings.bypass_status_check) {1176 if ([textgen_types.GENERIC, textgen_types.OOBA].includes(textgen_settings.type) && textgen_settings.bypass_status_check) {
1177 setOnlineStatus('Status check bypassed');1177 setOnlineStatus('Status check bypassed');
1178 return resultCheckStatus();1178 return resultCheckStatus();
1179 }1179 }