@huggingface/inference
Version:
Typescript client for the Hugging Face Inference Providers and Inference Endpoints
7 lines • 473 B
TypeScript
import type { ChatCompletionInput, ChatCompletionStreamOutput } from "@huggingface/tasks";
import type { BaseArgs, Options } from "../../types";
/**
* Use to continue text from a prompt. Same as `textGeneration` but returns generator that can be read one token at a time
*/
export declare function chatCompletionStream(args: BaseArgs & ChatCompletionInput, options?: Options): AsyncGenerator<ChatCompletionStreamOutput>;
//# sourceMappingURL=chatCompletionStream.d.ts.map