Add bypass status check for Generic TC API type

This commit is contained in:
Cohee
2024-12-16 21:29:41 +02:00
parent 0819588e7a
commit 7eacdac665
2 changed files with 2 additions and 2 deletions

View File

@@ -2616,7 +2616,7 @@
</div> </div>
</div> </div>
<div class="flex-container flexFlowColumn marginTopBot5"> <div class="flex-container flexFlowColumn marginTopBot5">
<label data-tg-type="ooba" class="checkbox_label" for="bypass_status_check_textgenerationwebui"> <label data-tg-type="ooba, generic" class="checkbox_label" for="bypass_status_check_textgenerationwebui">
<input type="checkbox" id="bypass_status_check_textgenerationwebui" /> <input type="checkbox" id="bypass_status_check_textgenerationwebui" />
<span data-i18n="Bypass status check">Bypass status check</span> <span data-i18n="Bypass status check">Bypass status check</span>
</label> </label>

View File

@@ -1173,7 +1173,7 @@ async function getStatusTextgen() {
return resultCheckStatus(); return resultCheckStatus();
} }
if (textgen_settings.type == textgen_types.OOBA && textgen_settings.bypass_status_check) { if ([textgen_types.GENERIC, textgen_types.OOBA].includes(textgen_settings.type) && textgen_settings.bypass_status_check) {
setOnlineStatus('Status check bypassed'); setOnlineStatus('Status check bypassed');
return resultCheckStatus(); return resultCheckStatus();
} }