Versions Compared

Key

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

This page describes how to configure ChatGPT as your AI provider for AI Review Assistant. This guide is also relevant to you if you are using similar providers like Azure OpenAIAs Repository Admin:

  1. go the Code Review Assistant repository settings page.

  2. open the AI Review Assistant tab on top.

Info

If it is the first time you are using the app, most of the ChatGPT configuration are pre-filled for you. Some steps might therefore be already done.

As a repository administrator, follow these steps:

...

Go the Code Review Assistant repository settings

...

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

...

.

Request section

Instructions

API URL

Enter the REST API address

...

:

  • ChatGPT: https://api.openai.com/v1/chat/completions

...

  • Azure OpenAI

...

  • : https://{resource-name}.openai.azure.com/openai/deployments/{deployment-id}/completions

...

  • Gemini: https://generativelanguage.googleapis.com/v1beta/openai/chat/completions

API Key

Enter your API key for the provider

Headers

Click on the “Add Header” button and enter Authorization on the left side, and Bearer $API_

...

KEY on the right side, as shown below

...

...

image-20250131-104028.pngImage Added

Query Parameters

  • ChatGPT, Gemini: leave empty

  • Azure OpenAI: Click on “Add Query Parameter” and enter api-version on the name, and 2024-06-01 in the value.

Check the latest version in the official Azure Documentation

Request Body

  1. Click on the ➕ icon. Enter model in the input, then click on Add > Text and enter gpt-4o-

...

  1. 2024-

...

  1. 08-

...

  1. 06.

...

Check the latest OpenAI models in the official documentation.

Check the latest Gemini models in the official documentation.

image-20250120-153634.pngImage Modified
  1. (

...

  1. Advanced)

...

  1. Add other optional parameters as documented in the official OpenAI documentation to tailor to your needs.

...

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

...

Response Section

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

Instructions

Success Query

Enter choices[0].message.content

...

...

Error Query

Enter error.message

...

Test and Save

  1. Click on the

...

  1. Test button

...

  1. and verify that you

...

  1. receive a confirmation message that everything is configured properly.

...

  1. Click

...

  1. on the Save button.

Info

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

...