wangrongding / wechat-bot

🤖一个基于 WeChaty 结合 OpenAi ChatGPT / Kimi / 讯飞等Ai服务实现的微信机器人 ,可以用来帮助你自动回复微信消息,或者管理微信群/好友,检测僵尸粉等...
MIT License
5.16k stars 730 forks source link

ChatGPT invalid session token #126

Open HuangFeiY opened 1 year ago

HuangFeiY commented 1 year ago

我得到报错

file:///root/code/wechat-bot/node_modules/chatgpt/build/index.js:526
      throw new ChatGPTError("ChatGPT invalid session token");
            ^

ChatGPTError: ChatGPT invalid session token
    at new ChatGPTAPI (file:///root/code/wechat-bot/node_modules/chatgpt/build/index.js:526:13)
    at file:///root/code/wechat-bot/src/chatgpt/index.js:15:13
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)

Node.js v18.14.1

为什么无法获取session啊