mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Prevent doubled legacy toast
This commit is contained in:
@@ -151,7 +151,7 @@ function formatTextGenURL(value) {
|
|||||||
try {
|
try {
|
||||||
const url = new URL(value);
|
const url = new URL(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.', { preventDuplicates: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!power_user.relaxed_api_urls && textgenerationwebui_settings.legacy_api && !isMancer()) {
|
if (!power_user.relaxed_api_urls && textgenerationwebui_settings.legacy_api && !isMancer()) {
|
||||||
|
Reference in New Issue
Block a user