...
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_SECRETKEY
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-44o-2024-110608-preview06
.
The gpt-4-1106-preview
model is the most up-to-date model at the time of this writing. Make sure to check-out the available models in their official documentation.
...