跳到正文
Vercel Blog(vercel.com)· Rohan Taneja·· 2026-09-21品質評分23

AI Gateway 現支援 TypeSafe 客戶端和 Jev 的 HTTP API

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

重點導讀

AI Gateway 現在支援通過 TypeSafe 客戶端或 HTTP API 呼叫 Jev。

  • Jev 是一種機率決策模型,返回帶機率的型別化答案,無需解析生成文本。
  • 所有呼叫均通過 AI Gateway 計費,便於統一使用與可觀測。

AI 伴隨問答

自備 Key 深度分析

針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:

正文

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

來源: Vercel Blog (vercel.com)
開啟原文

讀者討論

理性交流 · 即時討論