Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page describes how to configure Claude AI as your AI provider for AI Review Assistant.

As a repository administrator, follow these steps:

...

As Repository Admin:

  1. go the Code Review Assistant repository settings Make sure you are in page.

  2. open the AI Review Assistant tab on topIn the API URL section, enter .

Request section

Section

Instructions

API URL

Enter the REST API address for Claude AI: https://api.anthropic.com/v1/messages.

...

API Key

Enter your Claude API key

Headers

  1. Click on the “Add Header” button. Enter x-api-key on the left side, and $API_

...

  1. KEY on the right side.

...

  1. Click on the ➕ icon. Enter anthropic-version on the left side, and 2023-06-01 on the right side.

The headers configuration should look like the following

...

image-20250131-110259.pngImage Added

...

Check the latest version available on the official Claude documentation.

Query Parameters

Leave empty.

Request Body

  1. Click on ➕. Enter model in the input, then click on Add > Text and enter claude-3-5-sonnet-20241022. As for the version, check the list of available models using Claude’s API.

...

  1. Click on ➕. Enter max_tokens in the input, then click on Add > Number and enter, e.g., 1024

...

The body configuration should look like the following

image-20250120-155519.pngImage Modified

...

(Optional/Advanced) Customize the request body even further. Still in the Request Body section, add other optional parameters as documented in the official Claude AI documentation.

...

In the API Key section, enter your Claude API key.

...

Response Section

Configure how AI Review Assistant will parse the API response. More details about the syntax here.

Section

Instructions

Success Query

Enter content[0].text

...

...

Error Query

Enter error.message

...

Test and Save

  1. Click on

...

  1. Test and verify that you receive a confirmation message that everything is configured properly.

    image-20250131-105140.pngImage Added
  2. Click

...

  1. on Save.

Info

If you have trouble in configuring our AI Review Assistant, we are happy to help! 🎉