-
-
Notifications
You must be signed in to change notification settings - Fork 13.5k
✨ feat: support Azure OpenAI #177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
## [Version 0.73.0](v0.72.4...v0.73.0) <sup>Released on **2023-09-10**</sup> #### ✨ Features - **misc**: Support Azure OpenAI. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Support Azure OpenAI, closes [#177](#177) ([f0c9532](f0c9532)) </details> <div align="right"> [](#readme-top) </div>
🎉 This PR is included in version 0.73.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
在运行项目时怎么配置环境变量来使用azure?我希望我运行时直接配置好azure api-key & endpoint & api-version,用户直接用就行了。需要配哪些环境变量? |
azure api-key 和 endpoint 用现有的就好, api-version 目前还没有专门的环境变量,另外可能要再加一个开启 Azure API 配置变量。我晚上补一下吧,另外把文档也写一下。 |
明白了,apiversion和model name也直接放在endpoint url里面就行了。直接用现在的两个环境变量就可以了。对吧? |
不对哈,api version会加一个环境变量,我现在默认给了一个值来着。模型名称的话是需要部署名称和模型名称一样才行。这个我晚点写完文档你就知道了 |
等你的文档来测试。另外azure openAI很不错的,国内服务器就可以直接调用,也可以用国内visa开通支付,不会被封号。用起来比openai的爽很多。可以试试。提交申请一两天就会开通。 |
我自己有申请,而且有 GPT-4 的,但我自己测下来,响应速度比 OpenAI 的慢一些… |
## [Version 0.73.0](lobehub/lobe-chat@v0.72.4...v0.73.0) <sup>Released on **2023-09-10**</sup> #### ✨ Features - **misc**: Support Azure OpenAI. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Support Azure OpenAI, closes [#177](lobehub/lobe-chat#177) ([f0c9532](lobehub/lobe-chat@f0c9532)) </details> <div align="right"> [](#readme-top) </div>
## [Version 0.73.0](lobehub/lobe-chat@v0.72.4...v0.73.0) <sup>Released on **2023-09-10**</sup> #### ✨ Features - **misc**: Support Azure OpenAI. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Support Azure OpenAI, closes [#177](lobehub/lobe-chat#177) ([f0c9532](lobehub/lobe-chat@f0c9532)) </details> <div align="right"> [](#readme-top) </div>
## [Version 0.73.0](lobehub/lobe-chat@v0.72.4...v0.73.0) <sup>Released on **2023-09-10**</sup> #### ✨ Features - **misc**: Support Azure OpenAI. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Support Azure OpenAI, closes [#177](lobehub/lobe-chat#177) ([f0c9532](lobehub/lobe-chat@f0c9532)) </details> <div align="right"> [](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
support Azure OpenAI, close #131
refs: #151
📝 补充信息 | Additional Information
#178
关联改造点
结合这次升级,改造了 settings 的数据结构,将 OpenAI 相关的数据收敛到
languageModel
字段下。