fix: 优化一些tool

This commit is contained in:
ikechan8370 2023-06-26 13:17:14 +08:00
parent b7ac3bff30
commit 8257779f5c
9 changed files with 29 additions and 22 deletions

View file

@ -2065,6 +2065,9 @@ export class chatgpt extends plugin {
} catch (err) {
args.groupId = e.group_id + '' || e.sender.user_id + ''
}
if (!args.qq) {
args.qq = e.sender.user_id
}
let functionResult = await fullFuncMap[name].exec(Object.assign({ isAdmin, sender }, args), e)
logger.mark(`function ${name} execution result: ${functionResult}`)
option.parentMessageId = msg.id