Skip to main content

Azure OpenAI Provider

The Azure OpenAI provider enables you to use OpenAI models through Microsoft Azure with enterprise features, security, and compliance.

Installation

Setup

Get your credentials from the Azure Portal and set them as environment variables:

Usage

Basic Text Generation

Streaming Responses

Structured Output

Configuration

Custom Provider Instance

Provider Options

  • resourceName: Your Azure resource name
  • apiKey: Azure OpenAI API key
  • apiVersion: API version (defaults to ‘v1’)
  • baseURL: Custom endpoint URL

Available Models

You can deploy the following OpenAI models on Azure:

Chat Models

  • GPT-4 Turbo
  • GPT-4
  • GPT-3.5 Turbo

Embeddings

Available Models:
  • text-embedding-3-small
  • text-embedding-3-large
  • text-embedding-ada-002

Image Generation

Available Models:
  • DALL-E 3
  • DALL-E 2

Advanced Features

Tool Calling

Vision

PDF Support

Deployment Notes

  • Create deployments in the Azure Portal before use
  • Each deployment has its own name and configuration
  • Deployment names are used as model identifiers
  • Supports virtual network integration
  • Provides managed identity authentication

Resources