Docker搭建ChatGPT
镜像下载
docker pull pengzhile/pandora
启动容器
docker run -e PANDORA_CLOUD=cloud -e PANDORA_SERVER=0.0.0.0:8899 -p 8899:8899 -d pengzhile/pandora
查看Token
https://chat.openai.com/api/auth/session
访问该链接,登录自己的openAI 账号,查看对应的token。
将其中的token复制出来
{
"user": {
"id": "user-zqNU8PiLu2QX2d6l5AIlJ7pL",
"name": "gong chen",
"email": "cg199******@gmail.com",
"image": "https://lh3.googleusercontent.com/a/AGNmyxaK***********4HWtfo5T_WgG0g-eJivJ=s96-c",
"picture": "https://lh3.googleusercontent.com/a/AGNmyxaK**********aUaxb4HWtfo5T_WgG0g-eJivJ=s96-c",
"idp": "google-oauth2",
"iat": 1684733770,
"mfa": false,
"groups": [],
"intercom_hash": "9c89b55884314710a7e82ef5f1ab0c6d66c60b27d96f2018e5961e77c411c96a"
},
"expires": "2023-06-21T05:36:30.730Z",
"accessToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik1UaEVOVUpHTkVNMVFURTRNMEZCTWpkQ05UZzVNRFUxUlRVd1FVSkRNRU13UmtGRVFrRXpSZyJ9.eyJodHRwczovL2FwaS5vcGVuYW*********************************************************************7oZ7_03ilajhmbKvTo-pg",
"authProvider": "auth0"
}
访问
连接 host:8899,使用token登录,将其中的token复制到浏览器中填写即可。