only api format for ooba, more visible checkboxes

This commit is contained in:
RossAscends
2023-11-08 14:08:51 +09:00
parent 865256f5c0
commit 00c029a65a
2 changed files with 7 additions and 6 deletions

View File

@ -148,9 +148,9 @@ async function selectPreset(name) {
function formatTextGenURL(value) {
try {
const url = new URL(value);
if (url.pathname === '/api') {
if (url.pathname === '/api' && textgenerationwebui_settings.type === textgen_types.OOBA) {
url.pathname = '/';
toastr.info('Legacy API URL detected, please make sure you updated ooba-webui to the latest version.');
toastr.info(`Legacy API URL detected, please make sure you updated ooba-webui to the latest version.`);
}
return url.toString();
} catch { } // Just using URL as a validation check