UNPKG

@huggingface/inference

Version:

Typescript client for the Hugging Face Inference Providers and Inference Endpoints

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