我已经成功安装并且在全局设置中配置代理(不是在插件中配置代理)
但我向bot发送消息时,出现了
问题1
2023-05-03 13:01:00 [D] gocqhttp 收到群 () 内 D() 的消息: bot 消息 (-1758727752)
2023-05-03 13:01:00 [I] @dingyi222666/chathub-copilothub-adapter/preset preset:
2023-05-03 13:01:00 [W] session bot 消息
Error: adapterLabel is required, you need to set an adapter to the default adapter
at LLMChatService.selectAdapter (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub\lib\services\chatService.js:83:23)
at Chat.selectConversationId (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub\lib\chat.js:257:49)
at Chat.resolveConversation (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub\lib\chat.js:62:35)
at async Chat.withChatLimit (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub\lib\chat.js:189:30)
at async Chat.chat (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub\lib\chat.js:101:33)
at async C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub\lib\index.js:64:28
at async next (C:\dev\koishi-app\node_modules@koishijs\core\lib\index.cjs:895:16)
at async next (C:\dev\koishi-app\node_modules@koishijs\core\lib\index.cjs:895:16)
at async next (C:\dev\koishi-app\node_modules@koishijs\core\lib\index.cjs:895:16)
at async next (C:\dev\koishi-app\node_modules@koishijs\core\lib\index.cjs:895:16)
问题2
2023-05-03 13:06:42 [D] gocqhttp 收到好友 () 的消息: 你好 (678060945)
2023-05-03 13:06:42 [I] @dingyi222666/chathub-copilothub-adapter/preset preset:
2023-05-03 13:06:42 [W] session 你好
TypeError: Cannot read properties of undefined (reading ‘get’)
at CacheTable.get (C:\dev\koishi-app\node_modules@koishijs\cache\lib\index.js:15:35)
at Cache.get (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub\lib\cache.js:14:27)
at Preset.getDefaultPreset (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub\lib\preset.js:47:41)
at async Chat.createInitialPrompts (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub\lib\chat.js:262:31)
at async Chat.createConversationConfig (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub\lib\chat.js:269:50)
at async Chat.chat (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub\lib\chat.js13)
at async C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub\lib\index.js:64:28
at async next (C:\dev\koishi-app\node_modules@koishijs\core\lib\index.cjs:895:16)
at async next (C:\dev\koishi-app\node_modules@koishijs\core\lib\index.cjs:895:16)
at async next (C:\dev\koishi-app\node_modules@koishijs\core\lib\index.cjs:895:16)