E2B icon indicating copy to clipboard operation
E2B copied to clipboard

Add support for Azure OpenAI

Open DennizSvens opened this issue 1 year ago • 2 comments

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:

  1. Added support for Azure OpenAI as a model hosting provider.
  2. Included additional arguments to pass the base URL for the Azure instance, the deployment name of the model and the API version.
  3. Updated the relevant sections of the codebase to accept and process these new arguments.
  4. Update README with Azure OpenAI support

Here's a GIF that demonstrates that the model is working: Azure OpenAI model hosting provider in e2b

DennizSvens avatar May 17 '23 03:05 DennizSvens

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders | Preview

codesandbox[bot] avatar May 17 '23 03:05 codesandbox[bot]

We'll go over it today! Thank you for the PR!

mlejva avatar May 17 '23 16:05 mlejva

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!)

ValentaTomas avatar May 21 '23 17:05 ValentaTomas

Main

Alaaryad avatar May 21 '23 17:05 Alaaryad