perf: plugin support files (#2708)

This commit is contained in:
Archer
2024-09-14 15:11:44 +08:00
committed by GitHub
parent 092bb9ab17
commit d0e8f7203c
3 changed files with 30 additions and 19 deletions

View File

@@ -189,7 +189,8 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
// Get obj=Human history
const userQuestion: UserChatItemType = (() => {
if (isPlugin) {
return getPluginRunUserQuery(app.modules, variables);
// TODOget plugin files from variables
return getPluginRunUserQuery({ nodes: app.modules, variables });
}
const latestHumanChat = chatMessages.pop() as UserChatItemType | undefined;