V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
thinkm
V2EX  ›  程序员

Azure OpenAI 的 api 兼容 openai 官方的 api 吗?

  •  
  •   thinkm · Jul 22, 2023 · 1993 views
    This topic created in 1017 days ago, the information mentioned may be changed or developed.

    实在绑定不上 openai 官方的 api ,想申请 Azure 的 API ,有老哥知道 Azure 的 API 兼容 openai 官方的吗?

    6 replies    2023-07-25 11:25:44 +08:00
    Alexf4
        1
    Alexf4  
       Jul 22, 2023
    是的。甚至 API 速度更快
    thinkm
        2
    thinkm  
    OP
       Jul 22, 2023
    @Alexf4 感谢,是不是直接替换 api base 的地址就行,其他不用改,主要是不想改程序太麻烦了
    woofer
        3
    woofer  
       Jul 22, 2023   ❤️ 1
    稍微有些不同,问题不大,可以用 cf-azure-openai-proxy 代理下。如果申请不到可以买我的 azure api ,仅比官网价格上浮 5%. https://oai.chato.world/
    Volekingsg
        4
    Volekingsg  
       Jul 23, 2023   ❤️ 1
    @thinkm #2 不是,需要将请求转换成 Azure 格式,如 https://github.com/diemus/azure-openai-proxy ,另外默认安全审查也更严点。

    另外绑卡 Nobepay 或者 Onekey Card 都行呀,已经用 OneKey Card 成功付了好多个月的账单了 https://card.onekey.so/?i=8Y8O3W
    Alexf4
        5
    Alexf4  
       Jul 23, 2023   ❤️ 1
    @thinkm 可能我的情况是没那么复杂。给你做个参考:
    API: 就用了 completion ,这个接口方式跟官方的差不多,且调用的入口都是一样,所以我这边没多大改动
    支付方式: 直接绑定的我自己的普通的信用卡,4 月份开始这套流程的。
    mmdsun
        6
    mmdsun  
       Jul 25, 2023   ❤️ 1
    有一点点不一样。

    套个 cf workers 转一下就好,参考:
    https://github.com/Yidadaa/ChatGPT-Next-Web/issues/371
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2667 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 56ms · UTC 12:01 · PVG 20:01 · LAX 05:01 · JFK 08:01
    ♥ Do have faith in what you're doing.