Guardrails recognize a handful of environment variables that can be used at runtime. Most of these correlate to envinronment variables used or expected by the various LLM clients. Below you can find a list of these and their uses.
This environment variable can be used to set your api key credentials for Open AI models. It will be used wherever Open AI is called if an api_key kwarg is not passed to
This environment variable can be used to set the process count for the multiprocessing executor. The multiprocessing executor is used to run validations in parallel where possible. To disable this behaviour and force synchronous validation, you can set this environment variable to
'1'. The default is
This environment variable can be used to set your api key credentials for the Inspired Cognition API Client. It will be used wherever the Inspired Cognition API is called. Currently this is only used in the