Skip to main content

latest
Works with
It is unknown whether this package works with Node.js, Deno, Browsers, Cloudflare Workers, Bun
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Bun
JSR Score29%
Published2 years ago (0.0.1)
interface AzureClientOptions
extends ClientOptions

API Client for interfacing with the Azure OpenAI API.

Properties

optional
apiVersion: string | undefined

Defaults to process.env['OPENAI_API_VERSION'].

optional
endpoint: string | undefined

Your Azure endpoint, including the resource, e.g. https://example-resource.azure.openai.com/

optional
deployment: string | undefined

A model deployment, if given, sets the base client URL to include /deployments/{deployment}. Note: this means you won't be able to use non-deployment endpoints. Not supported with Assistants APIs.

optional
apiKey: string | undefined

Defaults to process.env['AZURE_OPENAI_API_KEY'].

optional
azureADTokenProvider: (() => Promise<string>) | undefined

A function that returns an access token for Microsoft Entra (formerly known as Azure Active Directory), which will be invoked on every request.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@luca/openai

Import symbol

import { type AzureClientOptions } from "@luca/openai";
or

Import directly with a jsr specifier

import { type AzureClientOptions } from "jsr:@luca/openai";