开源复现

jevinf

@zerodegress1PythonMIT更新于 2026-09-20可当场跑

Jev风格的模型推理引擎,提供与Jev兼容的API。

英文原文

Jev-like model inference engine + Jev-compatible API

zerodegress/jevinf

它在哪儿调用了 Jev

print("  Jev-compatible: POST /v1/systemone  GET /v1/models"

src/jevinf/cli.py:156

链接指向我们抓取当天的那个 commit,行号是准的。

它问 Jev 的问题

下面是从这个项目源码里原样取出来的 question 组合。

取自 scripts/jev_conformance.py:53

  1. billing是/否

    Is this message about billing?

  2. urgent是/否

    Does this need a reply within the hour?

  3. team选项

    Which team should handle it?

    • paymentsPayouts, refunds, charges
    • platformLatency, outages, errors
  4. tone打分

    How frustrated is the customer?

    • 0calm
    • 1frustrated
    • 2very angry

用你自己的内容跑一遍

代码
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    billing: { type: 'boolean', instructions: 'Is this message about billing?' },
    urgent: { type: 'boolean', instructions: 'Does this need a reply within the hour?' },
    team: { type: 'choice', instructions: 'Which team should handle it?',
      criteria: { payments: 'Payouts, refunds, charges', platform: 'Latency, outages, errors' } },
    tone: { type: 'score', instructions: 'How frustrated is the customer?',
      criteria: ['calm', 'frustrated', 'very angry'] },
  },
});

同类的其他项目