Soulter / AstrBot

QQ、Telegram、微信 等多平台兼容的支持 LLM 聊天的机器人平台。支持自定义插件扩展。
GNU Affero General Public License v3.0
581 stars 58 forks source link

启动闪退 #112

Closed YSDiting closed 1 year ago

YSDiting commented 1 year ago

这是HelloWorld测试插件, 发送 helloworld 即可触发此插件。 Traceback (most recent call last): File "C:\Users\DiTing\Desktop\雪原bot\QQChannelChatGPT\main.py", line 122, in main() File "C:\Users\DiTing\Desktop\雪原bot\QQChannelChatGPT\main.py", line 30, in main qqBot.initBot(cfg, provider) File "C:\Users\DiTing\Desktop\雪原bot\QQChannelChatGPT\cores\qqbot\core.py", line 296, in initBot ok, err = _command.plugin_reload(cached_plugins) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\DiTing\Desktop\雪原bot\QQChannelChatGPT\model\command\command.py", line 117, in plugin_reload raise e File "C:\Users\DiTing\Desktop\雪原bot\QQChannelChatGPT\model\command\command.py", line 99, in plugin_reload obj = getattr(module, cls[0])() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\DiTing\Desktop\雪原bot\QQChannelChatGPT\addons\plugins\HuggingChatForQQBot\HuggingChatForQQBot.py", line 14, in init self.chatbot = hugchat.ChatBot() ^^^^^^^^^^^^^^^^^ File "C:\Users\DiTing\AppData\Local\Programs\Python\Python311\Lib\site-packages\hugchat\hugchat.py", line 13, in init self.current_conversation = self.new_conversation() ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\DiTing\AppData\Local\Programs\Python\Python311\Lib\site-packages\hugchat\hugchat.py", line 73, in new_conversation self.accept_ethics_modal() File "C:\Users\DiTing\AppData\Local\Programs\Python\Python311\Lib\site-packages\hugchat\hugchat.py", line 64, in accept_ethics_modal raise Exception(f"Failed to accept ethics modal with status code {response.status_code}. {response.content.decode()}") Exception: Failed to accept ethics modal with status code 403. Non-JSON form requests need to have a referer

Soulter commented 1 year ago

HuggingChat插件没更新导致的,可以先在addons/plugins/目录下把它(整个文件夹)删掉,然后如果想用的话再重装。