mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
only api format for ooba, more visible checkboxes
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user