@hashbrownai/azure
Version:
Azure provider for Hashbrown AI
10 lines (9 loc) • 493 B
TypeScript
import { Chat } from '@hashbrownai/core';
import OpenAI from 'openai';
export interface AzureTextStreamOptions {
apiKey: string;
endpoint: string;
request: Chat.Api.CompletionCreateParams;
transformRequestOptions?: (options: OpenAI.Chat.ChatCompletionCreateParamsStreaming) => OpenAI.Chat.ChatCompletionCreateParamsStreaming | Promise<OpenAI.Chat.ChatCompletionCreateParamsStreaming>;
}
export declare function text(options: AzureTextStreamOptions): AsyncIterable<Uint8Array>;