-1 下载并安装Docker 【官网下载】
-
2 使用开源项目:潘多拉 (Pandora) 【github】
-
3 一键安装命令:
docker pull pengzhile/pandora
- 启动端口: 8899
docker run -e PANDORA_CLOUD=cloud -e PANDORA_SERVER=0.0.0.0:8899 -p 8899:8899 -d pengzhile/pandora
-
4 获取自己的 Access TOKEN:http://chat.openai.com/api/auth/session
-
5 访问本地链接:http://127.0.0.1:8899 即可搞定!
docker run -e PANDORA_CLOUD=cloud -e PANDORA_SERVER=0.0.0.0:10087 -p 10087:10087 -d pengzhile/pandora
6 获取token
- 复制下面
accessToken
的值即可
{"user":{"id":"user-","name":" li","email":"@.com","image":"https://s.gravatar.com/avatar/efe0cc435468ee349d908918e1220c36?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fjl.png","picture":"https://s.gravatar.com/avatar/efe0cc435468ee349d908918e1220c36?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fjl.png","idp":"windowslive","iat":1686351539,"mfa":false,"groups":[],"intercom_hash":"6b227073e2014d908a7421d885f7946e4c39222fc5c25227c28b474bb21bd08d"},"expires":"2023-07-11T14:26:10.335Z","accessToken":"eyJhbGciOiJSUzI1A","authProvider":"auth0"}
标签:本地,8899,pengzhile,0.0,auth0,PANDORA,ChatGPT,com,搭建
From: https://www.cnblogs.com/pandamohist/p/17563996.html