Skip to content

Conversation

google-labs-jules[bot]
Copy link

This PR adds support for using Azure OpenAI as a model provider.

Key changes:

  • Added AzureProvider in src/agents/models/azure_provider.py.
  • Exposed AzureProvider in src/agents/models/__init__.py.
  • Added an example file examples/model_providers/azure_provider.py.
  • Updated docs/models/index.md with documentation for Azure support.

This change adds support for Azure OpenAI models.

A new `AzureProvider` class is introduced, which can be configured with Azure-specific credentials (API key, API version, endpoint, and deployment name). This provider uses the `openai.AsyncAzureOpenAI` client to interact with the Azure OpenAI service.

The change also includes:
- An example demonstrating how to use the `AzureProvider`.
- Documentation updates to guide users on configuring and using Azure OpenAI models.
Copy link
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll acknowledge your comments with a 👀 emoji and then get to work. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

I will automatically address your feedback. For any comments you don't want me to act on, just include (aside).



For security, I will only act on instructions from the user who triggered this task for this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants