...
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. |
Follow 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
In the API URL section, enter the REST API address for ChatGPT:
https://api.openai.com/v1/chat/completions
. If you are using Azure OpenAI, the address will be of the formhttps://{resource-name}.openai.azure.com/openai/deployments/{deployment-id}/completions
instead.In the Headers section, click on the “Add Header” button and enter
Authorization
on the left side, andBearer $API_SECRET
on the right side, as shown belowIn the Request Body section, click on the ➕ icon. Enter
model
in the input, then click onAdd > Text
and entergpt-4-1106-preview
.
...