Versions Compared

Key

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

...

Info

If any of the headers, body content or query parameters require a secret, use the $API_KEY placeholder, and fill the actual value in the API Key section.

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 ? in the url (?key1=value1&key2=value2)

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 usage.input_tokens because