Updated feature-extraction API URL
#116
pinned
by
tomaarsen
- opened
Hello!
If you were using the undocumented feature-extraction
API until now, then you may have noticed that it stopped working. Instead, the API URL has moved to the following URL for this model:
For example:
curl -L \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HF_API_KEY" \
https://router.huggingface.co/hf-inference/models/sentence-transformers/all-MiniLM-L6-v2/pipeline/feature-extraction \
-d '{"inputs": ["hello"] }'
And in addition, this URL can be used for the sentence-similarity
task for this model:
Apologies for the inconvenience.
- Tom Aarsen
tomaarsen
pinned discussion