Skip to main content

check_reply

Function check_reply 

Source
pub fn check_reply(
    reply: &ClassifyReply,
    request: &ClassifyRequest,
) -> Result<(), String>
Expand description

Check a reply against the request it answers: the same batch and model, one item per request item in request order, each with exactly one of answers and error, and every answered item answering exactly the request’s questions with answers of the asked type. The error names the first problem.