fix: 试图优化逻辑

This commit is contained in:
ikechan8370 2023-06-23 18:50:18 +08:00
parent 2e679b5d0f
commit c5212a6f1e
3 changed files with 17 additions and 3 deletions

View file

@ -1960,7 +1960,7 @@ export class chatgpt extends plugin {
logger.info(msg)
while (msg.functionCall) {
let { name, arguments: args } = msg.functionCall
let functionResult = await funcMap[name].exec(Object.assign({isAdmin, sender}, JSON.parse(args)))
let functionResult = await funcMap[name].exec(Object.assign({ isAdmin, sender }, JSON.parse(args)))
logger.mark(`function ${name} execution result: ${functionResult}`)
option.parentMessageId = msg.id
option.name = name