
abhixhek/jevcal on GitHub
- Stars
- 10
- Forks
- 0
- Language
- Python
- License
- MIT
- Last push
- 18 Sep 2026
Read from GitHub on . Counts change daily.
How it uses Jev
from ..spec import Question
from . import Provider, ProviderError
DEFAULT_BASE_URL = "https://api.typesafe.ai"
RETRY_STATUSES = {429, 500, 502, 503, 504, 529}
class TypeSafeProvider(Provider):
name = "typesafe"
def __init__(self, model: str = "jev-latest", api_key: str | None = None, base_url: str | None = None,
max_retries: int = 5, timeout: float = 60.0) -> None:
self.model = model
self.api_key = api_key or os.environ.get("TYPESAFE_API_KEY")
self.base_url = (base_url or os.environ.get("TYPESAFE_BASE_URL") or DEFAULT_BASE_URL).rstrip("/")View in src/jevcal/providers/typesafe.py


