* [refac] remove unused param var.

This commit is contained in:
sunhao
2025-10-20 17:35:03 +08:00
parent 6013b57c42
commit 4f829ccf1a
+1 -1
View File
@@ -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)