UNPKG

@burncloud/inference

Version:

Typescript client for the Hugging Face Inference Providers and Inference Endpoints

4 lines (3 loc) 127 B
export function isUrl(modelOrUrl: string): boolean { return /^http(s?):/.test(modelOrUrl) || modelOrUrl.startsWith("/"); }