V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iorilu
V2EX  ›  程序员

想自己搭一个 openai 得 api 代理, 有知道得吗

  •  
  •   iorilu · 230 天前 · 1795 次点击
    这是一个创建于 230 天前的主题,其中的信息可能已经有所发展或是发生改变。

    因为访问 openai api 很不方便

    代理也经常封

    很多人说可以自己搭一个

    有什么现成项目经验介绍的吗

    我有一个美国得便宜服务器

    9 条回复    2023-09-16 17:27:35 +08:00
    Mocus
        1
    Mocus  
       230 天前
    https://github.com/songquanpeng/one-api
    我看不少 V 友推荐这个
    iamsad3508
        2
    iamsad3508  
       230 天前 via Android
    你有 api 就直接用 vercel 搭 chatgpt next web 啊,都不用钱
    daisyfloor
        3
    daisyfloor  
       230 天前
    https://github.com/toyo2333/chatgptProxyAPI
    如果你有个域名,vps 甚至都不需要,直接用 cloudflare worker 。上面这个链接里提供的多种方案里,包含此项。
    iorilu
        4
    iorilu  
    OP
       230 天前
    感谢以上得建议

    我试试看怎么弄合理
    senooo
        5
    senooo  
       230 天前
    python 几行代码 直接写一个
    790002517zzy
        6
    790002517zzy  
       230 天前 via Android
    laogui
        7
    laogui  
       230 天前 via Android
    4 月份用 cloudflare 几分钟搭了一个,很稳定,https://github.com/x-dr/chatgptProxyAPI
    Saturn72
        8
    Saturn72  
       230 天前
    @laogui 请问我阿里注册的域名可以指向 worker 吗 直接 CNAME 好像会有些问题
    Error 1001 Ray ID: 807621085e5f4b50 • 2023-09-16 03:47:36 UTC
    DNS resolution error
    What happened?
    learningman
        9
    learningman  
       229 天前 via Android
    @Saturn72 这是你本地的 IP 被 CF 拉黑了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2202 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 05:53 · PVG 13:53 · LAX 22:53 · JFK 01:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.