V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
cairnechen
V2EX  ›  问与答

通过 relay 模式套 Warp 解锁 GPT 的路堵死了吗?

  •  
  •   cairnechen · Feb 5, 2024 · 1564 views
    This topic created in 822 days ago, the information mentioned may be changed or developed.
    之前的瓦工 VPS 的 IP 没法解锁,套了层 Warp 解决了,今天登录的时候,一直有几个接口报 401 错误

    https://chat.openai.com/backend-api/ua/models
    https://chat.openai.com/backend-api/ua/accounts/check/v4-2023-04-27

    提示信息:Failed to load resource: the server responded with a status of 401 ()

    {
    "detail": "Unauthorized"
    }


    我的转发链是这样的:客户端→瓦工 VPS→VPS 本地的 Warp 服务(127.0.0.1:40000 )→ChatGPT ,实现方式是 Clash 的 relay 模式

    神奇的是 iOS 客户端可以正常使用没有任何问题,有大佬知道是什么导致的错误吗?
    3 replies    2024-02-09 17:24:52 +08:00
    whoops
        1
    whoops  
       Feb 6, 2024 via iPhone
    瓦工自带的 dns 解锁 chatgpt 啊,他同时也是个反向代理,之前不解锁手机客户端,我把 ios.chat.openai.com 解析成他就 OK 了。
    cairnechen
        2
    cairnechen  
    OP
       Feb 9, 2024
    @whoops 好吧我孤陋寡闻了,在哪里设置瓦工的 DNS ?
    whoops
        3
    whoops  
       Feb 9, 2024 via iPhone
    /etc/resolv.conf 里设置 dns ,默认是
    nameserver 172.31.255.2
    如果是默认的不要改。
    要解锁手机端,编辑/etc/hosts 加入以下内容
    172.31.255.2 ios.chat.openai.com
    172.31.255.2 android.chat.openai.com
    你试一下
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4154 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 10:18 · PVG 18:18 · LAX 03:18 · JFK 06:18
    ♥ Do have faith in what you're doing.