mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Return force /api append for Legacy ooba with relaxed URL off
This commit is contained in:
@ -153,6 +153,10 @@ function formatTextGenURL(value) {
|
|||||||
if (url.pathname === '/api' && !textgenerationwebui_settings.legacy_api) {
|
if (url.pathname === '/api' && !textgenerationwebui_settings.legacy_api) {
|
||||||
toastr.info(`Enable compatibility mode or update ooba-webui to the latest version.`, 'Legacy API URL detected. Generation may fail.');
|
toastr.info(`Enable compatibility mode or update ooba-webui to the latest version.`, 'Legacy API URL detected. Generation may fail.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!power_user.relaxed_api_urls && textgenerationwebui_settings.legacy_api && !isMancer()) {
|
||||||
|
url.pathname = '/api';
|
||||||
|
}
|
||||||
return url.toString();
|
return url.toString();
|
||||||
} catch { } // Just using URL as a validation check
|
} catch { } // Just using URL as a validation check
|
||||||
return null;
|
return null;
|
||||||
|
Reference in New Issue
Block a user