cURL
curl --request POST \ --url https://api.traceloop.com/v2/evaluators/execute/prompt-perplexity \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "input": { "prompt": "What is the capital of France?" } } '
{ "perplexity_score": 8.3 }
Measure prompt perplexity to detect potential injection attempts
Request Body:
input.prompt
Type "Bearer" followed by a space and JWT token.
Request body
Show child attributes
OK
8.3
Was this page helpful?