You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Using Issue/User Story Information](#using-issueuser-story-information)
26
26
-[Supported AI models](#supported-ai-models)
27
+
-[Summary](#summary)
27
28
-[OpenAI](#openai)
28
29
-[Google Gemini](#google-gemini)
29
30
-[Anthropic's Claude](#anthropics-claude)
@@ -106,7 +107,7 @@ Reviews generated by lgtm will be assigned a **score**, using the following scal
106
107
| Needs a Lot of Work π¨ | Issues are major, overarching, and/or numerous. However, the approach taken is not necessarily wrong. |
107
108
| Abandon β | The approach taken is wrong, and the author needs to start from scratch. The PR is not ready to be merged as is at all. |
108
109
109
-
For each review, lgtm may create several inline comments, pointing out specific issues within the PR. These comments belong to a **category** and have a **severity**. You can configure which categories you want lgtm to take a look at (see the [configuration section below](./README.md#configuration-file)). The available categories are:
110
+
For each review, lgtm may create several inline comments, pointing out specific issues within the PR. These comments belong to a **category** and have a **severity**. You can configure which categories you want lgtm to take a look at (see the [configuration section below](#configuration)). The available categories are:
110
111
111
112
| Category | Description |
112
113
| ------- | ----------- |
@@ -170,6 +171,18 @@ lgtm supports several AI models so you can hook up your preferred LLM to perform
| ai_retries | Main (review/guide) | π’ Optional | Number of retries for AI agent queries. Default: 1. |
371
-
| ai_input_tokens_limit| Main (review/guide) | π’ Optional | Max input tokens for LLM. Default: 500,000. Use `"no-limit"` to disable. |
372
-
| git_api_key | Main (review/guide) | π΄ Required* | API key for git service (GitHub/GitLab). Can't be given through config file. Also available through env variable `LGTM_GIT_API_KEY`. |
373
-
| ai_api_key | Main (review/guide) | π΄ Required* | API key for AI model. Can't be given through config file. Also available through env variable `LGTM_AI_API_KEY`. |
374
-
| technologies | Main (review) | π’ Optional | List of technologies for reviewer expertise. |
375
-
| categories | Main (review) | π’ Optional | Review categories. Defaults to all (`Quality`, `Correctness`, `Testing`, `Security`). |
376
-
| additional_context | Main (review) | π’ Optional | Extra context for the LLM (array of prompts/paths/URLs). Can't be given through the CLI |
377
+
| model | Main (review + guide) | π’ Optional | AI model to use. Defaults to `gpt-4.1` if not set. |
378
+
| model_url | Main (review + guide) | π‘ Conditionally required | Only needed for custom/local models. |
379
+
| exclude | Main (review + guide) | π’ Optional | File patterns to exclude from review. |
380
+
| publish | Main (review + guide) | π’ Optional | If true, posts review as comments. Default: false. |
381
+
| output_format | Main (review + guide) | π’ Optional | `pretty` (default), `json`, or `markdown`. |
| ai_retries | Main (review + guide) | π’ Optional | Number of retries for AI agent queries. Default: 1. |
384
+
| ai_input_tokens_limit| Main (review + guide) | π’ Optional | Max input tokens for LLM. Default: 500,000. Use `"no-limit"` to disable. |
385
+
| git_api_key | Main (review + guide) | π΄ Required* | API key for git service (GitHub/GitLab). Can't be given through config file. Also available through env variable `LGTM_GIT_API_KEY`. |
386
+
| ai_api_key | Main (review + guide) | π΄ Required* | API key for AI model. Can't be given through config file. Also available through env variable `LGTM_AI_API_KEY`. |
387
+
| technologies | Review Only | π’ Optional | List of technologies for reviewer expertise. |
388
+
| categories | Review Only | π’ Optional | Review categories. Defaults to all (`Quality`, `Correctness`, `Testing`, `Security`). |
389
+
| additional_context | Review Only | π’ Optional | Extra context for the LLM (array of prompts/paths/URLs). Can't be given through the CLI |
| issues_source | Issues Integration | π‘ Conditionally required | Required if `issues_url` is set. |
379
392
| issues_regex | Issues Integration | π’ Optional | Regex for issue ID extraction. Defaults to conventional commit compatible regex. |
@@ -411,7 +424,7 @@ See [Using Issue/User Story Information section](#using-issueuser-story-informat
411
424
- **issues_url**: The base URL of the issues or user story page to fetch additional context for the PR. If set, `issues_source` becomes required.
412
425
- **issues_source**: The platform for the issues (e.g., `github`, `gitlab`). Required if `issues_url` is set.
413
426
- **issues_regex**: A regex pattern to extract the issue ID from the PR title or description. If omitted, lgtm uses a default regex compatible with conventional commits and common PR formats.
414
-
- **issues_api_key**: API key for the issues service (if different from `git_api_key`).
427
+
- **issues_api_key**: API key for the issues service (if different from `git_api_key`). Can be given as a CLI argument, or as an environment variable (`LGTM_ISSUES_API_KEY`).
0 commit comments