UNPKG

@huggingface/inference

Version:

Typescript client for the Hugging Face Inference Providers and Inference Endpoints

10 lines 560 B
import type { InferenceTask, Options, RequestArgs } from "../../types.js"; /** * Primitive to make custom inference calls that expect server-sent events, and returns the response through a generator * @deprecated Use specific task functions instead. This function will be removed in a future version. */ export declare function streamingRequest<T>(args: RequestArgs, options?: Options & { /** In most cases (unless we pass a endpointUrl) we know the task */ task?: InferenceTask; }): AsyncGenerator<T>; //# sourceMappingURL=streamingRequest.d.ts.map