asfarsadewa/human-compiler on GitHub
- Stars
- 1
- Forks
- 0
- Language
- TypeScript
- License
- MIT
- Last push
- 17 Sep 2026
Read from GitHub on . Counts change daily.
How it uses Jev
result = await client.systemOne({ state: built.state, questions: built.questions, model: MODEL });
} catch (e) {
if (e instanceof APIError) {
log("error", "typesafe_api_error", { status: e.status, requestId: e.requestId });
if (e.status === 429 || e.status === 529 || e.status >= 500) {
return fail(503, "model_busy", "the model is busy; try again shortly", { "Retry-After": "10" });
}
return fail(502, "model_error", `model request failed (${e.status})`);
}
if (e instanceof APIConnectionError) {
log("error", "typesafe_unreachable", { message: e.message });
return fail(504, "model_timeout", "the model did not answer in time");
}
throw e;
