
adarshmishra07/jcm-router on GitHub
- Stars
- 4
- Forks
- 0
- Language
- TypeScript
- License
- MIT
- Last push
- 17 Sep 2026
Read from GitHub on . Counts change daily.
How it uses Jev
const res = await fetch(client.url, {
method: "POST",
headers: { Authorization: `Bearer ${client.apiKey}`, "Content-Type": "application/json" },
body: JSON.stringify({ model: "jev-latest", state, questions }),
signal: AbortSignal.timeout(client.timeoutMs),
});
if (!res.ok) return { ok: false, error: `http ${res.status}`, ms: ms() };
const answers = parseJevResponse(await res.json(), questions);
return answers ? { ok: true, answers, ms: ms() } : { ok: false, error: "unexpected response shape", ms: ms() };
} catch (err) {
return { ok: false, error: err instanceof Error ? `${err.name}: ${err.message}` : String(err), ms: ms() };

