UNPKG

@huggingface/inference

Version:

Typescript client for the Hugging Face Inference Providers and Inference Endpoints

7 lines 437 B
import type { ChatCompletionInput, ChatCompletionOutput } from "@huggingface/tasks"; import type { BaseArgs, Options } from "../../types"; /** * Use the chat completion endpoint to generate a response to a prompt, using OpenAI message completion API no stream */ export declare function chatCompletion(args: BaseArgs & ChatCompletionInput, options?: Options): Promise<ChatCompletionOutput>; //# sourceMappingURL=chatCompletion.d.ts.map