Skip to content
System One

mejiasd3v/pi-jev-router

Pi extension that lets Jev choose a model and reasoning effort through Vercel AI Gateway, then keeps both pinned for the session. Generation still runs on your existing Pi providers and credentials.

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;

View in index.ts

Open on GitHub

More like this

Use cases this is tagged with