这是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
这是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