From 23aa2a9388c463d966510666431859117f524b1f Mon Sep 17 00:00:00 2001 From: mrT23 Date: Sun, 11 Aug 2024 13:59:27 +0300 Subject: [PATCH] Refactor patch extension logic to handle cases with zero extra lines --- pr_agent/settings/configuration.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pr_agent/settings/configuration.toml b/pr_agent/settings/configuration.toml index 0b1697b0..5bfc5071 100644 --- a/pr_agent/settings/configuration.toml +++ b/pr_agent/settings/configuration.toml @@ -20,8 +20,8 @@ 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 = 4 # Number of extra lines (+3 default ones) to include before each hunk in the patch -patch_extra_lines_after = 2 # Number of extra lines (+3 default ones) to include after each hunk in the patch +patch_extra_lines_before = 3 # Number of extra lines (+3 default ones) to include before each hunk in the patch +patch_extra_lines_after = 1 # Number of extra lines (+3 default ones) to include after each hunk in the patch secret_provider="" cli_mode=false ai_disclaimer_title="" # Pro feature, title for a collapsible disclaimer to AI outputs