* [misc] refactor to prevent js error.
This commit is contained in:
+1
-1
@@ -326,7 +326,7 @@ function registerZentaoAIPlugin(lang)
|
||||
data : {memory: {collections: ['$global']}},
|
||||
});
|
||||
|
||||
plugin.defineCallback('onCreateChat', async function(chat, info)
|
||||
plugin.defineCallback && plugin.defineCallback('onCreateChat', async function(chat, info)
|
||||
{
|
||||
if(info.isLocal || !info.userPrompt) return;
|
||||
const zentaoMemories = {};
|
||||
|
||||
Reference in New Issue
Block a user