From 9c3f0801125d1baf81f20e4bb7de7074f814959e Mon Sep 17 00:00:00 2001 From: mrT23 Date: Sun, 11 Aug 2024 12:15:47 +0300 Subject: [PATCH] comments --- pr_agent/algo/pr_processing.py | 2 +- pr_agent/settings/configuration.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pr_agent/algo/pr_processing.py b/pr_agent/algo/pr_processing.py index 1cad30b6e..a51820d9a 100644 --- a/pr_agent/algo/pr_processing.py +++ b/pr_agent/algo/pr_processing.py @@ -75,7 +75,7 @@ def get_pr_diff(git_provider: GitProvider, token_handler: TokenHandler, f"returning full diff.") return "\n".join(patches_extended) - # if we are over the limit, start pruning + # if we are over the limit, start pruning (If we got here, we will not extend the patches with extra lines) get_logger().info(f"Tokens: {total_tokens}, total tokens over limit: {get_max_tokens(model)}, " f"pruning diff.") patches_compressed_list, total_tokens_list, deleted_files_list, remaining_files_list, file_dict, files_in_patches_list = \ diff --git a/pr_agent/settings/configuration.toml b/pr_agent/settings/configuration.toml index 6113c3f69..0b1697b0e 100644 --- a/pr_agent/settings/configuration.toml +++ b/pr_agent/settings/configuration.toml @@ -97,7 +97,7 @@ enable_help_text=false [pr_code_suggestions] # /improve # -max_context_tokens=16000 +max_context_tokens=14000 num_code_suggestions=4 commitable_code_suggestions = false extra_instructions = ""