filedcom/playjev on GitHub
- Stars
- 7
- Forks
- 1
- Language
- TypeScript
- License
- MIT
- Last push
- 20 Sep 2026
Read from GitHub on . Counts change daily.
How it uses Jev
if (!options.apiKey) throw new Error("TYPESAFE_API_KEY is required");
this.#apiKey = options.apiKey;
this.model = options.model ?? "jev-latest";
this.baseUrl = (options.baseUrl ?? "https://api.typesafe.ai/v1").replace(/\/$/, "");
this.timeoutMs = options.timeoutMs ?? 30_000;
this.maxRetries = options.maxRetries ?? 2;
if (this.timeoutMs <= 0) throw new Error("requestTimeoutMs must be greater than zero");
if (!Number.isInteger(this.maxRetries) || this.maxRetries < 0) {
throw new Error("maxRetries must be a non-negative integer");
}


