在QQ频道里使用ChatGPT
使用方法
1.安装python3+
2.安装库
pip install botpy chatgpt-api
3.下载本仓库
git clone https://github.com/12362566/botpy-chatgpt.git
4.填写你的appid和token
https://bot.q.qq.com/wiki/develop/api/#%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E
5.填写chatgpttoken
chatgpttoken是在https://chat.openai.com/chat中cookie名为__Secure-next-auth.session-token获取的
具体方法在chatgpt-api的仓库中
https://github.com/mbroton/chatgpt-api#how-to-acquire-session-key 6.运行
python qqbot.py