Skip to main content

Module constants

Module constants 

Source
Expand description

The names and defaults the SDK’s behaviour is pinned to: the environment variables, headers, API paths and defaults.

Constants§

API_KEY_ENV
The environment variable a client reads its API key from when none is passed explicitly.
BASE_URL_ENV
The environment variable a client reads its base URL from when none is passed explicitly.
DEFAULT_BASE_URL
The API root a client talks to when neither the caller nor BASE_URL_ENV names one.
DEFAULT_MAX_RESPONSE_BYTES
The largest response body a client reads before giving up on it, in bytes.
DEFAULT_MODEL
The model a request names when neither the call, the client nor DEFAULT_MODEL_ENV names one.
DEFAULT_MODEL_ENV
The environment variable a client reads its default model from when none is passed explicitly.
DEFAULT_TIMEOUT
The deadline each attempt of a request gets when the caller sets none.