/lmunit
LMUnit
Given a query
, response
, and a unit_test
, return the responseβs score
on the unit test on a 5-point continuous scale. The total input cannot exceed 7000 tokens.
See a code example in our blog post. Email lmunit-feedback@contextual.ai with any feedback or questions.
π Obtain an LMUnit API key by completing this form
POST
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
LMUnit input request object.
Response
200
application/json
Successful Response
LMUnit result object.