wangrongding / wechat-bot

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

ChatAPI error #52

Closed shouxieai closed 1 year ago

shouxieai commented 1 year ago

ChatGPTError: ChatGPTAPI error 403 at fetchSSE (file:///D:/download/wechat-bot-main/wechat-bot-main/node_modules/chatgpt/build/index.js:80:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { statusCode: 403, statusText: 'Forbidden', response: Response {

[Symbol(state)]: {
  aborted: false,
  rangeRequested: false,
  timingAllowPassed: true,
  requestIncludesCredentials: true,
  type: 'default',
  status: 403,
  timingInfo: [Object],
  cacheState: '',
  statusText: 'Forbidden',
  headersList: [HeadersList],
  urlList: [Array],
  body: [Object]
},
[Symbol(headers)]: HeadersList {
  [Symbol(headers map)]: [Map],
  [Symbol(headers map sorted)]: null
}

} }

wangrongding commented 1 year ago

更新下代码,最新的不会