当前位置:   article > 正文

通过pandoraNext使用GPT_pandora gpt

pandora gpt

项目github地址:

GitHub - pandora-next/deploy: Pandora Cloud + Pandora Server + Shared Chat + BackendAPI Proxy + Chat2API + Signup Free = PandoraNext. New GPTs(Gizmo) UI, All in one!

目录结构:

  1. [root@gpt PandoraNext]# pwd
  2. /opt/PandoraNext
  3. [root@gpt PandoraNext]# tree -L 2
  4. .
  5. ├── best.php
  6. ├── data
  7. │   ├── config.json
  8. │   ├── license.jwt
  9. │   └── tokens.json
  10. ├── docker-compose.yml
  11. ├── README.md
  12. └── sessions
  13. └── session_D3XQJIB2537MDSEBC2SPO3J6ZEEY4CGP674CFTYLSEYKSXWH5NMQ
  14. 2 directories, 7 files

启动方式:docker

获取安装文件

  1. 1、cd /opt
  2. 2、从github页面下载zip包deploy-master.zip
  3. 3、解压缩deploy-master.zip
  4. 4、mv deploy-master PandoraNext

获取license_id

Sign in to GitHub · GitHub  使用注册180天以上的github账号登录,获取license_id

配置文件设置

1.config.json

  1. {
  2. "bind": "0.0.0.0:8181",
  3. "tls": {
  4. "enabled": false,
  5. "cert_file": "",
  6. "key_file": ""
  7. },
  8. "timeout": 600,
  9. "proxy_url": "",
  10. "license_id": "24eRERZaWpuPJtHnZ10kdsfsfsdfsdfkFTs",
  11. "public_share": false,
  12. "site_password": "",
  13. "setup_password": "L4o4ddfdsf986xx784",
  14. "server_tokens": true,
  15. "proxy_api_prefix": "",
  16. "isolated_conv_title": "*",
  17. "disable_signup": false,
  18. "auto_conv_arkose": false,
  19. "proxy_file_service": false,
  20. "captcha": {
  21. "provider": "",
  22. "site_key": "",
  23. "site_secret": "",
  24. "site_login": false,
  25. "setup_login": false,
  26. "oai_username": false,
  27. "oai_password": false,
  28. "oai_signup": false
  29. },
  30. "whitelist": null
  31. }

2.token设置

  1. # cat tokens.json
  2. {
  3. "test-1": {
  4. "token": "access token / session token / refresh token",
  5. "shared": true,
  6. "show_user_info": false
  7. },
  8. "test-2": {
  9. "token": "access token / session token / refresh token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t7ApOzC9LukPHOHbYI8H7xbEjfL_Q6yoowo5j_lk39ec0m_degVc4HBobLEG9iCBIARzh4CRkYWfbG8PqsHJERVXoK_uyBztuV6yqbBPYH-FiRUHFp_v3xldaoE5e8p1479mGjcjMgRUgUrmI52EJVbWq56VIK-Mb5Ma9xYI0M926dZzQ",
  16. "password": "123456"
  17. }
  18. }

docker启动命令:

 docker run -d --restart always --name PandoraNext --net=bridge     -p 8181:8181     -v /opt/PandoraNext/data/:/data     -v /opt/PandoraNext/sessions:/root/.cache/PandoraNext     pengzhile/pandora-next

获取登录的token

1、访问 ChatGPT Auth

2、获取谷歌浏览器插件

3.下载浏览器安装插件

4、谷歌浏览器安装插件

 

 

5、获取token

再次回到ChatGPT Auth  页面刷新即可得到token

或者点击“获取登录链接”也可以--按照提示登录openai的账号和密码

访问页面展示

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/232140
推荐阅读
相关标签
  

闽ICP备14008679号