GPT镜像使用

使用说明

通过访问自己搭建的GPT国内镜像网站,从而无需代理直接使用GPT。

快速上手

直接登录

直接在网址中输入ChatGPT的账号和密码,有一定概率可以直接登录。但是有可能出这样的错误:{ "detail":"rate limited""} ,当出现这样的错误则需要使用tocken登录。

tocken登录

  1. 通过某些方法登录ChatGPT官网
  2. 在步骤1登录的浏览器访问 https://chat.openai.com/api/auth/session 如果返回{}请重试步骤1.
  3. 成功访问2的连接后应该会返回一堆字符如下:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    {
    "user": {
    "id": "user-l7IJOIHNODkR1StSMPEc5t0gPJ",
    "name": "zasdgagg@gmail.com",
    "email": "zasdfawescng@gmail.com",
    "image": "https://s.gravatar.com/avatar/e55JOJWENNGdc9bf28b65697b4?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fzh.png",
    "picture": "https://s.gravatar.com/avatar/e5egdsgsdfg555edc9bf28b65697b4?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fzh.png",
    "idp": "auth0",
    "iat": 168543552757,
    "mfa": false,
    "groups": [],
    "intercom_hash": "c8b0de4653646433ab87dee53fe3d972e509009c107749b9a50387433ae7d"
    },
    "expires": "2023-06-18T14:40:55.139Z",
    "accessToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik1UaEVOVUpHTkVNMVFURTRNMEZCTWpkQ05UZzVNRFUxUlRVd1FVSkRNRU13UmtGRVFrRXpSZyJ9.eyJodHRwczovL2FwaS5vcGVuYWkuY29tL3Byb2ZpbGUiOnsiZW1haWwiOiJ6aGVuZG9uZ2dlbmdAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWV9LCJodHRwczovL2FwaS5vcGVuYWkuY29tLIUGOGIUGIEUWGIUGBIUDGHUIBEGHBRWYHHFDHFDBFDBS315649684653156168413561SIsImh0dHBzOi8vb3BlbmFpLm9wZW5haS5hdXRoMGFwcC5jb20vdXNlcmluZm8iXSwiaWF0IjoxNjg0MjUyNzU3LCJleHAiOjE2ODU0NjIzNTcsImF6cCI6IlRkSkljYmUxNldvVEh0Tjk1bnl5d2g1RTR5T282SXRHIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBlbWFpbCBtb2RlbC5yZWFkIG1vZGVsLnJlcXVlc3Qgb3JnYW5pemF0aW9uLnJlYWQgb3JnYW5pemF0aW9uLndyaXRlIn0.vPSzT_PGvzuQB1AgxdRbCbDtKpjMgJVwyTm3CkbZW8xTO5EJD3wwEifyeuO_fZRyeBL4i0cHCLkIICiQRHRpcRUNCQc5P3TIPwEO7NV8V27DtlxCkBHHuDCSp-78xcKEowPuFVyFdY-KPl-v5KVpcP1EFmqwGDxzMQ8CiA0KZQcTH3Xv7Uv_Q3otgrcQSxfu1Esf5dwTqgLBzz1vWpiNo9lSzug8ufv8NVTmj2eKNkt0cFNnqmkiV1kCPt_WB8zyTmkV9oTfSRcLubHFtgcaZkZ2C2EpsgyHH1Z4n3GMNzgjygH2wBPj1GshKANtkUtb538Q9vE2dN6vtTChCa5Z3Q",
    "authProvider": "auth0"
    }
  4. 复制tocken,就是上面代码中“accessTocken”:后对应的“”内的内容。本次示例中的:
    1
    eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik1UaEVOVUpHTkVNMVFURTRNMEZCTWpkQ05UZzVNRFUxUlRVd1FVSkRNRU13UmtGRVFrRXpSZyJ9.eyJodHRwczovL2FwaS5vcGVuYWkuY29tL3Byb2ZpbGUiOnsiZW1haWwiOiJ6aGVuZG9uZ2dlbmdAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWV9LCJodHRwczovL2FwaS5vcGVuYWkuY29tLIUGOGIUGIEUWGIUGBIUDGHUIBEGHBRWYHHFDHFDBFDBS315649684653156168413561SIsImh0dHBzOi8vb3BlbmFpLm9wZW5haS5hdXRoMGFwcC5jb20vdXNlcmluZm8iXSwiaWF0IjoxNjg0MjUyNzU3LCJleHAiOjE2ODU0NjIzNTcsImF6cCI6IlRkSkljYmUxNldvVEh0Tjk1bnl5d2g1RTR5T282SXRHIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBlbWFpbCBtb2RlbC5yZWFkIG1vZGVsLnJlcXVlc3Qgb3JnYW5pemF0aW9uLnJlYWQgb3JnYW5pemF0aW9uLndyaXRlIn0.vPSzT_PGvzuQB1AgxdRbCbDtKpjMgJVwyTm3CkbZW8xTO5EJD3wwEifyeuO_fZRyeBL4i0cHCLkIICiQRHRpcRUNCQc5P3TIPwEO7NV8V27DtlxCkBHHuDCSp-78xcKEowPuFVyFdY-KPl-v5KVpcP1EFmqwGDxzMQ8CiA0KZQcTH3Xv7Uv_Q3otgrcQSxfu1Esf5dwTqgLBzz1vWpiNo9lSzug8ufv8NVTmj2eKNkt0cFNnqmkiV1kCPt_WB8zyTmkV9oTfSRcLubHFtgcaZkZ2C2EpsgyHH1Z4n3GMNzgjygH2wBPj1GshKANtkUtb538Q9vE2dN6vtTChCa5Z3Q
  5. GPT镜像网页中点击下方的Continue with Access Token 输入刚才获取的tocken,即可正常访问。

原理说明

这里相当于在个人服务器部署了一个ChatGPT的web页面,通过服务器去访问ChatGPT的web后端,所以这样的方法不是使用APIKey计费的。

参考:

项目地址:https://github.com/pengzhile/pandora

部署参考:https://www.ywsj.cf/archives/docker-da-jian-yi-ge-zui-jie-jin-chatgpt-guan-fang-ban-de-kai-yuan-xiang-mu---wu-xu-api-key-ji-ke-shi-yong

  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.

扫一扫,分享到微信

微信分享二维码
  • Copyrights © 2022-2023 Junto
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信