Some commands, such as assertWithAI
and assertNoDiffWithAI
, use generative
AI models, which are not built directly in Maestro CLI. Therefore, to use such
commands, additional configuration is required.
{% content-ref url="../commands/assertwithai.md" %} assertwithai.md {% endcontent-ref %}
{% content-ref url="../commands/assertnodefectswithai.md" %} assertnodefectswithai.md {% endcontent-ref %}
The default model is the latest GPT-4o.
You can configure the model to use with the MAESTRO_CLI_AI_MODEL
env var, for example:
export MAESTRO_CLI_AI_MODEL=claude-3-5-sonnet-20240620
Currently supported:
- GPT family of models from OpenAI
- Claude family of models from Anthropic
Support for more models and providers is tracked in this issue.
To use this command, an API key for the LLM service is required. To set it,
export the MAESTRO_CLI_AI_KEY
env var.
For example, to set the key for OpenAI:
export MAESTRO_CLI_AI_KEY=sk-4NXxdLXY4H9DZW0Vpf4lT3HuBaFJoz1zoL21eLoLRKlyXd69
or for Anthropic:
export MAESTRO_CLI_AI_KEY=sk-ant-api03-U9vWi8GDrxRAvA2RL2RMCImYCQr8BFCbNOq2woeRXLNz2Iy4PbY1X2137leSm92mitI7F9IwxKIrXtXgTIzj7A-2AvgbwAA
{% hint style="info" %} You need to bring your own API key. The keys above are just examples and are not valid. {% endhint %}