Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 5 Next »

COMING SOON

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

As Repository Admin, go the Code Review Assistant repository settings page. Make sure to be on the AI Review Assistant tab on top

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_KEY on the right side.

  2. 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.png

The 2023-06-01 is the most up-to-date version at the time of this writing. Consult the official Claude documentation to check whether a new version is available.

Request Body

  1. Click on the ➕ icon. 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.

  2. Click on the ➕ icon. 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.png

Response Section

Section

Instructions

Success Query

Enter content[0].text

Error Query

Enter error.message

Test and Save

Click on the Test button and verify that you receive a confirmation message that everything is configured properly.

image-20250131-105140.png

Click on the Save button.

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

  • No labels