Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/mod.ts>AzureOpenAI

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
class AzureOpenAI
extends OpenAI
import { AzureOpenAI } from "https://deno.land/x/openai@v4.62.1/mod.ts";

API Client for interfacing with the Azure OpenAI API.

Constructors

new
AzureOpenAI(unnamed 0?: AzureClientOptions)

API Client for interfacing with the Azure OpenAI API.

Properties

private
_azureADTokenProvider: (() => Promise<string>) | undefined
private
_deployment: string | undefined
apiVersion: string

Methods

private
_getAzureADToken(): Promise<string | undefined>
protected
authHeaders(opts: Core.FinalRequestOptions): Core.Headers
protected
prepareOptions(opts: Core.FinalRequestOptions<unknown>): Promise<void>
buildRequest(options: Core.FinalRequestOptions<unknown>): { req: RequestInit; url: string; timeout: number; }