ikechan8370 / chatgpt-plugin

云崽系机器人的智能聊天插件
https://www.yunzai.chat/
GNU General Public License v3.0
1.01k stars 106 forks source link

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

Closed ghost closed 6 months ago

ghost commented 6 months ago

报错日志 [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 | 私聊正常,群聊报错

eggacheb commented 4 months ago

请问这个是怎么解决的

ghost commented 4 months ago

请问这个是怎么解决的

没解决,换模型了

eggacheb commented 4 months ago

参考 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可以重新开一下,让作者修复一下