News Developer Tools

Vercel adds Jev AI model support to its Python AI SDK

Vercel's AI SDK for Python gains an experimental evaluate() function that sends multiple-choice questions to Jev and returns answers with confidence levels.

Vercel has added an experimental evaluate() function to its AI SDK for Python that sends multiple-choice questions to the Jev AI model and returns answers with confidence levels. Vercel says its Python team built the release to make it easy for Python developers to experiment with Jev.

Vercel describes Jev as a universal classifier. A classifier is a program that sorts input into categories, such as spam or not spam. Traditional classifiers need new labeled data and training for each task. Vercel says Jev's creators turned a large language model into a classifier that needs no domain-specific training, because the model already learned from a broad range of human knowledge.

Jev is cheap and fast, according to Vercel, and it returns structured JSON instead of generated text. Its answers follow the types and choices defined in each question. Vercel says Jev can make mistakes, and it is built for narrow decisions, so accuracy for a given use case has to be tested.

The function takes a model, a state that can be a simple string or complex JSON, and a set of questions. Questions come in three kinds: ChoiceQuestion picks one answer, ScoreQuestion rates the state on a scale, and NoulQuestion estimates the probability that a statement is true. Developers install the SDK with uv add ai and set an AI Gateway key.

Source: Jev for Python engineers – Vercel.