ikechan8370/chatgpt-plugin

智能模式下群聊回复报错 出现错误: e.bot.getGroupMemberInfo is not a function

iedhgherljhfloj opened this issue · 3 comments

报错日志
[TRSSYz][22:01:15.829][INFO] chatgpt prompt: 早
[TRSSYz][22:01:17.666][ERRO] TypeError: e.bot.getGroupMemberInfo is not a functi
on
at collectTools (file:///C:/Users/Administrator/Desktop/Yunzai/plugins/chatg
pt-plugin/model/core.js:1067:31)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5
)
at async chatgpt.sendMessage (file:///C:/Users/Administrator/Desktop/Yunzai/
plugins/chatgpt-plugin/model/core.js:908:13)
at async chatgpt.abstractChat (file:///C:/Users/Administrator/Desktop/Yunzai
/plugins/chatgpt-plugin/apps/chat.js:794:25)
at async chatgpt (file:///C:/Users/Administrator/Desktop/Yunzai/plugins/chat
gpt-plugin/apps/chat.js:559:5)
at async PluginsLoader.deal (file:///C:/Users/Administrator/Desktop/Yunzai/l
ib/plugins/loader.js:256:41)

TRSS云崽3.1.3 | 协议LLOneBot | 私聊正常,群聊报错

请问这个是怎么解决的

请问这个是怎么解决的

没解决,换模型了

参考 armoe-project/armoe-plugin@48d85ef

将chatgpt-plugin\utils\tools\QueryUserinfoTool.js,chatgpt-plugin\model\core.js,chatgpt-plugin\apps\update.js,用vs code之类的把以上三个文件里的getGroupMemberInfo修改为 pickMember 即可,经测试修改后即可修复trss崽的智能模式,不影响喵崽的智能模式,感觉你发的这个issues可以重新开一下,让作者修复一下