baronunread/leanest on GitHub
- Stars
- 4
- Forks
- 0
- Language
- TypeScript
- License
- MIT
- Last push
- 21 Sep 2026
Read from GitHub on . Counts change daily.
How it uses Jev
export function jevProvider(options?: {
apiKey?: string;
baseUrl?: string;
model?: string;
}): JudgeProvider {
const apiKey = options?.apiKey ?? process.env.TYPESAFE_API_KEY ?? "";
const baseUrl = options?.baseUrl ?? process.env.TYPESAFE_API_BASE ?? "https://api.typesafe.ai/v1";
const model = options?.model ?? process.env.TYPESAFE_MODEL ?? "jev-latest";
return {
name: "jev",
async evaluate(state: JudgeState, questions: Record<string, JudgeQuestion>) {
if (!apiKey) {
throw new Error("TYPESAFE_API_KEY is not set. Export it or create a .env file.");
}View in packages/judge/src/providers/jev.ts


