Skip to content

Commit 4bf4483

Browse files
julien-cDeep-Unlearning
authored andcommitted
[inference] Necessary breaking change: nest task-specific route inside of model route (#1426)
equivalent of huggingface/huggingface_hub#3044
1 parent d7f8d0a commit 4bf4483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/inference/src/providers/hf-inference.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class HFInferenceTask extends TaskProviderHelper {
106106
makeRoute(params: UrlParams): string {
107107
if (params.task && ["feature-extraction", "sentence-similarity"].includes(params.task)) {
108108
// when deployed on hf-inference, those two tasks are automatically compatible with one another.
109-
return `pipeline/${params.task}/${params.model}`;
109+
return `models/${params.model}/pipeline/${params.task}`;
110110
}
111111
return `models/${params.model}`;
112112
}

0 commit comments

Comments
 (0)