...
After doing that, you need to configure it on each repository for which you want to use it.
Info |
---|
AI Review Assistant can be integrated with any AI Provider offering a
Examples of such providers are ChatGPT, Azure OpenAI, Google AI Gemini, Claude.ai or Ollama. |
Step 2: Configure the
...
AI Provider at the repository level
As a repository administrator, follow the following steps:
Get your API key from your AI provider.
For you get the API key OpenAI by going here.
Go to the Code Review Assistant settings page of your repository
Select the AI Provider: OpenAI or another AI Provider
For other AI providers, like Azure, provide the API URL for the chat completion API.
Contact our support for AI providers not yet supported.
Select a model supported by your API Key, and copy-paste your key in the input field.
Click on “Save”. You should see a confirmation flag that your data as been updated.
...
Follow the guide corresponding to your AI provider
Configuration guide for ChatGPT, Azure OpenAI, and Google AI Gemini
Configuration guide for Claude.ai
Configuration guide for Ollama
Configuration guide for a generic AI Provider.
Step 3 (Optional): Configure Custom Prompts
Custom prompts give you more flexibility to tailor AI Review Assistant to the needs of your repository. See the dedicated page to Custom Prompts configuration.
...
Usage
You can interact with the AI Review Assistant directly in your pull request. To do so, write a comment in the view of your pull request starting by /aira
(short for AI Review Assistant) followed by your question for the AI. The AI service will receive the information related to your pull request (current title, description, commit titles, the diff and comments of the existing thread), followed by your question.
...
How can I disable AI Review Assistant for a repository?
There is no toggle to disable AI Review Assistant Disable AIRA for a repository. However, if you do not configure the assistant (by not filling the token information), then it will be effectively disabled, and no data will be shared to the AI API.If you previously configured AI Review Assistant, you can remove the token by saving the configuration with an empty tokenspecific repository by going to the Code Review Assistant settings page in your repository, and set the Enable Assistant toggle to disabled.
You can’t enable AIRA for a repository if it is disabled globally.
Who can use AI Review Assistant on a pull request?
...
First, try to refresh the page. AI Review Assistant responds to Pull Request comments, and those are not refreshed automatically. If the response is still not there, please check the following things.
Verify that AIRA reacted to your comment with a 👀 emoji. If the emoji is not there, then something is wrong and you should contact an Administrator.
Sometimes the AI Review Assistant can take a bit of time to answer (up to 2 minutes). Past that time, you should see a message saying that it took too much time.
...