UNPKG

@hashbrownai/azure

Version:
10 lines (9 loc) 493 B
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>;