使用chatluna时,按照教程配置好后测试显示测试过程中发生错误:Cannot read properties of undefined (reading 'includes')


有大佬知道为什么嘛?
详细的日志截图在评论区

1 个赞

日志:
2026-01-29 16:00:54 [E] chatluna chat-chain: request_model error TypeError: Cannot read properties of undefined (reading ‘botNames’)
2026-01-29 16:00:54 [E] chatluna TypeError: Cannot read properties of undefined (reading ‘botNames’)
at ChatInterfaceWrapper._createChatInterface (/koishi/node_modules/koishi-plugin-chatluna/lib/services/chat.cjs:1975:23)
at ChatInterfaceWrapper.chat (/koishi/node_modules/koishi-plugin-chatluna/lib/services/chat.cjs:1801:87)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 0)
at async ChainMiddleware.execute (/koishi/node_modules/koishi-plugin-chatluna/lib/index.cjs:4245:27)
at async ChatChain._executeMiddleware (/koishi/node_modules/koishi-plugin-chatluna/lib/services/chat.cjs:384:22)
at async /koishi/node_modules/koishi-plugin-chatluna/lib/services/chat.cjs:339:24
at async Promise.all (index 0)
at async ChatChain._executeLevel (/koishi/node_modules/koishi-plugin-chatluna/lib/services/chat.cjs:370:5)
at async ChatChain._runMiddleware (/koishi/node_modules/koishi-plugin-chatluna/lib/services/chat.cjs:289:23)
bot 配置

1 个赞

1 个赞

1 个赞
  1. 更新 chatluna 到最新版


这里需要设置好昵称。

1 个赞