AzureOpenAIChatClient<T>
Models & Types · AiDotNet.Agentic.Models.Connectors
An IChatClient for Azure OpenAI. Azure uses the same Chat Completions wire format as
OpenAI, so this derives from OpenAIChatClient and only changes the endpoint (a
per-deployment URL with an api-version) and the authentication header (api-key).
Inheritance: ChatClientBase<T> → OpenAIChatClient<T> → AzureOpenAIChatClient<T>
For Beginners
Azure hosts the same OpenAI models but behind your own Azure resource. You
address a “deployment” you created, the URL includes an API version, and the key goes in an
api-key header instead of Authorization. Everything else is identical to OpenAI, which is
why this class reuses the OpenAI request/response logic.
Constructors
| Constructor | Summary |
|---|---|
AzureOpenAIChatClient(string apiKey, string deploymentName, string resourceEndpoint, string apiVersion, HttpClient httpClient) |
Initializes a new Azure OpenAI chat client. |