UNPKG

ai21

Version:

AI21 TypeScript SDK

9 lines (8 loc) 628 B
import { APIResource } from '../../APIResource'; import { Stream } from '../../streaming'; import * as Models from '../../types'; export declare class Completions extends APIResource { create(body: Models.ChatCompletionCreateParamsNonStreaming, options?: Models.RequestOptions): Promise<Models.ChatCompletionResponse>; create(body: Models.ChatCompletionCreateParamsStreaming, options?: Models.RequestOptions): Promise<Stream<Models.ChatCompletionChunk>>; create(body: Models.ChatCompletionCreateParams, options?: Models.RequestOptions): Promise<Stream<Models.ChatCompletionChunk> | Models.ChatCompletionResponse>; }