OfficialJev Repos & SDKs
Python SDK Constants
Default settings and environment variable names for the Python SDK, including the API root, model alias, and per-request timeout.
- Format
- Docs
- Published by
- TypeSafe AI
- Last verified
- Oct 2026
Works forJev for Classification
Used inJev for Software & DevTools
- Languages
- Python
Highlights
- API_KEY_ENV, BASE_URL_ENV, DEFAULT_MODEL_ENV, and LOG_LEVEL_ENV name the TYPESAFE_* variables.
- DEFAULT_BASE_URL is https://api.typesafe.ai. DEFAULT_MODEL is jev-latest.
- DEFAULT_TIMEOUT is 10.0 seconds per HTTP operation.
Watch out
jev-latest is an alias. The response model field is what records which build answered.
Questions about this entry
Short answers drawn from the linked project or page.
DEFAULT_BASE_URL is https://api.typesafe.ai, DEFAULT_MODEL is jev-latest, and DEFAULT_TIMEOUT is 10.0 seconds per HTTP operation. Environment names cover the TYPESAFE_API_KEY, BASE_URL, DEFAULT_MODEL, and LOG_LEVEL variables.
The response model field records the concrete version; jev-latest is only an alias, so read the response rather than the request when it matters.
It is 10.0 seconds per HTTP operation. Pass timeout to the client, or rely on a supplied httpx2 client's timeout, otherwise the SDK default applies.
TYPESAFE_LOG_LEVEL, exported as LOG_LEVEL_ENV. Set it to debug, info, and so on for a quick logging default instead of configuring the typesafe_sdk logger by hand.
Yes. They are public attributes on typesafe_sdk.constants, including API_KEY_ENV, BASE_URL_ENV, DEFAULT_MODEL_ENV, LOG_LEVEL_ENV, DEFAULT_BASE_URL, DEFAULT_MODEL, and DEFAULT_TIMEOUT.
Pass base_url to the client or set TYPESAFE_BASE_URL, exported as BASE_URL_ENV. The default is https://api.typesafe.ai, and the alternate API must follow the TypeSafe OpenAPI spec.
DEFAULT_MODEL is jev-latest. Override it per client with the model argument, or globally through the TYPESAFE_DEFAULT_MODEL variable exposed as DEFAULT_MODEL_ENV.
More Jev resources like this
Release notes for the official Python SDK, from the 14 September 2026 public release through the Pydantic migration and the HTTP/2 extra.
Jev Repos & SDKsDocs#official#docs#sdk
Official
RetryPolicy for the Python SDK: attempt count, exponential backoff with jitter, which HTTP statuses retry, and a total time budget.
Jev Repos & SDKsDocs#official#docs#sdk
Official
The Python SDK error hierarchy: HTTP status classes, rate-limit wait hints, connection and timeout errors, and response-body validation failures.
Jev Repos & SDKsDocs#official#docs#sdk
Official
How the Python SDK types questions: Noul, Choice, and Score as objects or dictionaries, including optional JSON instructions and criteria.
Jev Repos & SDKsDocs#official#docs#sdk
Official
TypeSafeClient, the synchronous Python client: ask questions, list models, and set the key, model, retry policy, and HTTP timeout.
Jev Repos & SDKsDocs#official#docs#sdk
Official
Shared Python SDK types: JSONValue, a nested JSON-like value that may be None, and descriptions built from strings or JSON values.
Jev Repos & SDKsDocs#official#docs#sdk
Official
From the Jev guides
Original write-ups on what this entry is for.
Closed weights have not stopped the ecosystem from rebuilding the shape in the open. API-compatible servers, retrained heads on small models, and inference-time tricks that skip generation entirely.
Jev Repos & SDKs#open-models#research#local
Read article
From the Jev community
Posts from builders shipping with Jev right now.