@tomlbz/openai插件,bot只对一个账号进行响应,不理别人

2023-05-18 22:52:57 [W] session test
TypeError: Cannot read properties of undefined (reading ‘length’)
at Eye.basePrompt (C:\dev\koishi-app\node_modules@tomlbz\koishi-plugin-openai\lib\eye.js:123:30)
at C:\dev\koishi-app\node_modules@tomlbz\koishi-plugin-openai\lib\index.js:110:30
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async next (C:\dev\koishi-app\node_modules@koishijs\core\lib\index.cjs:886:16)
at async next (C:\dev\koishi-app\node_modules@koishijs\core\lib\index.cjs:886:16)
at async next (C:\dev\koishi-app\node_modules@koishijs\core\lib\index.cjs:886:16)
at async next (C:\dev\koishi-app\node_modules@koishijs\core\lib\index.cjs:886:16)
at async Processor._handleMessage (C:\dev\koishi-app\node_modules@koishijs\core\lib\index.cjs:897:22)

报错状况如上。
我的账号使用时,可以正常响应。但是别人不论是在群里@还是私聊,都会出现上述报错。不知道什么情况orz

1 个赞

看上去是 openai 插件写出 bug 了,你可以提 issue 催催

2 个赞