configuration_flexibility - MadBomber/aia GitHub Wiki

Configuration Flexibility

AIA determines configuration settings using the following order of precedence:

  1. Embedded config directives
  2. Command-line arguments
  3. Environment variables
  4. Configuration files
  5. Default values

For example, let's consider the model option. Suppose the following conditions:

  • Default value is "gpt-4o-mini"
  • No entry in the config file
  • No environment variable value for AIA_MODEL
  • No command-line argument provided for --model
  • No embedded directive like //config model = some-fancy-llm

In this scenario, the model used will be "gpt-4o-mini". However, you can override this default by setting the model at any level of the precedence order. Additionally, you can dynamically ask for user input by incorporating an embedded directive with a placeholder parameter, such as //config model = [PROCESS_WITH_MODEL]. When processing the prompt, AIA will prompt you to input a value for [PROCESS_WITH_MODEL].

If you do not like the default regex used to identify parameters within the prompt text, don't worry there is a way to configure it using the --regex option.

Related Topics

⚠️ **GitHub.com Fallback** ⚠️