E2B
E2B copied to clipboard
Add support for Azure OpenAI
This PR adds support for Azure OpenAI. Azure OpenAI is similar to OpenAI but requires a base URL for the Azure instance, deployment name of the model and the API version to be passed as arguments. The openai Python package is still used as the underlying technology for both.
Here's a detailed list of changes:
- Added support for Azure OpenAI as a model hosting provider.
- Included additional arguments to pass the base URL for the Azure instance, the deployment name of the model and the API version.
- Updated the relevant sections of the codebase to accept and process these new arguments.
- Update README with Azure OpenAI support
Here's a GIF that demonstrates that the model is working:
Open in CodeSandbox Web Editor | VS Code | VS Code Insiders | Preview
We'll go over it today! Thank you for the PR!
Thanks for the PR and sorry for the delay!
I just changed some details and now I'm merging it.
(The GIF especially was really welcome!)
Main