Vibeleaderboard
← All Intel
Intel / article

Jev Vs Llm When To Use Each

Source
openrouter.ai
Author
OpenRouter editorial sitemap
Date

Context

This OpenRouter tutorial asks when a developer should send a task to a decision model instead of a text-generating . Its rule of thumb: if the code that consumes the answer ends in a switch statement, so the answer is one of a known set of options, a decision model fits; if the output has to be prose, it does not (openrouter.ai). The decision model here is Jev from TypeSafe. Instead of writing text that code must parse, it returns the option it picked from a set the developer defines, with a probability for each, or a single yes probability. A companion post explains the model in more depth.

On 60 support tickets sorted into five intents plus an escalation flag, Jev, GPT Luna and Claude Opus were all within one ticket of perfect on both counts, so the difference was cost and speed. Per 1,000 tickets Jev cost about $0.025 at a 194 millisecond median, against about $0.09 at 1.1 seconds for GPT Luna and $2.88 at about 2 seconds for Claude Opus. On a separate 40-message prompt-injection screen, Jev and Claude Opus got all 40 right and GPT Luna 39. The authors are explicit that these are small sets run on a single day with one set of prompts, showing the shape of the trade-off rather than a leaderboard. They also list Jev's limits in that version: text input only, literal reading of criteria, lower accuracy when the input carries irrelevant detail, and unreliable arithmetic, counting and date comparison.

Because Jev cannot write the reply, the post pairs it with an LLM in two patterns. In the first, Jev classifies the ticket, and code sends anything with an escalation probability of 0.5 or more, or an intent confidence under 0.8, to a person. Order-status questions are answered from the order system without any model, and only intents that need a written reply reach the LLM. In the second, the LLM drafts and Jev checks the draft against the policy text before it is sent; in the examples, an invented refund timeline was flagged as unsupported with full confidence. The 0.8 and 0.5 cutoffs are the authors' own policy choices, and they advise setting thresholds from a few hundred of a team's own labeled cases.

Key takeaways · AI-distilled
  • In OpenRouter's triage run, Claude Opus cost $2.88 per 1,000 tickets at a 1,957 ms median, GPT Luna $0.0921 at 1,106 ms, and Jev $0.0248 at 194 ms. The authors note these are small test sets.
  • The post lists Jev 1.13 weaknesses: it reads criteria literally, loses accuracy when the state includes irrelevant detail, and is unreliable at arithmetic, counting and date comparison.
  • Jev 1.13 takes text only (strings, JSON, arrays), with a 64k- cap per request, of which 32k covers the state plus the longest question.
  • For fairness, the LLMs received the same definitions and escalation rule as Jev in a , ran at temperature 0, and were asked for a bare JSON object, one request per example.
  • Jev returns the escalation decision as a single noul probability (0.04 in the sample ticket) that your code compares against a threshold you choose, rather than a verdict to parse.
Terms in this piece · Glossary
  • LLM — A large language model — the neural network behind tools like Claude and ChatGPT, trained on huge amounts of text to predict what comes next.
  • token — The chunk of text a model reads and writes in — roughly three-quarters of a word — and the unit AI usage is billed in.
  • system prompt — The standing instructions a model receives before any user input — defining its role, rules, tools, and tone for the whole conversation.
Read the source openrouter.ai
More from OpenRouter editorial sitemap
Recommended reads
Comments

Checking sign-in…

Loading comments…