/** * @module teams-ai */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { CreateChatCompletionRequest, CreateChatCompletionResponse, CreateEmbeddingRequest, CreateEmbeddingResponse, ModerationInput, ModerationResponse } from './types'; import { OpenAIClient, OpenAIClientOptions, OpenAIClientResponse } from './OpenAIClient'; /** * @private */ export interface AzureOpenAIClientOptions extends OpenAIClientOptions { /** * Azure OpenAI endpoint. */ endpoint: string; /** * Optional. Which Azure API version to use. Defaults to latest. */ apiVersion?: string; } /** * @private * @class * @implements {OpenAIClient} * `AzureOpenAIClient` Allows for Azure hosted OpenAI clients to be created and used. As of 4/4/2023, access keys must be specifically assigned to be used with this client. */ export declare class AzureOpenAIClient extends OpenAIClient { constructor(options: AzureOpenAIClientOptions); createChatCompletion(request: CreateChatCompletionRequest): Promise>; createEmbedding(request: CreateEmbeddingRequest): Promise>; createModeration(request: ModerationInput): Promise>; protected addRequestHeaders(headers: Record, options: OpenAIClientOptions): void; } //# sourceMappingURL=AzureOpenAIClient.d.ts.map