@huggingface/inference
Advanced tools
Comparing version 2.0.0-rc2 to 2.0.0
@@ -99,3 +99,3 @@ "use strict"; | ||
} | ||
const url = /^http(s?):/.test(model) ? model : `${HF_INFERENCE_API_BASE_URL}${model}`; | ||
const url = /^http(s?):/.test(model) || model.startsWith("/") ? model : `${HF_INFERENCE_API_BASE_URL}${model}`; | ||
const info = { | ||
@@ -102,0 +102,0 @@ headers, |
{ | ||
"name": "@huggingface/inference", | ||
"version": "2.0.0-rc2", | ||
"version": "2.0.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Tim Mikeladze <tim.mikeladze@gmail.com>", |
@@ -41,3 +41,3 @@ import type { Options, RequestArgs } from "../types"; | ||
const url = /^http(s?):/.test(model) ? model : `${HF_INFERENCE_API_BASE_URL}${model}`; | ||
const url = /^http(s?):/.test(model) || model.startsWith("/") ? model : `${HF_INFERENCE_API_BASE_URL}${model}`; | ||
const info: RequestInit = { | ||
@@ -44,0 +44,0 @@ headers, |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
113997
1