Add tests for patch extension and update configuration for extra lines handling

- Added unit tests in `test_extend_patch.py` and `test_pr_generate_extended_diff.py` to verify patch extension functionality with extra lines.
- Updated `pr_processing.py` to include `patch_extra_lines_before` and `patch_extra_lines_after` settings.
- Modified `configuration.toml` to adjust `patch_extra_lines_before` to 4 and `max_context_tokens` to 16000.
- Enabled extra lines in `pr_code_suggestions.py`.
- Added new model `claude-3-5-sonnet` to `__init__.py`.
This commit is contained in:
mrT23
2024-08-11 09:21:34 +03:00
parent 61bdfd3b99
commit e238a88824
5 changed files with 74 additions and 50 deletions

View File

@ -286,7 +286,7 @@ class PRCodeSuggestions:
self.token_handler,
model,
add_line_numbers_to_hunks=True,
disable_extra_lines=True)
disable_extra_lines=False)
if self.patches_diff:
get_logger().debug(f"PR diff", artifact=self.patches_diff)