...
Info |
---|
If any of the headers, body content or query parameters require a secret, use the |
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 your AI Provider. This has to be the endpoint for a chat (message based) completion |
API Key | Enter your API key |
Headers | Add all the key-value Http Headers for your AI Provider. For example, a Basic Authorization or a version controlling header. |
Query Parameters | Add all key-value pairs that you would find after the |
Request Body | Add all members for the JSON content. For example, the model, a stop sequence, a maximum number of tokens… |
...
Similarly, to extract the model used - you would use the JQL query model
. From the root of the JSON document it selects the value of the "model"
field and extracts the text, i.e. "claude-3-5-sonnet-20241022"
.
Note |
---|
Note that it is not possible to extract the input tokens e.g. with |