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
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AzureOpenAIBackendAdapter(
config):AzureOpenAIBackendAdapter
Defined in: backend/src/providers/azure-openai.ts:135
Parameters
Section titled “Parameters”config
Section titled “config”Returns
Section titled “Returns”AzureOpenAIBackendAdapter
Properties
Section titled “Properties”metadata
Section titled “metadata”
readonlymetadata:AdapterMetadata
Defined in: backend/src/providers/azure-openai.ts:128
Adapter metadata for identification and capabilities.
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”estimateCost()
Section titled “estimateCost()”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.
Parameters
Section titled “Parameters”request
Section titled “request”Returns
Section titled “Returns”Promise<number | null>
Implementation of
Section titled “Implementation of”execute()
Section titled “execute()”execute(
request,signal?):Promise<IRChatResponse>
Defined in: backend/src/providers/azure-openai.ts:316
Execute non-streaming request.
Parameters
Section titled “Parameters”request
Section titled “request”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<IRChatResponse>
Implementation of
Section titled “Implementation of”executeStream()
Section titled “executeStream()”executeStream(
request,signal?):IRChatStream
Defined in: backend/src/providers/azure-openai.ts:361
Execute streaming request.
Parameters
Section titled “Parameters”request
Section titled “request”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”fromIR()
Section titled “fromIR()”fromIR(
request):AzureOpenAIRequest
Defined in: backend/src/providers/azure-openai.ts:201
Convert IR to Azure OpenAI format.
Parameters
Section titled “Parameters”request
Section titled “request”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”healthCheck()
Section titled “healthCheck()”healthCheck():
Promise<boolean>
Defined in: backend/src/providers/azure-openai.ts:515
Health check.
Returns
Section titled “Returns”Promise<boolean>
Implementation of
Section titled “Implementation of”toIR()
Section titled “toIR()”toIR(
response,originalRequest,latencyMs):IRChatResponse
Defined in: backend/src/providers/azure-openai.ts:254
Convert Azure OpenAI response to IR.
Parameters
Section titled “Parameters”response
Section titled “response”originalRequest
Section titled “originalRequest”latencyMs
Section titled “latencyMs”number