pub fn check_request(
request: &ClassifyRequest,
model: &ModelEntry,
) -> Result<(), Refusal>Expand description
Check every limit of request against the model’s role.describe entry:
the batch id, question count and each question, item count, each item’s
state and images, and max_cost_usd. Returns the first refusal.