Catalog / Vercel

AI Gateway now supports TypeSafe clients and an HTTP API for Jev

yesterdayaddedOriginal notes

You can now call Jev from TypeSafe AI through AI Gateway using an existing TypeSafe client or the HTTP API, in addition to the AI SDK.

  • TypeSafe client: Point an existing TypeSafe client at AI Gateway without changing its evaluation calls.

  • HTTP API: Call Jev directly from any language or framework.

  • AI SDK: Call Jev from a TypeScript application using AI SDK.

Jev is a probabilistic decision model for software. State goes in, and typed answers come out with probabilities attached, so there's no generated text to parse. Requests are billed through AI Gateway on all three paths, so they appear alongside your other model calls in usage and observability.

Migrate an existing TypeSafe client

Change the base URL and API key. Your systemOne calls, noul questions, and response shapes stay exactly as they are.

Start a new integration

New integrations name the model as typesafe-ai/jev and ask one of three question types: boolean returns a probability from 0 to 1, choice picks one option from a set you name, and score rates against a scale you define. This example asks whether an agent should keep working after fixing a bug and passing its tests.

With the HTTP API, POST to /v1/evaluate:

With the AI SDK, run the same evaluation through evaluate:

You can also use Jev through eve, a framework for building and deploying agents with sandboxed compute, human approvals, and evaluations already built in. eve uses Jev as the default evaluation model for automatic model selection, typed evaluations, and automated tool approvals.

See the TypeSafe-compatible API guide to migrate a client, or the evaluation guide for the HTTP API or AI SDK.

Read more