class AzureOpenAI
extends OpenAI
import { AzureOpenAI } from "https://deno.land/x/openai@v4.69.0/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.
Methods
private
_getAzureADToken(): Promise<string | undefined>protected
authHeaders(opts: Core.FinalRequestOptions): Core.Headersprotected
prepareOptions(opts: Core.FinalRequestOptions<unknown>): Promise<void>buildRequest(options: Core.FinalRequestOptions<unknown>): { req: RequestInit; url: string; timeout: number; }