UNPKG

@microsoft/botbuilder-m365

Version:

M365 extensions for Microsoft BotBuilder, Alpha release.

31 lines 1.7 kB
/** * @module botbuilder-m365 */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { CreateChatCompletionRequest, CreateChatCompletionResponse, CreateCompletionRequest, CreateCompletionResponse, CreateEmbeddingRequest, CreateEmbeddingResponse, CreateModerationRequest, CreateModerationResponse } from './schema'; import { OpenAIClient, OpenAIClientOptions, OpenAIClientResponse } from './OpenAIClient'; export interface AzureOpenAIClientOptions extends OpenAIClientOptions { endpoint: string; apiVersion?: string; } /** * `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); createCompletion(request: CreateCompletionRequest): Promise<OpenAIClientResponse<CreateCompletionResponse>>; createChatCompletion(request: CreateChatCompletionRequest): Promise<OpenAIClientResponse<CreateChatCompletionResponse>>; createEmbedding(request: CreateEmbeddingRequest): Promise<OpenAIClientResponse<CreateEmbeddingResponse>>; /** * Placeholder for future implementation. * * @param {CreateModerationRequest} request The input request and model payload. */ createModeration(request: CreateModerationRequest): Promise<OpenAIClientResponse<CreateModerationResponse>>; protected addRequestHeaders(headers: Record<string, string>, options: OpenAIClientOptions): void; private removeModel; } //# sourceMappingURL=AzureOpenAIClient.d.ts.map