API Reference
Judge Criteria
Get a judgement of a completion against the specified criterion
POST
/
criteria
/
judge
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
criterion_id
string
requiredThe ID of the criterion to judge.
input
object
output
object
requiredThe completion message of the model.
Response
200 - application/json
score
number
requiredA score of 0 means the output failed this completion, and a score of 1 means it passed. A criteria may also return a decimal scores between 0 and 1, indicating the model's confidence or 'likelihood' that the criteria passed.
explanation
string
An explanation of the score including the model's reasoning, if applicable.
usage
object