基础设施
将任意开源模型转换为分类器或jev端点。
Turn any open model into a classifier/jev endpoint
@router.post("/v1/systemone", include_in_schema=False)链接指向我们抓取当天的那个 commit,行号是准的。
下面是从这个项目源码里原样取出来的 question 组合。
refund是/否Does the customer explicitly ask for money back?
spam是/否Is this message unsolicited promotional spam?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
refund: { type: 'boolean', instructions: 'Does the customer explicitly ask for money back?' },
spam: { type: 'boolean', instructions: 'Is this message unsolicited promotional spam?' },
},
});