https://promptfoo.dev/ logo
Error "API call error: https://api-inference.huggi...
# ❓|questions
v
I'm trying to use classifier type assert in my test and using huggingface provider
huggingface:text-classification:protectai/deberta-v3-base-prompt-injection
. running eval returns an error API call error: https://api-inference.huggingface.co is no longer supported. Please use https://router.huggingface.co instead. Looks like huggingface changed their endpoint. How to point to the new endpoint?
Copy code
- type: classifier
        provider: huggingface:text-classification:protectai/deberta-v3-base-prompt-injection
        config:
          apiEndpoint: https://router.huggingface.co/models/protectai/deberta-v3-base-prompt-injection
        value: 'SAFE'
        threshold: 0.9
m
Hi @vivek - thank you for reporting this! We'll have a fix for this in the next release: https://github.com/promptfoo/promptfoo/pull/6624