UNPKG

@huggingface/inference

Version:

Typescript client for the Hugging Face Inference Providers and Inference Endpoints

7 lines (6 loc) 203 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isUrl = isUrl; function isUrl(modelOrUrl) { return /^http(s?):/.test(modelOrUrl) || modelOrUrl.startsWith("/"); }