• 请不要在回答技术问题时复制粘贴 AI 生成的内容
thinkm
V2EX  ›  程序员

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

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

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

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