JevMade Sign in
← Back to guides

JevMade field notes / Written article

Connect Jev to an app through the Vercel AI SDK

Flavio Copes shows how Vercel's shared AI toolkit connects an app to Jev, including the different names it uses for yes-or-no questions and where it stores confidence values.

Original by Flavio CopesGetting started

Listen to this guide

JevMade’s plain-English explanation

0:00 /

Our summary

An app may need to choose a support team rather than write a reply. Flavio Copes shows how the Vercel AI SDK, a shared toolkit for calling AI services, connects to Jev. The app supplies a message and defined questions, then receives choices, ratings or estimates of whether statements are true.

The toolkit changes some names. Jev's yes-or-no question, called Noul, becomes boolean, with its answer in probability. Confidence values for choices and ratings sit in separate provider information, not beside each answer. Direct calls and Vercel's Gateway also use different key names. Keep those keys on the server, not in a visitor's browser.

The sample sends uncertain tickets to a person, but its cutoffs and answer numbers are illustrative. Confidence is not measured accuracy. The web handler checks message length and catches evaluation failures, yet lacks login checks and request limits. Badly formatted incoming data can escape that catch. It is a starting point, not a complete public service.

Key takeaways

  1. Read the toolkit's names carefully: a yes-or-no question uses boolean and returns probability, while choices and ratings keep their own answer types.
  2. Use the right key for your route. The AI SDK provider reads TYPESAFE_AI_API_KEY; TypeSafe's own toolkit reads TYPESAFE_API_KEY; Vercel's Gateway uses AI_GATEWAY_API_KEY.
  3. Pin tested versions and check examples with known answers before routing real work. The evaluation function is experimental and can change even in small package updates.

The publisher dates this article October 6, 2026. Its example answers, thresholds and three-ticket comparison illustrate a method, not results independently reproduced by JevMade. A matching answer format does not give other models Jev's probability or confidence information. The handler returns a proposed route; it does not create a ticket or authorize a refund. Its examples were read, not run.

Flavio Copes' blog · Original published

Read the original guide Opens the author’s site in a new tab.

Keep this for later

Sign in to bookmark experiments, guides and videos, and keep notes only you can see.

Continue to sign in

We’ll bring you back to this listing.