Configuration

This Configuration tab helps you manage your application settings.

Configure AI features

Enables an administrator to configure general AI features as well as service settings and parameters for a specific AI vendor.

Click Configuration and expand the dropdown.

Expanding the dropdown causes the fields to be displayed.

The first time you click Configuration and expand the dropdown, one of the following applies:

If config.php already contains AI configuration If no AI configuration already exists

The existing values for AI configuration in the SWARM_ROOT/data/config.php file are automatically copied into the form on the Configuration tab. For example, if AI was already enabled, it remains enabled.

We recommend that you remove the AI configuration block from the config.php file because this block is no longer used.

The default values for AI configuration are automatically copied into the form on the Configuration tab. For example, by default, AI is disabled.

You can choose to enable AI functionality, which, by default, is disabled.

In either case, a new key is created in the P4 Server store of P4 Code Review metadata.

Configure general features

The AI configuration sections allows you to enable or disable AI, set how long AI-generated data is retained, and set the maximum time to wait for the AI response.

By default, AI is disabled. To enable AI, move the slider to the right.

To set how long AI-generated data is retained, enter a value.

and select a unit:

To set the Request Timeout in milliseconds, enter an integer.

To ensure that your most recent changes take effect, click the Save configuration button.
To restore the most recently saved configuration, click the Reset to original button.

Configure a specific AI service

To edit an AI vendor configuration, click the Edit vendor configuration icon.

You can specify:

  • the name of an AI vendor

  • (optional) the value of the AI package

  • the name of the AI model

  • the type of the AI package, including a custom type

  • the API key

  • the minimum character limit for AI processing

  • the maximum character limit for AI processing

  • the API endpoint URL for the service

You can specify a prompt:

  • to improve a comment

  • to summarize text

  • to fix spelling and grammar

  • that is a custom prompt for AI processing

To save your updates the configuration of the AI vendor, click Update AI Vendor.