From 39b2f7bdee72131211b304cd9d881db35ced5f9f Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 23 Sep 2024 09:06:31 -0700 Subject: [PATCH] feat: Add Cache Settings section --- aider/args.py | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/aider/args.py b/aider/args.py index ad8d17c7f..89f81dff6 100644 --- a/aider/args.py +++ b/aider/args.py @@ -196,18 +196,6 @@ def get_parser(default_config_files, git_root): default=True, help="Only work with models that have meta-data available (default: True)", ) - group.add_argument( - "--cache-prompts", - action=argparse.BooleanOptionalAction, - default=False, - help="Enable caching of prompts (default: False)", - ) - group.add_argument( - "--cache-keepalive-pings", - type=int, - default=0, - help="Number of times to ping at 5min intervals to keep prompt cache warm (default: 0)", - ) group.add_argument( "--max-chat-history-tokens", type=int, @@ -226,6 +214,21 @@ def get_parser(default_config_files, git_root): help="Specify the .env file to load (default: .env in git root)", ) + ########## + group = parser.add_argument_group("Cache Settings") + group.add_argument( + "--cache-prompts", + action=argparse.BooleanOptionalAction, + default=False, + help="Enable caching of prompts (default: False)", + ) + group.add_argument( + "--cache-keepalive-pings", + type=int, + default=0, + help="Number of times to ping at 5min intervals to keep prompt cache warm (default: 0)", + ) + ########## group = parser.add_argument_group("Repomap Settings") group.add_argument(