From cbc0b41773e1a5da984fe53c77c781fbe8345a08 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 8 Nov 2023 10:28:02 +0200 Subject: [PATCH] Prevent doubled legacy toast --- public/scripts/textgen-settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/textgen-settings.js b/public/scripts/textgen-settings.js index 55e10c45f..b6c2a0021 100644 --- a/public/scripts/textgen-settings.js +++ b/public/scripts/textgen-settings.js @@ -151,7 +151,7 @@ function formatTextGenURL(value) { try { const url = new URL(value); 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()) {