UNPKG

@huggingface/inference

Version:

Typescript client for the Hugging Face Inference Providers and Inference Endpoints

9 lines (8 loc) 279 B
export class InferenceOutputError extends TypeError { constructor(message: string) { super( `Invalid inference output: ${message}. Use the 'request' method with the same parameters to do a custom call with no type checking.` ); this.name = "InferenceOutputError"; } }