Properties
apiKey?
TYPESAFE_API_KEY.
baseURL?
TYPESAFE_BASE_URL, then https://api.typesafe.ai.
compression?
Content-Encoding. Default: "zstd" on runtimes that
have it (Node.js 22.15 or newer), otherwise false. Bodies under 1 KiB are always sent
uncompressed. Pass false to send all bodies uncompressed, for example to an API that
doesn’t accept compressed requests.
dangerouslyAllowBrowser?
defaultHeaders?
defaultModel?
TYPESAFE_DEFAULT_MODEL, then jev-latest.
fetch?
fetch.
logger?
logLevel and above. Default: prefixed console.
logLevel?
TYPESAFE_LOG_LEVEL, then warn.
info logs request summaries; debug adds headers and bodies.
Known credential headers are redacted; bodies are not.
retry?
RetryPolicy.

