V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
cairnechen
V2EX  ›  问与答

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

  •  
  •   cairnechen · 82 天前 · 682 次点击
    这是一个创建于 82 天前的主题,其中的信息可能已经有所发展或是发生改变。
    之前的瓦工 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 条回复    2024-02-09 17:24:52 +08:00
    whoops
        1
    whoops  
       81 天前 via iPhone
    瓦工自带的 dns 解锁 chatgpt 啊,他同时也是个反向代理,之前不解锁手机客户端,我把 ios.chat.openai.com 解析成他就 OK 了。
    cairnechen
        2
    cairnechen  
    OP
       78 天前
    @whoops 好吧我孤陋寡闻了,在哪里设置瓦工的 DNS ?
    whoops
        3
    whoops  
       78 天前 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
    你试一下
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2542 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 15:58 · PVG 23:58 · LAX 08:58 · JFK 11:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.