Configurations

The Patronus Experimentation Framework offers several configuration options that can be set in the following ways:

  1. In Code
  2. Environment Variables
  3. YAML Configuration File

Configuration options are prioritized in the order listed above.

Configuration Options

Config nameEnvironment Variable NameDefault Value
api_keyPATRONUSAI_API_KEY
api_urlPATRONUSAI_API_URLhttps://api.patronus.ai
ui_urlPATRONUSAI_UI_URLhttps://app.patronus.ai

Configuration File (patronusai.yaml)

You can also provide configuration options using a patronusai.yaml file. This file must be present in the working directory when executing your script.

api_key: "sk-t6GWg1EE1lZlLU6MM1SXjdBmPlamzJBVHnVfqHQyJSY"
api_url: "https://api.patronus.ai"
ui_url: "https://app.patronus.ai"