Updated feature-extraction API URL

#116
by tomaarsen - opened
Sentence Transformers org

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

Sign up or log in to comment