Skip to content

Commit

Permalink
Refactor patch extension logic to handle cases with zero extra lines
Browse files Browse the repository at this point in the history
  • Loading branch information
mrT23 committed Aug 11, 2024
1 parent e85b75f commit 23aa2a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pr_agent/settings/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 23aa2a9

Please sign in to comment.