Commit graph

697 commits

Author SHA1 Message Date
sharoneyal
14971c4f5f
Add support for documentation content exceeding token limits (#1670)
* - Add support for documentation content exceeding token limits via two phase operation:
1. Ask LLM to rank headings which are most likely to contain an answer to a user question
2. Provide the corresponding files for the LLM to search for an answer.

- Refactor of help_docs to make the code more readable
- For the purpose of getting canonical path: git providers to use default branch and not the PR's source branch.
- Refactor of token counting and making it clear on when an estimate factor will be used.

* Code review changes:
1. Correctly handle exception during retry_with_fallback_models (to allow fallback model to run in case of failure)
2. Better naming for default_branch in bitbucket cloud provider
2025-04-03 11:51:26 +03:00
mrT23
3b0225544a
Fix code example in PR reviewer prompts to correctly show added line 2025-04-02 08:23:01 +03:00
Jose Martinez
dbfc07ccc1 Update logging configuration to use dynamic log level from settings 2025-04-01 15:54:51 -05:00
mrT23
20cb139161
Improve code suggestion prompt to clarify handling of partial code segments in PR reviews 2025-03-31 08:39:40 +03:00
mrT23
afa4adcb23
Improve code analysis instructions for handling partial code blocks in PR reviews 2025-03-30 09:00:45 +03:00
mrT23
ddf94c14a3
Add configuration option for PR Code Suggestions to control publishing when no suggestions found 2025-03-29 09:33:31 +03:00
Eyal Sharon
5bc253e1d9 Add token count estimation factor to config 2025-03-24 15:53:22 +02:00
Eyal Sharon
a4387b5829 Fix more /improve suggestions 2025-03-24 11:19:23 +02:00
Eyal Sharon
88a17848eb - Documentation
- Better error handling in case could not deduce repo url
2025-03-23 20:04:33 +02:00
Eyal Sharon
dd80276f3f Support cloning repo
Support forcing accurate token calculation (claude)
Help docs: Add desired branch in case of user supplied git repo, with default set to "main"
Better documentation for getting canonical url parts
2025-03-23 09:55:58 +02:00
Eyal Sharon
5e7e353670 Added help_docs feature. 2025-03-20 23:48:01 +02:00
mrT23
b087458e33
Merge remote-tracking branch 'origin/main' 2025-03-20 21:49:27 +02:00
mrT23
6610921bba
cleanup 2025-03-20 21:49:19 +02:00
Ikko Eltociear Ashimine
fa77828db2
chore: update pr_reviewer_prompts.toml
minor fix
2025-03-18 03:52:36 +09:00
mrT23
29e28056db
refactor: move response_language config to group with other language settings 2025-03-15 09:58:20 +02:00
mrT23
2cacaf56b0
Reduce collapsible_file_list_threshold from 8 to 6 2025-03-11 17:08:26 +02:00
mrT23
4713175fcf
Update code suggestion evaluation criteria and line number descriptions 2025-03-11 16:50:42 +02:00
mrT23
d16012a568
Add decoupled and non-decoupled modes for code suggestions 2025-03-11 16:46:53 +02:00
Kenny Dizi
ffefcb8a04 Fix default value for extended_thinking_max_output_tokens 2025-03-11 17:48:12 +07:00
Tal
52c99e3f7b
Merge pull request #1605 from KennyDizi/main
Support extended thinking for model `claude-3-7-sonnet-20250219`
2025-03-09 17:03:37 +02:00
Tal
15e8167115
Update configuration.toml 2025-03-07 18:22:26 +02:00
Kenny Dizi
a8935dece3 Using 2048 for extended_thinking_budget_tokens as well as extended_thinking_max_output_tokens 2025-03-07 17:27:56 +07:00
muhammad-asn
4f2551e0a6 feat: add DeepInfra support 2025-03-06 15:49:07 +07:00
mrT23
4c0e371238
fix: validate one-liner suggestions to prevent repeating existing code 2025-03-06 08:18:52 +02:00
Kenny Dizi
5447dd2ac6 Add support claude extended thinking configurations 2025-03-03 18:21:57 +07:00
mrT23
8182a4afc0
docs: update default model to o3-mini and improve language configuration instructions 2025-02-27 11:06:31 +02:00
mrT23
94a8606d24
fix: update default configuration values for publishing and verbosity 2025-02-27 10:52:20 +02:00
mrT23
af635650f1
fix: improve response language handling and configuration documentation 2025-02-27 10:50:28 +02:00
Tal
9a32e94b3e
Merge pull request #1579 from qodo-ai/response-language-configuration
Add a language configuration to translate language generated by QodoM…
2025-02-27 08:01:13 +02:00
Hussam Lawen
c7f4b87d6f
Merge pull request #1583 from qodo-ai/hl/enhance_azure_devops
feat: enhance Azure DevOps integration with improved error handling a…
2025-02-26 17:17:31 +02:00
Hussam.lawen
0a4c02c8b3
feat: enhance Azure DevOps integration with improved error handling and PR commands 2025-02-26 16:40:46 +02:00
AdamWalker-112358
e253f18e7f Remove default configuration 2025-02-26 14:43:56 +02:00
AdamWalker-112358
de80901284 Add a language configuration to translate language generated by QodoMerge, such as suggestions and desciption text 2025-02-26 14:37:15 +02:00
Kenny Dizi
ebdbde1bca
Merge branch 'main' into main 2025-02-23 21:26:44 +07:00
mrT23
a0dc9deb30
docs: add auto-approval configuration documentation 2025-02-23 08:15:14 +02:00
Trung Dinh
e81b0dca30 Support reasoning_effort via configuration file 2025-02-21 22:14:58 +07:00
mrT23
a07f6855cb
feat: add current date to PR review metadata 2025-02-20 16:44:45 +02:00
Tal
0317951e32
Update pr_agent/settings/configuration.toml
Co-authored-by: qodo-merge-pro-for-open-source[bot] <189517486+qodo-merge-pro-for-open-source[bot]@users.noreply.github.com>
2025-02-18 11:48:25 +02:00
mrT23
4edb8b89d1
feat: add support for custom reasoning models 2025-02-18 11:46:22 +02:00
mrT23
2c37b02aa0
feat: improve help tool with markdown header formatting and error handling 2025-02-13 11:44:50 +02:00
mrT23
69f19f1abd
feat: improve code suggestions impact levels with configurable thresholds 2025-02-05 09:41:01 +02:00
mrT23
9da4c9d776
fix: correct typo in code suggestions label description 2025-01-28 08:36:36 +02:00
Tal
2277a31661
Merge pull request #1485 from qodo-ai/tr/docs_best_practice
Tr/docs best practice
2025-01-26 16:40:09 +02:00
Hussam.lawen
50c52e32c9
enter
feat: enhance ticket compliance analysis with human verification tracking
2025-01-26 12:33:49 +02:00
mrT23
4d52715d25
docs: add auto best practices documentation and configuration 2025-01-26 12:02:27 +02:00
mrT23
83baac975d
docs: clarify code suggestion prompt field description for existing code 2025-01-26 09:16:52 +02:00
mrT23
a7fbd694cc
docs: add January 2025 organization update notice and fix typo in prompts 2025-01-25 08:54:57 +02:00
mrT23
c1fa22d068
refactor: simplify review effort label format and remove maximal effort limit 2025-01-23 11:18:00 +02:00
mrT23
67d4c96166
fix: correct typos in code suggestions prompt 2025-01-19 17:21:48 +02:00
mrT23
b335cacffd
fix: limit one_sentence_summary to 6 words in code suggestions 2025-01-19 17:15:02 +02:00
mrT23
87a5a7e156
fix: improve code review guidelines and clarify scope limitations 2025-01-19 17:10:04 +02:00
mrT23
24aa15f074
fix: correct typo in diff format documentation 2025-01-19 15:11:56 +02:00
mrT23
e7f874a4b2
docs: improve diff format documentation and code review instructions 2025-01-19 14:37:49 +02:00
Trung Dinh
5ed260d885 Add deepseek configuration block 2025-01-17 11:43:20 +07:00
mrT23
4923c8d810
feat: add support for ignoring PRs from specific users 2025-01-16 08:34:01 +02:00
mrT23
a74fca7b7d
fix: refine code suggestions prompts and avoid package-related comments 2025-01-08 17:42:07 +02:00
mrT23
7f950a3aa9
docs: clarify model recommendation for production usage 2025-01-02 12:50:38 +02:00
mrT23
a1a7c8e44c
feat: add example output duplication option for code suggestions prompts 2025-01-02 12:46:50 +02:00
mrT23
e695af6917
feat: add example output duplication option for PR review prompts 2025-01-02 12:33:26 +02:00
mrT23
5318047202
feat: add prompt example duplication option for improved model output 2025-01-02 12:25:42 +02:00
mrT23
5971a06d73
docs: improve Ollama and Hugging Face model configuration docs 2025-01-02 11:16:21 +02:00
mrT23
f6b470bf5e
fix: reorganize PR description prompt fields and improve clarity 2025-01-02 08:41:25 +02:00
mrT23
4a1b042152
fix: improve bullet point formatting and file path display in PR description 2024-12-31 12:00:21 +02:00
mrT23
6fbd95e1a9
fix: emphasize brevity in PR description bullet points 2024-12-31 08:36:32 +02:00
mrT23
fd6e81978f
fix: improve PR description and title field descriptions for clarity 2024-12-31 08:32:54 +02:00
mrT23
dbd76ecde5
refactor: improve file changes title description length guidance 2024-12-29 11:42:05 +02:00
mrT23
e95920c58c
refactor: improve file handling and description generation in PR description tool 2024-12-29 11:37:05 +02:00
mrT23
495c1ebe5f
refactor: remove legacy code suggestions feature from review tool 2024-12-25 08:18:28 +02:00
mrT23
e8e4fb0afa
feat: add PR link support in changelog updates 2024-12-23 17:20:29 +02:00
mrT23
3360a28b3e
fix: improve changelog update prompt and response handling 2024-12-23 17:06:21 +02:00
mrT23
c2f1f2dba0
fix: improve markdown rendering when git provider is unavailable 2024-12-19 21:08:27 +02:00
mrT23
989670b159
fix: improve markdown rendering when git provider is unavailable 2024-12-19 20:49:40 +02:00
mrT23
7e8361b5fd
feat: enhance code review output with collapsible code snippets and variable links 2024-12-19 20:30:56 +02:00
mrT23
d09aa1b13e
docs: remove unused automatic_review configuration option 2024-12-19 16:41:18 +02:00
mrT23
f3ee4a75b5
docs: simplify default tool configurations and update documentation 2024-12-19 09:33:20 +02:00
mrT23
872b27bfd8
docs: remove model_weak configuration and simplify model selection 2024-12-11 18:10:34 +02:00
Tal
cb88489dbe
Merge pull request #1387 from KennyDizi/main
Introduce to weak model
2024-12-11 17:36:18 +02:00
mrT23
6a51b8501d
docs: add allow_thumbs_up_down configuration option and remove rank_extended_suggestions 2024-12-11 13:16:21 +02:00
mrT23
d34edb83ff
feat: add thumbs up/down support and refactor code suggestions handling 2024-12-11 13:03:43 +02:00
Trung Dinh
e3d779c30d Fix typo model_weak 2024-12-08 22:09:48 +07:00
Trung Dinh
a4d9a65fc6 Add model_week 2024-12-08 20:23:36 +07:00
Trung Dinh
683108d3a5 Removed model_turbo 2024-12-08 20:10:38 +07:00
mrT23
8610aa27a4
Add disable_auto_feedback configuration option to control automatic PR feedback 2024-12-02 21:28:48 +02:00
KennyDizi
3547cf2057 Update model_turbo and fallback_models 2024-11-21 22:10:55 +07:00
mrT23
577ee0241d
Enable focus_only_on_problems mode by default in configuration and update README.md 2024-11-18 16:35:23 +02:00
Tal
5c5a3e267c
Merge branch 'main' into introduce-pre-commit 2024-11-08 09:54:21 +02:00
mrT23
d2663f959a
Add focus_only_on_problems setting for targeted code suggestions 2024-11-06 21:22:58 +02:00
Tal
fa49dd5167
Merge branch 'main' into nocode_suggestions_config 2024-11-04 07:50:22 +02:00
mrT23
ef3241285d
Add support for processing diffs without line numbers in code suggestions tool 2024-11-03 17:34:30 +02:00
Pratul Sanwal
443d06df06 Add configuration option to control publish of no code suggestions message 2024-11-01 15:38:16 -04:00
Yu Ishikawa
81dea65856 Format files by pre-commit run -a
Signed-off-by: Yu Ishikawa <yu-iskw@users.noreply.github.com>
2024-10-30 10:00:36 +09:00
Tal
7186bf4bb3
Merge pull request #1313 from yu-iskw/support-google-ai-studio
Support Google AI Studio
2024-10-29 19:22:28 +02:00
Tal
115fca58a3
Merge pull request #1307 from s1moe2/docs/gitlab
Gitlab docs improved; gitlab webhook secret config standardization
2024-10-29 19:20:15 +02:00
Diogo Simoes
cbf60ca636 revert gitlab webhook_secret; docs adjustments 2024-10-29 16:02:06 +00:00
Yu Ishikawa
db062e3e35 Support Google AI Studio
Signed-off-by: Yu Ishikawa <yu-iskw@users.noreply.github.com>
2024-10-29 08:00:16 +09:00
mrT23
8db7151bf0
Add suggestion tracking feature with wiki documentation support 2024-10-27 15:49:10 +02:00
Diogo Simoes
67b46e7f30 fixed secrets file comment typo 2024-10-25 16:20:35 +01:00
Diogo Simoes
68f2cec077 Gitlab docs improved; gitlab webhook secret config standadization 2024-10-25 16:17:33 +01:00
mrT23
3b47c75c32
Improve handling of empty markdown headers in PR help message tool and update prompt instructions in pr_help_prompts.toml 2024-10-25 12:27:59 +03:00
mrT23
9786499fa6
Refactor PR help message tool to use full documentation content for answering questions and update relevant section handling in prompts 2024-10-24 22:01:40 +03:00
mrT23
4f14742233
Refactor PR help message tool to use full documentation content for answering questions and update relevant section handling in prompts 2024-10-24 21:38:31 +03:00
mrT23
0b32b253ca
docs: update default setting for publish_labels to false and adjust related documentation 2024-10-21 17:56:15 +03:00
mrT23
0705bd03c4
docs: update pr_help_prompts.toml with project name change and formatting adjustments 2024-10-21 07:37:57 +03:00
mrT23
927d005e99
docs: update pr_help_prompts.toml with project name change and formatting adjustments 2024-10-21 07:33:26 +03:00
mrT23
76d95bb6d7
feat: add ticket compliance check
- Implement ticket compliance check logic in `utils.py` and `ticket_pr_compliance_check.py`
- Add functions to extract and cache PR tickets, and check ticket relevancy
2024-10-10 10:01:48 +03:00
mrT23
23a3e208a5
docs: update improve.md with folding suggestions feature and add config option 2024-10-08 20:51:45 +03:00
mrT23
4b05a3e858
refactor: streamline hunk processing logic in git_patch_processing.py
- Simplified logic for handling new and old hunks to ensure consistent presentation of changes.
- Updated documentation in TOML files to reflect changes in hunk section handling and line number references.
2024-10-07 20:32:11 +03:00
mrT23
ddf1afb23f
chore: update prompt guidelines to include exception type suggestions 2024-10-07 09:17:26 +03:00
mrT23
8ff8b1d48e
default 2024-10-01 08:22:28 +03:00
mrT23
da0bd84746
dual 2024-10-01 08:20:16 +03:00
mrT23
dfa4f22be2
feat: add dual publishing mode for PR code suggestions
- Introduced dual publishing mode to present high-scoring suggestions as both table entries and commitable PR comments.
- Updated documentation to include configuration options for dual publishing mode.
- Enhanced `pr_code_suggestions.py` to handle dual publishing logic and error handling.
- Modified `configuration.toml` to include `duel_publishing_score_threshold` setting.
2024-10-01 08:01:27 +03:00
mrT23
bbaba2dbda
refactor: update terminology for issue review recommendations in utils.py
style: refine field descriptions in KeyIssuesComponentLink model
2024-09-30 08:58:32 +03:00
mrT23
e4c6792866
Merge remote-tracking branch 'origin/main' 2024-09-30 07:52:54 +03:00
mrT23
183dd5d2fc
diverse 2024-09-30 07:52:43 +03:00
Tal
2e79392a5f
Merge pull request #1256 from Codium-ai/mrT23-patch-2
disable chat message for github action
2024-09-30 07:40:04 +03:00
mrT23
d77a819d92
Add intro text option for PR reviews in configuration and utils 2024-09-29 07:06:48 +03:00
Tal
1333ac47bc
Update configuration.toml 2024-09-26 18:24:11 +03:00
mrT23
8bdebcb99f
Enable intro and chat text for PR code suggestions in configuration 2024-09-26 17:11:00 +03:00
mrT23
89f9cf5adc
Add intro and chat text options for PR code suggestions in configuration 2024-09-26 09:07:51 +03:00
mrT23
3dd8050004
improve code suggestion prompt 2024-09-25 21:22:41 +03:00
mrT23
4b7d01972c
improve code suggestion prompt 2024-09-25 21:15:14 +03:00
mrT23
4713ae74b7
improve code suggestion prompt 2024-09-25 17:42:59 +03:00
mrT23
c828cdde62
improve code suggestion prompt 2024-09-25 17:41:21 +03:00
mrT23
6f14f9c8e1
improve code suggestion prompt 2024-09-25 16:22:16 +03:00
mrT23
804cb9ec1d
DocHelper 2024-09-22 15:55:18 +03:00
mrT23
a3fd15bb92
Merge remote-tracking branch 'origin/main' into tr/help_fixes 2024-09-22 09:27:10 +03:00
mrT23
ded7d96649
DocHelper 2024-09-22 09:23:34 +03:00
mrT23
0198c61cf7
update docs 2024-09-22 09:00:56 +03:00
mrT23
be8052251a
Update pr_help_prompts.toml and fix snippet indexing in pr_help_message.py 2024-09-22 08:13:23 +03:00
mrT23
a70fe27d94
prompts 2024-09-21 16:58:37 +03:00
mrT23
4b74506107
Add PR help message functionality and update dependencies
- Implement PRHelpMessage class to provide AI-powered assistance for pull requests.
- Add methods for similarity search using local, S3, and Pinecone databases.
- Update `requirements.txt` to include new dependencies for langchain and chromadb.
- Modify `configuration.toml` to include `force_local_db` setting for PR help.
- Update `aiohttp` and `openai` package versions.
2024-09-21 16:22:51 +03:00
Tal
80fe297bc9
Merge pull request #1231 from matanbaruch/main
Update PR Action Handling Logic in GitHub Action Runner
2024-09-15 15:30:34 +03:00
mrT23
fdb1ff8057
update best practics 2024-09-15 12:36:00 +03:00
Matan Baruch
0851767774
Update configuration.toml 2024-09-15 09:35:58 +03:00
mrT23
a8367d1a22
docs: add dynamic context strategy documentation and update configuration settings
- Added detailed documentation on the dynamic context strategy in `dynamic_context.md`.
- Updated configuration settings in `configuration.toml` to enable dynamic context by default.
- Adjusted context line parameters in `additional_configurations.md` to reflect new defaults.
- Announced dynamic context as the default option in the `README.md` news section.
2024-09-12 11:37:52 +03:00
mrT23
01ba6fe63d
feat: enhance error handling and logging, update AI metadata terminology
- Improved error handling and logging in `pr_processing.py` and `github_polling.py` to provide more detailed error information.
- Updated AI metadata terminology from "AI-generated file summary" to "AI-generated changes summary" across multiple files for consistency.
- Added a placeholder method `publish_file_comments` in `azuredevops_provider.py`.
- Refined logging messages in `azuredevops_provider.py` for better clarity.
2024-09-10 17:44:26 +03:00
mrT23
c8e8ed89d2
feat: integrate Dynaconf for configuration management and enhance config display 2024-09-09 08:31:20 +03:00
mrT23
8706f643ef
enable ai_metadata 2024-09-08 16:26:26 +03:00
mrT23
d01cfe443c
avoid_full_files 2024-09-07 11:44:24 +03:00
mrT23
147a8e0ef3
refactor: consolidate PR ignore logic into a single function and update documentation 2024-09-07 11:26:13 +03:00
Tal
9199d84796
Merge pull request #1192 from paolomainardi/feature/1190_exclude_branches_tags
feat: gitlab skip source, target and labels
2024-09-07 10:20:31 +03:00
Paolo Mainardi
39913ef12a
fix: remove specific configurations 2024-09-06 20:23:33 +02:00
Paolo Mainardi
14b4723734
feat: move configuration to a common config section, add documentation 2024-09-06 18:32:46 +02:00
proDOOMman
be75bb6a16
Add 1C Enterprise language 2024-09-04 09:04:39 +03:00
Paolo Mainardi
adce35765b
feat: implement skip branches for github, add ignore title to gitlab 2024-09-02 16:26:50 +02:00
Paolo Mainardi
fdcbdfce98
feat: gitlab skip source, target and labels 2024-08-30 16:40:23 +02:00
mrT23
abf2f68c61
fix: update description for pr_files field in PRDescription class in pr_description_prompts.toml 2024-08-25 12:02:14 +03:00
mrT23
415f44d763
type 2024-08-23 11:27:50 +03:00
mrT23
8fb9b8ed3e
Update PR code suggestions prompts to avoid repeating changes already present in the PR 2024-08-23 11:22:55 +03:00
Tal
745e955d1f
Merge pull request #1145 from MarkRx/feature/litellm-logging-observability
Add and document abilty to use LiteLLM Logging Observability tools
2024-08-22 09:58:53 +03:00