Skip to main content
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.41.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.

Properties

private
_azureADTokenProvider: (() => string) | undefined
apiVersion: string

Methods

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