vivek
12/10/2025, 6:48 PMhuggingface: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?
- 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.9michaelmichaelmichael
12/11/2025, 4:39 PM