ChatLunaLab / chatluna

多平台模型接入,可扩展,多种输出格式,提供大语言模型聊天服务的插件 | A bot plugin for LLM chat services with multi-model integration, extensibility, and various output formats
https://chatluna.chat
GNU Affero General Public License v3.0
177 stars 25 forks source link

[Bug] koishi 4.12.6 无法安装本插件 #31

Closed Rinlity closed 1 year ago

Rinlity commented 1 year ago

docker,appimage,zip运行的koishi latest版本均不能正常安装chathub Screenshot_20230502_005147_Chrome Dev 请告诉我解决方法,感谢//

dingyi222666 commented 1 year ago

有log错误信息吗?

Rinlity commented 1 year ago

Screenshot_20230501_235904_Chrome Dev

Rinlity commented 1 year ago

先装chathub0.4.1也是报一样的错,failed parse

Rinlity commented 1 year ago

2023-05-02 07:56:40 [W] market failed to parse @dingyi222666/koishi-plugin-chathub 2023-05-02 07:56:40 [W] market Error: Cannot find module '@initencounter/vits' Require stack:

Rinlity commented 1 year ago

能够安装的版本是≤0.3.2,0.4.0和0.4.1都装不上

dingyi222666 commented 1 year ago

0.5.0 版本已修复。

Rinlity commented 1 year ago

dingyi222666/chathub/chat TypeError: undici_1.default.fetch is not a function at Object.fetch (/home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub/lib/utils/request.js:81:37) at Api.getCredentials (/home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub-poe-adapter/lib/api.js:160:70) at Api.init (/home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub-poe-adapter/lib/api.js:169:24) at Api.request (/home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub-poe-adapter/lib/api.js:99:20) at PoeClient.ask (/home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub-poe-adapter/lib/client.js:31:39) at PoeAdapter.ask (/home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub-poe-adapter/lib/index.js:36:48) at DefaultConversation.ask (/home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub/lib/services/chatService.js:236:53) at async Chat.measureTime (/home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub/lib/chat.js:26:24) at async Chat.chatWithModel (/home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub/lib/chat.js:143:26) at async /home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub/lib/chat.js:104:24 2023-05-02 11:35:10 [D] @dingyi222666/chathub/chat [chat-limit/error] 凛(3184015596): 你好

Rinlity commented 1 year ago

上述是0.5.0的报错,adapter和chathub都是0.5.0

dingyi222666 commented 1 year ago

dingyi222666/chathub/chat TypeError: undici_1.default.fetch is not a function at Object.fetch (/home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub/lib/utils/request.js:81:37) at Api.getCredentials (/home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub-poe-adapter/lib/api.js:160:70) at Api.init (/home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub-poe-adapter/lib/api.js:169:24) at Api.request (/home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub-poe-adapter/lib/api.js:99:20) at PoeClient.ask (/home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub-poe-adapter/lib/client.js:31:39) at PoeAdapter.ask (/home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub-poe-adapter/lib/index.js:36:48) at DefaultConversation.ask (/home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub/lib/services/chatService.js:236:53) at async Chat.measureTime (/home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub/lib/chat.js:26:24) at async Chat.chatWithModel (/home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub/lib/chat.js:143:26) at async /home/aka/koishi/koishi-app/node_modules/@dingyi222666/koishi-plugin-chathub/lib/chat.js:104:24 2023-05-02 11:35:10 [D] @dingyi222666/chathub/chat [chat-limit/error] 凛(3184015596): 你好

请检查你的node版本,要求大于等于16.8