Prevent doubled legacy toast

This commit is contained in:
Cohee 2023-11-08 10:28:02 +02:00
parent b6d29d2980
commit cbc0b41773
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {