Infrastructure
This is a LLM Gateway that mimics typesafe ai structured output. Like an imposter Jev.
const isChat = (request: FastifyRequest) => request.url.split('?')[0] !== '/v1/systemone';The link points at the commit we read, so the line number still holds.
These question sets are lifted from this project's source exactly as written.
from packages/api/examples/benchmark.ts:24
refundtrue/falseDoes the customer request money back?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
refund: { type: 'boolean', instructions: 'Does the customer request money back?' },
},
});from packages/api/src/logging.test.ts:21
CANARY_QUESTION_IDtrue/falseCANARY_RUBRIC
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
CANARY_QUESTION_ID: { type: 'boolean', instructions: 'CANARY_RUBRIC' },
},
});from packages/api/src/test-support.ts:8
refundtrue/falseDoes the customer request a refund?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
refund: { type: 'boolean', instructions: 'Does the customer request a refund?' },
},
});