-
Notifications
You must be signed in to change notification settings - Fork 10.3k
feat: added AzureOpenAI #98
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
Integrate AzureOpenAI
srdosramos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This configuration works but the model deployments on azure needs to have a unique name than the ones on the others providers. I tested on a deployment that has the name gpt-4o and gpt-4 and in both cases the code thinks that the provider is OpenAI instead of AzureOpenAI
|
I am getting error which says that the token is being not applied to the openai requests. |
|
This seems to only support the key approach, which is not a best practice for azure, you should be using service principals. Also if you work in any larger corp env you wont have an key as most of these instance are load balanced behind an APIM. |
|
Hi @HuynhDoTanThanh It is not getting url correctly when selected AzureOpenAI for me. It use Anthropic url. |
|
Tagging to cover with #276 post provider refactor. |
| return []; | ||
| } | ||
| const api_key = import.meta.env.AZURE_OPENAI_API_KEY; | ||
| const response = await fetch(`${base_url}/openai/deployments?api-version=2023-03-15-preview`, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HuynhDoTanThanh would it make sense to make the API Version parametrizable in .env as well?
|
Hello @HuynhDoTanThanh, having same issue as @axen2u. It's using anthropic instead of azure url. can you please check ? |
|
This PR is increasing in conflict with main Closing. If you fix the implementation and clean up all the errors please resubmit |
Integrate AzureOpenAI