Cloudflare’s decision-model guide shows how a Worker can ask Jev and Clef the same kinds of questions. Clef runs on Workers AI. TypeSafe’s Jev is a third-party model called through AI Gateway. Cloudflare documents the same env.AI.run() entry point for both routes.
Keep the questions fixed when you compare models
- Send the invoice and approval policy as shared evidence. Ask a
noulquestion for the probability that a purchase-order reference is missing, achoicequestion for the review queue, and ascorequestion for risk on an ordered scale. - Read each answer by its question ID. The request bodies still differ: the Clef example also supplies
modelin the body, while the Jev 1.14 example selects Jev in the Worker call. Cloudflare says Clef truncates long text to fit. It also advises against using Jev’s beta images and bounding boxes in production.
Read the distribution before routing the case
- Cloudflare gives two distributions with the same average score: one puts all its weight on the middle level, and the other splits its weight between the extremes. A queue that only reads the average loses that distinction.
- Let code check exact rules such as a spending cap. For judgments that need a model, measure on labeled invoices how often each provider agrees with reviewers at the same share of cases handled automatically.
Caveat: We checked the documentation and schemas, without calling either model. A shared interface makes the comparison easier to set up; it does not make the two models’ probabilities interchangeable.