healthybrother / ChatGPTQQBot

利用Mirai机器人框架和revChatGPT
GNU Affero General Public License v3.0
0 stars 1 forks source link

retrofit2.adapter.rxjava2.HttpException: HTTP 401 Unauthorized #2

Open lmuiotctf opened 1 year ago

lmuiotctf commented 1 year ago

目前好像报错了 retrofit2.adapter.rxjava2.HttpException: HTTP 401 Unauthorized

healthybrother commented 1 year ago

可能是OpenAI鉴权的问题

gtpConfig.setAccess_token("access_token");

这一行里面,access_token要填写你自己的OpenAI的access token accesstoken可以通过这个网址获取: https://chat.openai.com/api/auth/session