@microsoft/teams-ai
Version:
SDK focused on building AI based applications for Microsoft Teams.
36 lines • 1.5 kB
TypeScript
/**
* @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<OpenAIClientResponse<CreateChatCompletionResponse>>;
createEmbedding(request: CreateEmbeddingRequest): Promise<OpenAIClientResponse<CreateEmbeddingResponse>>;
createModeration(request: ModerationInput): Promise<OpenAIClientResponse<ModerationResponse>>;
protected addRequestHeaders(headers: Record<string, string>, options: OpenAIClientOptions): void;
}
//# sourceMappingURL=AzureOpenAIClient.d.ts.map