-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
[Request] 支持 Azure OpenAI #131
Labels
Comments
试试配置 OPENAI_PROXY_URL 这个环境变量行不行? |
azure的鉴权是在header中的api-key这个值。 |
可以支持两个header看看。同时设置bearer token和api-key。 |
ok,我加下 |
6 tasks
🎉 This issue has been resolved in version 0.73.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
skylinemusiccds
referenced
this issue
in skylinemusiccds/BrainWeaver-development
May 12, 2024
[AgentSubmit] book-summary-agent @thelapyae
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🥰 需求描述 | Feature Description
希望支持azure openai。它也支持function call。而且申请及支付azure的账号更容易。
🧐 解决方案 | Proposed Solution
curl "ENDPOINT/openai/deployments/MODELNAME/chat/completions?api-version=2023-07-01-preview" \ -H "Content-Type: application/json" \ -H "api-key: YOUR_API_KEY" \ -d "{ \"messages\": [], \"max_tokens\": 800, \"temperature\": 0.7, \"frequency_penalty\": 0, \"presence_penalty\": 0, \"top_p\": 0.95, \"stop\": null }"
调用方式如上,需要提供一个ENDPOINT url、自定义的MODELNAME、api-key。
📝 补充信息 | Additional Information
No response
The text was updated successfully, but these errors were encountered: