mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: 优化一些tool
This commit is contained in:
parent
b7ac3bff30
commit
8257779f5c
9 changed files with 29 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue