We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24e8a27 commit f8d52d5Copy full SHA for f8d52d5
‎packages/inference/src/lib/makeRequestOptions.ts
@@ -38,7 +38,7 @@ export function makeRequestOptions(
38
}
39
40
41
- 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}`;
42
const info: RequestInit = {
43
headers,
44
method: "POST",
0 commit comments