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

@ -20,7 +20,7 @@ max_commits_tokens = 500
max_model_tokens = 32000 # Limits the maximum number of tokens that can be used by any model, regardless of the model's default capabilities.
custom_model_max_tokens=-1 # for models not in the default list
#
patch_extra_lines_before = 6
patch_extra_lines_before = 4
patch_extra_lines_after = 2
secret_provider=""
cli_mode=false
@ -97,7 +97,7 @@ enable_help_text=false
[pr_code_suggestions] # /improve #
max_context_tokens=10000
max_context_tokens=16000
num_code_suggestions=4
commitable_code_suggestions = false
extra_instructions = ""