Commit graph

2005 commits

Author SHA1 Message Date
ofir-frd
9254225949
fix: add error handling for missing review data in PR reviewer 2025-04-03 13:23:41 +03:00
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
Tal
e692735b7b
Merge pull request #1662 from qodo-ai/tr/more_protections
Tr/more protections gitlab
2025-03-31 14:02:33 +03: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
7bd0fefee4
Fix GitLab protections function and return value in PR questions 2025-03-29 19:53:46 +03:00
mrT23
02d9aed7fe
Fix GitLab provider to use default branch instead of target branch for repo settings 2025-03-29 19:39:56 +03:00
mrT23
7d47bd5f5e
Add GitLab protections to prevent quick actions in PR questions 2025-03-29 19:35:39 +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
e422f50cfe Fix for bug in get_canonical_url_parts when a new issue created, without git url provided. 2025-03-27 17:29:02 +02:00
Eyal Sharon
991a866368 documents' link generation: Make sure prefix ends with '/' 2025-03-26 21:58:15 +02:00
Eyal Sharon
255e1d0fc1 Missing class member 2025-03-26 14:29:50 +02:00
Eyal Sharon
7117e9fe0e Github Provider: Support publishing a comment on a non pr issue 2025-03-26 13:36:37 +02:00
Tal
6f6595c343
Merge pull request #1634 from ishaansehgal99/main
fix: Logging and Commenting
2025-03-26 07:51:24 +02:00
Ishaan Sehgal
b300cfa84d
Improve error logging with artifacts 2025-03-25 22:49:24 -07:00
Eyal Sharon
605eef64e7 Generate git url correctly in case invoked from both user and GitHub app contexts 2025-03-25 12:08:00 +02:00
Eyal Sharon
b161672218 Remove redundant abstractmethod for _prepare_clone_url_with_token 2025-03-24 15:56:45 +02:00
Eyal Sharon
5bc253e1d9 Add token count estimation factor to config 2025-03-24 15:53:22 +02:00
Eyal Sharon
8495e4d549 More comprehensive handling in count_tokens(force_accurate==True): In case model is neither OpenAI nor Anthropic Claude, simply use an elbow room factor in order to force a more conservative estimate. 2025-03-24 15:47:35 +02:00
Eyal Sharon
fb324d106c Remove non implemented method _prepare_clone_url_with_token from providers which don't support it and instead, issue a warning in base class. 2025-03-24 14:06:06 +02:00
Eyal Sharon
a4387b5829 Fix more /improve suggestions 2025-03-24 11:19:23 +02:00
Eyal Sharon
477ebf4926 Code recommendations from /improve 2025-03-24 10:54:50 +02:00
Eyal Sharon
e14fc7e02d Fix missing self.bearer_token for bitbucket related providers 2025-03-24 10:21:23 +02:00
Eyal Sharon
1bd65934df Merge origin/main into es/help_docs 2025-03-23 20:04:58 +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
cdornano
e925f31ac0
Update azuredevops_provider.py
Will make qodo agent comments "Active" by default, and not "ByDesign" which is renders to "unknown" on Azure DevOps PRs. With this, PR authors are obliged to treat the PR comment of the qodo agent before Merging. This will help companies in analysing the impact of qodo agent on their PR, as every comment needs to be treated as either "Resolved" "Won't fix" "Close"
2025-03-21 12:57:03 +00:00
Eyal Sharon
5e7e353670 Added help_docs feature. 2025-03-20 23:48:01 +02:00
ishaansehgal99
52d4312c9a fix: Logging and Commenting 2025-03-20 13:59:43 -07:00
Ishaan Sehgal
8ec6067b26
Merge branch 'qodo-ai:main' into main 2025-03-20 13:57:46 -07:00
ishaansehgal99
bc575e5a67 fix: Logging and Commenting 2025-03-20 13:55:07 -07: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
1724a65ab2
docs: remove similar issues tool from documentation 2025-03-16 08:58:02 +02:00
mrT23
29e28056db
refactor: move response_language config to group with other language settings 2025-03-15 09:58:20 +02:00
mrT23
507cd6e675
skip in PR config 2025-03-15 09:56:57 +02:00
mrT23
f5e381e1b2
Add fallback for YAML parsing using original response text 2025-03-11 17:11:10 +02:00
mrT23
2cacaf56b0
Reduce collapsible_file_list_threshold from 8 to 6 2025-03-11 17:08:26 +02:00
mrT23
9a574e0caa
Add filter for files with bad extensions in language handler 2025-03-11 17:03:05 +02:00
mrT23
0f33750035
Remove unused filter_bad_extensions function and rename diff_files_original to diff_files 2025-03-11 16:56:41 +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
mrT23
f5bd98a3b9
Add check for auto-generated files in language handler 2025-03-11 14:37:45 +02:00
Kenny Dizi
ffefcb8a04 Fix default value for extended_thinking_max_output_tokens 2025-03-11 17:48:12 +07:00
mrT23
35bb2b31e3
feat: add enable_comment_approval to encoded forbidden args 2025-03-10 12:10:19 +02:00
Tal
20d709075c
Merge pull request #1613 from qodo-ai/hl/update_auto_approve_docs
docs: update auto-approval documentation with clearer configuration
2025-03-10 11:56:48 +02: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
Hussam.lawen
884b49dd84
Add encoded: enable_manual_approval 2025-03-09 17:01:04 +02:00