Byaidu / QChatBot-GPT

基于 OpenAI GPT-3 和 Mirai 的 QQ Bot 聊天机器人,提供公用测试 Bot,支持自定义人格以及各种参数,长文自动转图片发送,可持久化配置,多个群聊之间上下文隔离,异步响应,可扩展功能
GNU General Public License v3.0
97 stars 21 forks source link

配置完成后启动时报错 #10

Closed moemeow233 closed 1 year ago

moemeow233 commented 1 year ago

一切都安装配置完成之后,执行python3 chatbot.py后一直提示“2022-12-12 03:51:17.097 | INFO | graia.ariadne.connection.ws::89 - Websocket connection closed 2022-12-12 03:51:17.098 | WARNING | graia.ariadne.connection.ws::75 - Websocket reconnecting in 5s... 2022-12-12 03:51:22.099 | WARNING | graia.ariadne.connection.ws:_:77 - Websocket reconnecting...”

https://pastebin.com/wm7z7we7 mirai-api-http的配置如下: https://pastebin.com/yBFvHwzG

Byaidu commented 1 year ago

请参考 https://graiax.cn/before/install_mirai.html 来配置 setting.yaml,否则预设的连接密钥对不上

adapters:
  - http
  - ws
debug: false
enableVerify: true
verifyKey: GraiaxVerifyKey
singleMode: false
cacheSize: 4096
adapterSettings:
  http:
    host: localhost
    port: 8080
    cors: [*]
  ws:
    host: localhost
    port: 8080
    reservedSyncId: -1
moemeow233 commented 1 year ago

请参考 https://graiax.cn/before/install_mirai.html 来配置 setting.yaml,否则预设的连接密钥对不上

adapters:
  - http
  - ws
debug: false
enableVerify: true
verifyKey: GraiaxVerifyKey
singleMode: false
cacheSize: 4096
adapterSettings:
  http:
    host: localhost
    port: 8080
    cors: [*]
  ws:
    host: localhost
    port: 8080
    reservedSyncId: -1

已解决,感谢