Skip to main content

Module constants

Module constants 

Source
Expand description

Protocol names and defaults, shared by every transport.

Constants§

API_KEY_ENV
Environment variable holding the API key.
BASE_URL_ENV
Environment variable overriding the API base URL.
DEFAULT_BASE_URL
Base URL of the hosted API.
DEFAULT_MODEL
Model used when neither the request nor the client names one.
DEFAULT_MODEL_ENV
Environment variable overriding the default model.
DEFAULT_TIMEOUT
Timeout for each HTTP attempt.
MODELS_PATH
Path of the model listing endpoint.
REQUEST_ID_HEADER
Response header carrying the server’s request id.
SYSTEM_ONE_PATH
Path of the System One evaluation endpoint.