chatluna icon indicating copy to clipboard operation
chatluna copied to clipboard

[Bug] chatluna 未注册导致 chatluna-agent 报错

Open Sor85 opened this issue 6 months ago • 0 comments

Bug Description

在使用 koishi-plugin-chatluna-agent 生成内容时,出现警告/错误: property chatluna is not registered, declare it as inject to suppress this warning

Logs

2026-05-25 23:00:27 [W] app Error: property chatluna is not registered, declare it as inject to suppress this warning
                            at createChatPrompt (/koishi/node_modules/koishi-plugin-chatluna/lib/utils/chatluna.cjs:46:25)
                            at Proxy.createAgent (/koishi/node_modules/koishi-plugin-chatluna/lib/services/chat.cjs:4513:75)
                            at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
                            at async createInnerAgent (/koishi/node_modules/koishi-plugin-chatluna-agent/lib/index.cjs:9711:12)
                            at async Object.generate (/koishi/node_modules/koishi-plugin-chatluna-agent/lib/index.cjs:9632:20)
                            at async exec (/koishi/node_modules/koishi-plugin-chatluna/lib/llm-core/agent/index.cjs:2061:22)
2026-05-25 23:00:27 [W] app Error: property chatluna is not registered, declare it as inject to suppress this warning
                            at createChatPrompt (/koishi/node_modules/koishi-plugin-chatluna/lib/utils/chatluna.cjs:47:30)
                            at Proxy.createAgent (/koishi/node_modules/koishi-plugin-chatluna/lib/services/chat.cjs:4513:75)
                            at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
                            at async createInnerAgent (/koishi/node_modules/koishi-plugin-chatluna-agent/lib/index.cjs:9711:12)
                            at async Object.generate (/koishi/node_modules/koishi-plugin-chatluna-agent/lib/index.cjs:9632:20)
                            at async exec (/koishi/node_modules/koishi-plugin-chatluna/lib/llm-core/agent/index.cjs:2061:22)

Sor85 avatar May 25 '26 15:05 Sor85