From 4f829ccf1a4285c60d331de092f690a1ad1a73c8 Mon Sep 17 00:00:00 2001 From: sunhao Date: Mon, 20 Oct 2025 17:35:03 +0800 Subject: [PATCH] * [refac] remove unused param var. --- www/js/zui3/ai.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/zui3/ai.js b/www/js/zui3/ai.js index 8e514d5376..8e251bf1ad 100644 --- a/www/js/zui3/ai.js +++ b/www/js/zui3/ai.js @@ -266,7 +266,7 @@ function registerZentaoAIPlugin(lang) { memory: {collections: ['$global'], content_filter: {attrs: {objectType}}}, }, - generate: (userPrompt, { plugin }) => { + generate: (userPrompt) => { const objectName = lang[objectType] || objectType; const matches = [...userPrompt.matchAll(new RegExp(`@(${objectName}${objectType !== objectName ? `|${objectType}` : ''})\\s?#?(\\d+)`, 'gi'))]; if(matches.length)