Skip to content

AzureOpenAIBackendAdapter

Defined in: backend/src/providers/azure-openai.ts:124

Backend adapter for Azure OpenAI Chat Completions API.

Features:

  • OpenAI-compatible with deployment-based routing
  • Enterprise features (SLA, private endpoints, VNet)
  • Content filtering (configurable)
  • Vision model support
  • Function calling support
  • Seed support for reproducibility
  • Enterprise pricing with consumption-based billing

new AzureOpenAIBackendAdapter(config): AzureOpenAIBackendAdapter

Defined in: backend/src/providers/azure-openai.ts:135

AzureOpenAIConfig

AzureOpenAIBackendAdapter

readonly metadata: AdapterMetadata

Defined in: backend/src/providers/azure-openai.ts:128

Adapter metadata for identification and capabilities.

BackendAdapter.metadata

estimateCost(request): Promise<number | null>

Defined in: backend/src/providers/azure-openai.ts:541

Estimate cost. Azure pricing varies by region and deployment. These are approximate US East costs.

IRChatRequest

Promise<number | null>

BackendAdapter.estimateCost


execute(request, signal?): Promise<IRChatResponse>

Defined in: backend/src/providers/azure-openai.ts:316

Execute non-streaming request.

IRChatRequest

AbortSignal

Promise<IRChatResponse>

BackendAdapter.execute


executeStream(request, signal?): IRChatStream

Defined in: backend/src/providers/azure-openai.ts:361

Execute streaming request.

IRChatRequest

AbortSignal

IRChatStream

BackendAdapter.executeStream


fromIR(request): AzureOpenAIRequest

Defined in: backend/src/providers/azure-openai.ts:201

Convert IR to Azure OpenAI format.

IRChatRequest

AzureOpenAIRequest

BackendAdapter.fromIR


healthCheck(): Promise<boolean>

Defined in: backend/src/providers/azure-openai.ts:515

Health check.

Promise<boolean>

BackendAdapter.healthCheck


toIR(response, originalRequest, latencyMs): IRChatResponse

Defined in: backend/src/providers/azure-openai.ts:254

Convert Azure OpenAI response to IR.

AzureOpenAIResponse

IRChatRequest

number

IRChatResponse

BackendAdapter.toIR