mejiasd3v/pi-jev-router on GitHub
- Stars
- 13
- Forks
- 0
- Language
- JavaScript
- License
- MIT
- Last push
- 22 Sep 2026
Read from GitHub on . Counts change daily.
How it uses Jev
import { createGateway, experimental_evaluate as evaluate } from "ai";
const PROVIDER = "auto";
const MODEL = "jev";
const GATEWAY = "vercel-ai-gateway";
const ZERO_COST = { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 };
const THINKING_LEVELS = ["off", "minimal", "low", "medium", "high", "xhigh", "max"] as const;
const EVALUATION_ATTEMPTS = 3;
// ponytail: Jev exposes no tokenizer. Count serialized UTF-8 bytes conservatively,
// leaving room below its documented ~32K-token budget; use its tokenizer if exposed.
const EVALUATION_BYTES = 28_000;
const ROUTING_BYTES = 192_000;
const MAX_CHUNKS = 8;
const CHUNK_OVERLAP = 128;
const CHUNK_CONCURRENCY = 2;

