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.

Follow As a repository administrator, follow these steps:

  1. Go the Code Review Assistant repository settings

  2. Make sure you are in the AI Review Assistant tab on top

  3. In the API URL section, enter the REST API address for Claude AI: https://api.anthropic.com/v1/messages.

  4. In the Headers section, click on the “Add Header” button. Enter x-api-key on the left side, and $API_SECRET on the right side.

  5. Still in the Headers section, 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-20250120-154709.png

    Note: 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.

  6. In the Request Body section, 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.

  7. Still in the Request Body section, 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

...